Instructions to use mudler/Qwen3.8-Flash-Next-APEX-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use mudler/Qwen3.8-Flash-Next-APEX-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf mudler/Qwen3.8-Flash-Next-APEX-GGUF # Run inference directly in the terminal: llama cli -hf mudler/Qwen3.8-Flash-Next-APEX-GGUF
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf mudler/Qwen3.8-Flash-Next-APEX-GGUF # Run inference directly in the terminal: llama cli -hf mudler/Qwen3.8-Flash-Next-APEX-GGUF
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf mudler/Qwen3.8-Flash-Next-APEX-GGUF # Run inference directly in the terminal: ./llama-cli -hf mudler/Qwen3.8-Flash-Next-APEX-GGUF
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf mudler/Qwen3.8-Flash-Next-APEX-GGUF # Run inference directly in the terminal: ./build/bin/llama-cli -hf mudler/Qwen3.8-Flash-Next-APEX-GGUF
Use Docker
docker model run hf.co/mudler/Qwen3.8-Flash-Next-APEX-GGUF
- LM Studio
- Jan
- Ollama
How to use mudler/Qwen3.8-Flash-Next-APEX-GGUF with Ollama:
ollama run hf.co/mudler/Qwen3.8-Flash-Next-APEX-GGUF
- Unsloth Desktop
- Pi
How to use mudler/Qwen3.8-Flash-Next-APEX-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf mudler/Qwen3.8-Flash-Next-APEX-GGUF
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "mudler/Qwen3.8-Flash-Next-APEX-GGUF" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use mudler/Qwen3.8-Flash-Next-APEX-GGUF with Docker Model Runner:
docker model run hf.co/mudler/Qwen3.8-Flash-Next-APEX-GGUF
- Lemonade
How to use mudler/Qwen3.8-Flash-Next-APEX-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mudler/Qwen3.8-Flash-Next-APEX-GGUF
Run and chat with the model
lemonade run user.Qwen3.8-Flash-Next-APEX-GGUF-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use mudler/Qwen3.8-Flash-Next-APEX-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf mudler/Qwen3.8-Flash-Next-APEX-GGUF
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default mudler/Qwen3.8-Flash-Next-APEX-GGUF
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use mudler/Qwen3.8-Flash-Next-APEX-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf mudler/Qwen3.8-Flash-Next-APEX-GGUF
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "mudler/Qwen3.8-Flash-Next-APEX-GGUF" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
⚡ Each donation = another big model quantized
I host 30+ free APEX quantizations as independent research. My only local hardware is an NVIDIA DGX Spark (122 GB unified memory), enough for ~30-50B-class models, but bigger ones (200B+) require rented compute on H100/H200/Blackwell, typically $20-100 per quant.
If APEX quants are useful to you, your support directly funds those bigger runs.
Qwen3.8-Flash-Next APEX GGUF
Two quantizations of Qwen/Qwen3.8-Flash-Next, a 177 B parameter MoE with 512 experts.
Brought to you by the LocalAI team | APEX Project
You need less VRAM than the file size suggests
This is the important thing to know about running this model, and every listing that quotes a single number gets it wrong.
29% of this model is one tensor: per_layer_token_embd, 51.2 B parameters. It is a hashed n-gram table, and llama.cpp always keeps it in system RAM, never VRAM, whatever you pass to -ngl. It is a lookup, so there is nothing for a GPU to do with it.
So the honest requirement is a pair of numbers, measured from the finished files:
| Tier | Size | VRAM | System RAM | Fits |
|---|---|---|---|---|
| Qwen3.8-Flash-Next-APEX-I-Nano | 73.0 GB | 43.9 GB | 29.1 GB | one 48 GB card |
| Qwen3.8-Flash-Next-APEX-I-Mini | 78.7 GB | 49.5 GB | 29.1 GB | 64 GB or more |
Each tier ships as two shards, because HuggingFace caps a single file at 50 GB. Download both and point llama.cpp at the first; it picks up the rest.
A 73 GB file that needs 44 GB of VRAM is a different proposition from one that needs 73 GB.
Nano fits a single 48 GB card (A6000, L40S, RTX 6000 Ada) with room for context. On two 24 GB cards it is tight rather than comfortable: 43.9 GB of weights against 48 GB total leaves about 4 GB for KV cache and compute buffers, so expect to keep the context modest. Mini needs more than 48 GB, so plan on 2x32 GB or an 80 GB card.
llama-cli -m Qwen3.8-Flash-Next-APEX-I-Nano-00001-of-00002.gguf -p "Your prompt" -ngl 99
Needs a recent llama.cpp with qwen4exp support. The architecture landed after the model shipped, so older builds will not load these files.
Why nothing here is smaller than 70 GB
Not a recipe choice. It is arithmetic on the tensor shapes, and it constrains everyone equally.
llama.cpp cannot use a quantization type whose block size does not divide a tensor's row length. Two families in this model fail that test:
| tensor | parameters | row length | divisible by 256 |
|---|---|---|---|
per_layer_token_embd |
51.2 B (28.9%) | 160 | no |
ffn_down_exps |
40.3 B (22.8%) | 640 | no |
Every K-quant and every 256-block IQ type is therefore illegal on 51.7% of the model. Only 32-block types remain, and the cheapest usable one is 4.5 bits per weight. That pins 51.5 GB before anyone chooses anything.
Add the smallest sensible expert allocation on top and you land near 70 GB. That is why the smallest quantization anyone ships of this model, from any provider, sits around 72 GB.
It also means asking for a cheaper type on those tensors can cost you more. llama.cpp does not reject an illegal type, it promotes it: Q5_K becomes Q5_1, which is 5.5 bits going to 6.0. Configs here state the 32-block types explicitly so that never happens silently.
Where the bits actually went
With half the model locked, the only budget left to allocate is ffn_gate_exps and ffn_up_exps, 80.5 B parameters between them. That is where these files differ from a stock recipe, in two ways:
Layer position. Earlier measurement on Qwen3.8-27B found FFN layers at the edges of the stack 2.63x more sensitive per byte than those in the middle, so the first and last few layers keep more bits and the middle is pushed hardest.
Gate and up are not the same. The same sweep measured ffn_up at 0.00806 dKL/GB against ffn_gate at 0.00596, so up is about 1.35x dearer. It is held one step above gate throughout. Shelf recipes give the two identical types.
Everything else, the attention tensors, output, shared experts and the hyper-connection heads, is 2.8% of the model combined. Pinning all of it high costs about 2 GB, so it is pinned high rather than economised on.
What the quantization costs
Perplexity against the BF16 weights, same text and same 4096 token context, six chunks each:
| perplexity | vs BF16 | |
|---|---|---|
| BF16 | 4.3113 | |
| Mini | 4.4354 +/- 0.085 | +2.9% |
| Nano | 4.6659 +/- 0.093 | +8.2% |
For 4.5x compression against a 354 GB original, with 45% of the model at roughly 1.6 bits per weight in Nano, that is a good result.
Two caveats, because they matter. The text is the same corpus the importance matrix was built from, which flatters both quants; a held-out set would be the fair test. And perplexity is a blunt instrument, which is why the sensitivity work behind these allocations used KL divergence instead. Read these as evidence the files are sound, not as a claim that they beat any particular alternative.
A KL comparison against BF16 is not cheap here for a specific reason: the logits file stores about 497 KB per token at this 248320 token vocabulary, so it runs to terabytes at long context.
Limitations
Throughput is not measured. Different quant types select different kernels, so speed is a separate question from quality per byte.
The two sizes are close together because the floor forces it. There is no Q4 or Q6 tier here: above roughly 80 GB the movable budget relaxes toward Q4 and a flat recipe is already near optimal, so a larger tier from us would be the same file you can get anywhere.
Method
Importance matrix from diverse calibration data (chat, code, reasoning, tool calling, agentic traces, Wikipedia), computed on the BF16 weights at 4096 token context. per_layer_token_embd gets no imatrix coverage because it is an embedding lookup rather than a matmul, which is moot here since its 4.5 bpw floor is forced anyway.
- Downloads last month
- -
We're not able to determine the quantization variants.
Model tree for mudler/Qwen3.8-Flash-Next-APEX-GGUF
Base model
Qwen/Qwen3.8-Flash-Next