Big coder MoE on an 8 GB GPU: Qwen3.8-Flash-Next with half its experts cut

A community user shows how a heavily compressed coder variant of Qwen3.8-Flash-Next runs with 262K context on an 8 GB graphics card. To get there, half the experts were removed, the rest quantized to 3.5 bits per weight, and the vocabulary was trimmed on top.

Tools Try it yourself Oct 24, 2026 5 min read Source: r/LocalLLaMA
Illustrative image, AI-generated

What this is about

On the r/LocalLLaMA forum, a user shows how to run a heavily compressed coder version of Qwen3.8-Flash-Next on a graphics card with just 8 GB of VRAM, including 262K tokens of context. The underlying compression comes from the Deep Algorithms and Systems Lab (DASLab) at the Institute of Science and Technology Austria (ISTA). The user has published an additionally "vocabulary-pruned" GGUF variant of it on Hugging Face (Skyrion/Qwen3.8-Flash-Next-GSQ-RCO-Coder-GGUF-Pruned). GGUF is the file format used by llama.cpp and programs built on it, such as Ollama or LM Studio.

The model: removing experts instead of just compressing

Qwen3.8-Flash-Next is a Mixture-of-Experts (MoE) model: each layer has many independent sub-networks ("experts"), and a small router picks only a few of them per token. Here there are 512 experts per layer across 48 layers, with 10 active per token. The experts hold most of the parameters (the model's tunable values), but only a small fraction does any computing. The model has 176.9B parameters in total and takes up about 354 GB in BF16.

The coder variant combines two techniques: - Expert pruning: 50% of the experts are removed entirely (256 of 512 per layer). This shrinks the file and memory footprint and limits the router to fewer candidates. - Quantization: The remaining weights are stored at 3.5 bits per weight (bpw) instead of 16 bits, using the GSQ method.

That gives 58.4 GB, of which only 29.6 GB has to sit in memory: the second file (28.8 GB) is an n-gram lookup table that can also be served from disk. If you convert the removed experts back into the original parameter count, you get an effective 1.89 bits per parameter. Many people therefore wrongly took the model for a 1-bit quantization. In fact, no single weight sits at 1.89 bits; the kept weights have 3.5 bits.

How the experts were chosen

Selection used RCO (Riemannian-manifold-based optimization with exact budget constraints). Instead of ranking experts with a heuristic, RCO minimizes the KL divergence (a measure of how much the outputs differ) between the pruned and the full model on calibration data. Since GGUF stores only one uniform expert count per model, every layer has to keep the same number of experts. RCO enforces this budget exactly per layer, but optimizes all layers jointly.

The calibration data determines which abilities survive. A first search using only code and agent data removed the experts needed for images, and vision ability collapsed. The published version includes vision in the calibration data and keeps it. In exchange, other abilities are weakened. For general use, the authors recommend the unpruned GSQ-RCO versions.

Benchmarks (vendor figures)

All values were measured at "xhigh" reasoning effort.

SWE-bench Verified LiveCodeBench v6
BF16 base (354 GB) 82.80 87.43
GSQ-RCO Coder (58.4 GB) 79.20 87.43
Retained 95.7% 100%

According to the card, the October 17 update reduced endless loops and raised SWE-bench from 75.60 to 79.20 and LiveCodeBench from 86.28 to 87.43. Only the first shard changed; if you downloaded earlier, you need to re-download it. The authors explain the larger loss on SWE-bench by saying that long multi-step tasks accumulate errors and cope worse with a loss of capacity.

The vocabulary pruning

The user additionally removed tokens that are irrelevant for coding (non-English characters). Of 248,320 tokens, 130,020 remain (52.36%). The token_embd and output matrices shrink as a result, saving about 409 MB. That sounds small, but according to the user it can make the difference on systems with 8–16 GB of VRAM plus 32 GB of RAM. Automated checks confirm that the architecture, metadata, tokenizer order and all other 1,222 tensors remain byte-identical. This variant is not recommended for languages other than English. The IQ1_M variant's file is 57.993 GB.

What you need to try it

  • Graphics card: about 8 GB of VRAM (NVIDIA or, if you run into problems, the Vulkan backend).
  • Memory: around 24 GB of RAM; about 32 GB of total memory also works, but with a smaller context.
  • Storage: about 58 GB, ideally on your fastest SSD, since the n-gram table is read from there.
  • Mac/CPU/Colab: The source says nothing concrete about these; llama.cpp generally runs on macOS and Linux too.

The trick: most MoE experts stay in RAM, the smallest go into VRAM for more speed, and the n-gram table sits on the SSD. With selective MoE offloading via regex, the user gets about 70 T/s prompt processing and roughly 8 T/s generation, limited by his PCIe 3.0 connection. The --n-cpu-moe option is slower for the same purpose, he says. Because of mmap, the first run is slower, so run it twice for measurements. He also recommends the "qwen sharp" chat template, which he says reduces overthinking. The launch parameters are in the comments of the Reddit post.

Our take

The example shows how far a 177-billion-parameter model can be squeezed onto consumer hardware by combining expert pruning, low-bit quantization and memory offloading, with a loss of just over 4 points on SWE-bench. The caveats: it's an experimental model tuned for code, agents, vision and spatial reasoning, and general abilities suffer. The benchmarks come from the quant's creators, not an independent party. The speed figures (about 8 T/s generation) are rather slow for agent workflows and depend heavily on RAM, PCIe and SSD. One note from the user: CUDA has problems with 8 GB of VRAM, hence Vulkan. The model card text also mentions the engine "Strata," a third-party tool; there is no assessment of it. The license matches that of the base model, Qwen3.8-Flash-Next.

Sources

#quantization#moe#llama.cpp#coding#local
Read the original source

Try it yourself: Qwen3.8-Flash-Next GSQ-RCO Coder (Pruned GGUF)

Explained step by step, no prior knowledge needed – on your own computer or free in your browser.

What can I do with it?

You can run a coding assistant locally that writes and refactors code and works as an agent in tools like Pi, Hermes or OpenClaw. The model also keeps its image understanding. It is tuned for code, tool use and spatial reasoning.

Who is it worth it for?

Worth it for tinkerers with 8–16 GB of VRAM and at least 32 GB of RAM who want to test a strong coding model locally. Less suitable for general chat, non-English text, or machines with little RAM and a slow drive.

Size115.9 B parameters (6 billion active)
Download58 GB (about 77 min at 100 Mbit/s)
Licenseapache-2.0
TypeImage + text (understands images)

What your computer needs

Graphics card (NVIDIA), fully in VRAM at least 65 GB VRAMe.g. multiple professional GPUs (2× A6000, H100) or DGX Spark – fastest; with less VRAM, see the next line
Graphics card + system memory (MoE offloading) from approx. 8 GB VRAM + 24 GB RAMaccording to the source; die Experten liegen im Arbeitsspeicher, nur der Kern auf der Grafikkarte (llama.cpp/LM Studio). Langsamer als komplett im VRAM, aber auf normalen PCs machbar
Mac (Apple Silicon M1–M5) from 96 GB unified memoryThe GPU and CPU share the memory – the model can use about 70% of it
CPU only (no graphics card) Usable without a graphics card, but you'll need some patiencean estimated 6 words per second on a current desktop PC (MoE: only 6 billion parameters active per word). This requires at least 24 GB of RAM.
Storage approx. 60 GB freeModel download plus programs
Google Colab Colab Pro onlywith MoE offloading on a T4/L4 plus a High-RAM runtime (about 51 GB of RAM); free Colab doesn't have enough RAM

The file is the IQ1_M variant (3.5 bpw, 57.993 GB), vocabulary-pruned and intended for English and code. For non-English or general use, you're better off with the official ISTA DASLab version or the unpruned GSQ-RCO releases.

  • About 8 GB of VRAM and 24 GB of RAM; with about 32 GB of total memory it works with reduced context.
  • About 58 GB of disk space; the n-gram file (28.8 GB) is read from the SSD, so use a fast SSD.
  • If you have problems with CUDA and 8 GB of VRAM, use the Vulkan backend.
  • Close background programs and turn off browser hardware acceleration to free up VRAM.
  • Reduce the context length if memory gets tight (262K context takes a lot of memory).

Groß (115,9 B parameters, MoE): running entirely on the GPU takes a lot of VRAM (video memory). With MoE offloading, a regular graphics card plus plenty of RAM is enough (see table). Colab Free isn't enough.

How do I find out what my computer has?
  • Windows: Press Ctrl + Shift + Esc → Task Manager → Performance tab → click GPU on the left. At the bottom you'll see Dedicated GPU memory (that's your VRAM). You'll find system memory under Memory.
  • Mac: Apple menu at the top left → About This Mac. You'll see your chip (e.g. M2) and memory (e.g. 16 GB). On Apple chips, graphics and processor share this memory.
  • Linux: Type nvidia-smi in the terminal (shows your graphics card and its memory) and free -h for system memory.

Guide

Google Colab (in your browser, no installation)

Google Colab is a free service from Google. It gives you a computer with a graphics card in your browser for a few hours. All you need is a Google account. For this model: Colab Pro/Pro+ only – needs an A100 with 80 GB or an H100.

  1. Download the notebook. Click the button and save the file.

    Download colab.ipynb

  2. Open Colab. Go to colab.research.google.com and sign in with your Google account.
  3. Upload the notebook. In the window that appears, click Upload on the left (or choose File → Upload notebook at the top) and select the file colab.ipynb.
  4. Turn on the GPU. In the top menu, go to Runtime → Change runtime type → under Hardware accelerator, select T4 GPU (with Colab Pro: L4 or A100) → Save.
  5. Start everything. Runtime → Run all (keyboard shortcut Ctrl + F9). If you see the warning “This notebook was not authored by Google,” click Run anyway.
  6. Wait. The cells run one after another. A green checkmark appears to the left of each cell when it's done. Installation and download take about 23 minutes here.
  7. Try it out. The result appears below the last cell. To test something else, change the text in the cell and run it again with Shift + Enter. The last cell starts a proper chat with an input field.
  8. Clean up. When you're done: Runtime → Disconnect and delete runtime. This saves your free quota.

Good to know: The free GPU is limited (usually a few hours per day). After about 90 minutes of inactivity, Colab disconnects, and you'll have to start everything over.

Windows 10 / 11

The easiest way is Ollama, a free program that launches AI models with a single command.

  1. Update your graphics driver (NVIDIA cards only): Install the NVIDIA app or the latest driver. For AMD cards, use the latest Adrenalin driver.
  2. Install Ollama. Download the file OllamaSetup.exe from ollama.com/download/windows, double-click it, and choose Install. Afterward, a small llama icon appears in the taskbar at the bottom right.
  3. Open a terminal window. Press the Windows key, type PowerShell and press Enter. A blue or black window opens.
  4. Start the model. Copy this command ("Copy" button), paste it into the window with a right-click, and press Enter:
    ollama run hf.co/Skyrion/Qwen3.8-Flash-Next-GSQ-RCO-Coder-GGUF-Pruned:IQ1_M
    The first time, Ollama downloads the model (58 GB (about 77 min at 100 Mbit/s)). After that, it's instant.
  5. Start typing. Once >>> Send a message appears, type your question and press Enter. Type /bye to end the chat.
Prefer automatic? A script that picks the right variant for you
  1. Download both files into the same folder: try_windows.ps1 demo.py
  2. Open the folder in File Explorer, right-click an empty spot and choose Open in Terminal.
  3. Paste this command and press Enter:
    powershell -ExecutionPolicy Bypass -File try_windows.ps1

If needed, the script installs Ollama via winget, measures your VRAM (video memory) and downloads the matching variant.

macOS

Macs with an Apple chip (M1 to M5) are ideal. Older Intel Macs are very slow.

  1. Install Ollama. Download it from ollama.com/download/mac, open the file, and drag Ollama into your Applications folder. Launch Ollama once – a llama appears in the menu bar at the top.
  2. Open Terminal. Press Cmd + Space, type Terminal, and press Enter.
  3. Start the model. Paste the command (Cmd + V) and press Enter:
    ollama run hf.co/Skyrion/Qwen3.8-Flash-Next-GSQ-RCO-Coder-GGUF-Pruned:IQ1_M
    The first time, the model is downloaded (58 GB (about 77 min at 100 Mbit/s)).
  4. Start typing. Type your question and press Enter. Quit with /bye.
Pick the right variant automatically

try_mac.sh

cd ~/Downloads
bash try_mac.sh

Linux

  1. Check your GPU. nvidia-smi should show your card. If it doesn't, install the driver on Ubuntu and restart:
    sudo ubuntu-drivers install
  2. Install Ollama:
    curl -fsSL https://ollama.com/install.sh | sh
  3. Start the model:
    ollama run hf.co/Skyrion/Qwen3.8-Flash-Next-GSQ-RCO-Coder-GGUF-Pruned:IQ1_M
    Exit with /bye. Use ollama ps to check whether the model is running on the GPU.
  4. Or let it pick the right variant automatically:

    try_linux.sh

    bash try_linux.sh

Try it

Refactor this Python function so it works iteratively instead of recursively, and explain the changes.
Write SVG code that shows a pelican riding a bicycle.
Find the bug in this code and suggest a patch with a matching unit test.

If something goes wrong

You need both shards (00001 and 00002); llama.cpp loads the pair when you point it at the first one.

The first start is slow because of mmap; do a second run for speed measurements.

If you downloaded before October 17, you need to re-download the first shard.

Selective MoE offloading via regex is faster than --n-cpu-moe; the launch parameters are in the Reddit comments.

Use the Qwen chat template "sharp"; it reduces overthinking.

“out of memory,” a crash, or your computer freezes

The model is too big for your VRAM (video memory). Pick a smaller variant from the table above and close other programs, especially games and browsers with lots of tabs.

It runs, but extremely slowly

Your CPU is probably doing the work instead of your graphics card. In Ollama, the PROCESSOR column of ollama ps shows how much runs on the GPU. If it says "100% CPU", update your graphics driver or pick a smaller variant that fits entirely into VRAM (video memory).

“ollama” or “python” is not found

Close the terminal window and open it again so it recognizes the newly installed program. For Python on Windows: reinstall it and check Add python.exe to PATH.

Windows: "Running scripts is disabled on this system"

Run the script with exactly the command above: powershell -ExecutionPolicy Bypass -File try_windows.ps1. This allows execution for this one time only.

Error message when loading the model (version, "trust_remote_code", unknown architecture)

Brand-new models often need the latest software version. With Ollama: update Ollama. With Python: pip install -U transformers in the activated environment. The Model Card usually lists the exact version.

Tokenstrom generates the scripts and notebook automatically. Please take a quick look before running them – they're plain, readable text. Mind the model's license: apache-2.0.

Ask the AI assistant

Questions about this article, installation or background? Our assistant knows this page and runs on our own machine, not in someone else's cloud.

Connecting …

The Assistant is an AI (Gemma 4) and can make mistakes – please check important details against the source. Questions are used only to generate an answer and are deleted after one hour. Please don't enter any personal data.

Comments

What do you think? Already tried it? Write it here, no sign-up needed.

  1. Loading comments …

Comments are public. Links aren't allowed, and we delete abusive posts. You can delete your own comment at any time in this browser. Learn more in the Privacy Policy.