Instructions to use Atomic-Germ/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 Atomic-Germ/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 Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF:Q4_0 # Run inference directly in the terminal: llama cli -hf Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF:Q4_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF:Q4_0 # Run inference directly in the terminal: llama cli -hf Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF:Q4_0
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 Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF:Q4_0 # Run inference directly in the terminal: ./llama-cli -hf Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF:Q4_0
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 Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF:Q4_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF:Q4_0
Use Docker
docker model run hf.co/Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF:Q4_0
- LM Studio
- Jan
- vLLM
How to use Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF:Q4_0
- Ollama
How to use Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF with Ollama:
ollama run hf.co/Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF:Q4_0
- Unsloth Desktop
- Pi
How to use Atomic-Germ/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 Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF:Q4_0
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": "Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF:Q4_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF with Docker Model Runner:
docker model run hf.co/Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF:Q4_0
- Lemonade
How to use Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF:Q4_0
Run and chat with the model
lemonade run user.Qwen3.8-Flash-Next-APEX-GGUF-Q4_0
List all available models
lemonade list
- Hermes Agent
How to use Atomic-Germ/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 Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF:Q4_0
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 Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF:Q4_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Atomic-Germ/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 Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF:Q4_0
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 "Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF:Q4_0" \ --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"
Qwen3.8-Flash-Next APEX (Custom Optimized Layout)
This repository provides optimized, high-fidelity GGUF quantization files for Qwen3.8-Flash-Next (the 125B/177B Mixture-of-Experts architecture featuring GDN + Qwen Sparse Attention).
WORKS WITH GUANACO in ~24GB, around 4 tokens per second on a Framework 13 AI 340.
🌟 Key Improvements over Upstream
- Enhanced Chat Template: Bundles a refined, custom Jinja chat template that drastically outperforms official upstream Qwen implementations on multi-turn logic, strict JSON schemas, and complex parallel tool calling.
- Clean Hub Integration: The legacy
chat_templatefield has been entirely stripped fromtokenizer_config.jsonto avoid client duplication conflicts, fully embracing modern embedded GGUF tokenizer formatting.
📦 Quantization Breakdown
GGUF utilizes a modern mixed-precision strategy. While smaller, ultra-sensitive components default to unquantized precision to minimize perplexity loss, the largest layers are aggressively stepped down.
| File Name | Primary Weight Quant | Hidden State Layers | Normalization Layer | Description |
|---|---|---|---|---|
Qwen3.8-Flash-Next-Q6_K.gguf |
Q6_K (6-bit) |
Q8_0 (8-bit) |
F32 (Full Precision) |
Primary Supported Release. Near-lossless performance matching the base model. |
Qwen3.8-Flash-Next-Q4_0.gguf |
Q4_0 (4-bit) |
Q4_0 (4-bit) |
F32 (Full Precision) |
Fallback Variant. High-speed, lower memory alternative optimized for aggressive pruning. |
Qwen3.8-Flash-Next-imatrix.dat |
— | — | — | Importance Matrix. Mandatory for custom quantization tuning or dynamic local offloading. |
⚡ Running 78GB Models on Consumer Hardware (Guanaco Disk Streaming)
Thanks to the Guanaco disk-streaming patchset, you can comfortably run this massive model on consumer laptops (like a Framework 13 with 48GB unified UMA RAM) at 5–6 tokens/sec for generation, and significantly faster speeds for prompt evaluation. That red mark on the quant can be safely ignored.
To run the Q6_K model efficiently using io_uring and streaming memory mapping, use the following llama.cpp execution parameters:
LLAMA_ARG_GUANACO_IO_URING=1 llama-server -hf Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF:Q6_K --load-mode streaming -c 128000
🧠 The Role of the Importance Matrix (imatrix) in Disk Streaming
Unlike standard GGUF repositories where the imatrix.dat file is purely used for static calibration during quantization, this repo's imatrix serves a dual purpose optimized for Guanaco:
- Herd-Cache Optimization: The embedded matrix signals the Guanaco herd-cache loader exactly which high-frequency MoE experts should be permanently pinned in RAM from the moment the model boots.
- Minimized Latency: By keeping the most foundational experts resident in host memory (fitting perfectly within tighter allocations like a 48GB UMA laptop profile), disk swapping is strictly reserved for sparse, niche experts.
If your specific operational use case aligns with general multi-turn instruction-following and tool-use, loading the .dat file alongside the GGUF will yield a massive latency improvement.
Where the bits 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 | |
| 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 three 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, where a flat recipe is already near optimal, so a larger tier from us would be the same file you can get anywhere.
One measurement worth sharing
The n-gram table is the cheapest place in this model to take bits away, and that is not obvious.
Quantizing it at IQ4_NL instead of Q8_0 saves 25.6 GB and costs a KL divergence of 0.0324, a perplexity rise of 0.71%, and 6% of top-1 token predictions. That works out to 0.00126 KL per GB, which is about half the price of the cheapest tensor group measured on Qwen3.8-27B and roughly 28 times cheaper than the dearest. Measured on two builds differing in exactly that one tensor, scored over 100 chunks of held-out wikitext-2.
So every tier here keeps the table at IQ4_NL. Other providers move it to Q8_0 at their Q5 and Q6 tiers, which spends 25.6 GB on the one tensor that gives back the least.
🧩 Swapping and Customizing the Herd-Cache Matrix
- Default Matrix: The included imatrix gguf is sourced from the
mradermacher/Qwen3.8-Flash-Next-Uncensored-i1-GGUFcalibration run. It serves as an excellent baseline for general multi-turn dialogue, general reasoning, and everyday assistant tasks. - Fully Modular: Because of the architecture, you can swap this file out for any existing imatrix generated for a Qwen 3.8 Flash Next / Qwen4 model.
If you have a specialized importance matrix calibrated on a specific domain (e.g., heavy coding datasets, specialized math, or creative writing), simply rename it to Qwen3.8-Flash-Next-imatrix.dat and use it at boot. The Guanaco herd-cache loader will automatically adapt, pinning a completely different subset of domain-specific experts into your RAM allocation.
Thanks to @mudler; here are their things:
- Downloads last month
- 1,943
Model tree for Atomic-Germ/Qwen3.8-Flash-Next-APEX-GGUF
Base model
Qwen/Qwen3.8-Flash-Next

