Instructions to use agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-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 agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-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 agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF:F16 # Run inference directly in the terminal: llama cli -hf agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF:F16 # Run inference directly in the terminal: llama cli -hf agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF:F16
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 agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF:F16 # Run inference directly in the terminal: ./llama-cli -hf agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF:F16
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 agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF:F16
Use Docker
docker model run hf.co/agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF:F16
- LM Studio
- Jan
- vLLM
How to use agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-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": "agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF:F16
- Ollama
How to use agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF with Ollama:
ollama run hf.co/agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF:F16
- Unsloth Desktop
- Pi
How to use agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF:F16
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": "agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF with Docker Model Runner:
docker model run hf.co/agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF:F16
- Lemonade
How to use agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF:F16
Run and chat with the model
lemonade run user.Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF-F16
List all available models
lemonade list
- Hermes Agent
How to use agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-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 agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF:F16
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 agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF:F16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF:F16
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 "agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF:F16" \ --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 ROCmFP4-FAST imatrix GGUF
A 180 B model that runs entirely on the GPU of a 128 GB unified-memory box — 87.06 GiB at 4.23 bpw, within 2.5% perplexity of the unquantized model. Sized for the 96 GiB VRAM carve-out of a Strix Halo (Ryzen AI MAX+ 395 / Radeon 8060S).
Built and published by Agention.
Throughput against context depth, against our closest mainline-compatible quant run on both this fork and stock llama.cpp — numbers and discussion under Holding up at long context.
Why this one
- Everything stays on the GPU. Not the experts, not the 51.2 B-parameter n-gram table. No host-RAM fallback, no CPU compute in the hot path.
- Fast prefill that holds at depth — 423 t/s at 512 tokens, 357 t/s at 8k, still 245 t/s at 32k and 138 t/s at 128k. Prefill is compute-bound and the ROCmFP4 types are cheaper to dequantize. Matters most for long prompts, agentic loops, and anything that re-reads a large context.
- Better perplexity than that same mainline tier, by about two standard errors, and better than AesSedai's IQ4_XS and IQ3_S at 20–30 GB smaller.
- Vision included — the model's own tower, at f16, losslessly converted.
- Speculative decoding included — the model's own MTP head. Up to 40 tok/s generation observed on a Strix Halo with adaptive drafting; acceptance is content-dependent, so the rate moves with what you are generating.
- imatrix-calibrated on 1540 chunks from two corpora, so the low-bit tensors are fitted to real activations rather than assumed.
Two layouts, identical weights and identical size (splitting the n-gram table per head is a byte-for-byte restructuring, not a re-quantize):
- root — table split per head, fully VRAM-resident. Use this one.
v2/— table as a single tensor; portable, but needs--ngram-on-diskor host RAM for it, since one tensor that size exceeds what most Vulkan devices accept as a single buffer.
Setup
Qwen3.8-Flash-Next itself is upstream (ggml-org/llama.cpp#27742). This fork is still needed for the ROCmFPx quant types and the per-head PLE layout as well as the performance improvements listed above.
git clone https://github.com/LaurentZuijdwijk/llama.cpp
cd llama.cpp && git checkout vulkan/qwen4exp-rocmfpx
cmake -B build -DGGML_VULKAN=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build -j
Run
# recommended: per-head table, everything on the GPU
./build/bin/llama-server \
-m Qwen3.8-Flash-Next-ROCmFP4-FAST-v2-ple16.gguf \
-ngl 99 -ctk q8_0 -ctv q8_0 -fa on
# joined table, kept off the GPU and off host RAM
./build/bin/llama-server \
-m v2/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-v2.gguf \
-ngl 99 --ngram-on-disk --ngram-cache 8192
--ngram-cache defaults to 256 MiB; raise it for long generations, or throughput drops
off over the course of a conversation.
Quantized KV (-ctk q8_0 -ctv q8_0 -fa on) is worth using. Only 12 of the 48 layers
are full-attention, so the cache is small to begin with -- about 12.75 KiB/token at q8_0
against 24 KiB at f16. That is ~3.2 GiB for the model's full 262144-token context instead
of ~6 GiB, which is what makes long context fit next to 87 GiB of weights in a 96 GiB
carve-out. Measured no throughput cost.
Vision
mmproj/mmproj-Qwen3.8-Flash-Next-f16.gguf is the model's own vision tower (f16, lossless —
the vision weights were excluded from the upstream FP8 release, so nothing was
re-quantized). Add it and send images through the OpenAI-compatible endpoint:
./build/bin/llama-server \
-m Qwen3.8-Flash-Next-ROCmFP4-FAST-v2-ple16.gguf \
--mmproj mmproj/mmproj-Qwen3.8-Flash-Next-f16.gguf \
-ngl 99
Speculative decoding (MTP)
The model ships its own multi-token-prediction head, packaged separately as
Qwen3.8-Flash-Next-MTP-ROCmFP4-FAST-GGUF
(2.28 GiB). Let the draft length adapt -- acceptance varies a lot with content, and a
fixed depth is either too shallow on code or too greedy on prose:
./build/bin/llama-server \
-m Qwen3.8-Flash-Next-ROCmFP4-FAST-v2-ple16.gguf \
-md Qwen3.8-Flash-Next-MTP-ROCmFP4-FAST.gguf \
--spec-type draft-mtp --spec-draft-adaptive \
--spec-draft-n-min 2 --spec-draft-n-max 4 \
-ngl 99 --n-gpu-layers-draft 99 \
-ctk q8_0 -ctv q8_0 -fa on
Sampling
Qwen's recommended settings:
| parameter | thinking mode | instruct (non-thinking) |
|---|---|---|
| temperature | 1.0 | 0.7 |
| top_p | 0.95 | 0.80 |
| top_k | 20 | 20 |
| min_p | 0.0 | 0.0 |
| presence_penalty | 0.0 | 1.5 |
| repetition_penalty | 1.0 | 1.0 |
Perplexity
wikitext-2 raw, 145 chunks at -c 2048.
| build | PPL | vs. reference |
|---|---|---|
| unquantized reference (as reported in PR 27742) | 4.0068 +/- 0.02271 | - |
| this file | 4.1062 +/- 0.02329 | +2.48% |
Against AesSedai's quants, compared the fair way (each build's PPL against its own measured reference, since their test methodology differs from ours):
| build | size | PPL ratio vs. own reference |
|---|---|---|
| AesSedai IQ3_S | 107.38 GiB | +6.10% |
| this file | 87.06 GiB | +2.48% |
| AesSedai IQ4_XS | 117.13 GiB | +3.12% |
| AesSedai Q4_K_M | 135.38 GiB | +0.61% |
Beats their IQ4_XS and IQ3_S on quality at a smaller size.
Holding up at long context
A separate, deeper sweep — same box, q8_0 KV, arms interleaved — against AP-IQ4_XS
(Qwen3.8-Flash-Next-AP-GGUF)
run two ways: on this fork, and on stock llama.cpp (30 August 2026 build). Numbers are relative and exclude MTP.
The chart at the top of this card plots these figures.
Prefill (t/s)
| depth | this file | AP-IQ4_XS (fork) | AP-IQ4_XS (mainline) |
|---|---|---|---|
| 512 | 423.3 | 315.9 | 245.6 |
| 2048 | 406.5 | 302.8 | 219.7 |
| 8192 | 357.2 | 275.1 | 153.0 |
| 16384 | 301.0 | 232.4 | 107.4 |
| 32768 | 245.5 | 194.2 | 70.6 |
| 65536 | 188.0 | 150.9 | — |
| 131072 | 137.7 | 122.3 | — |
Generation (t/s) no MTP
| depth | this file | AP-IQ4_XS (fork) | AP-IQ4_XS (mainline) |
|---|---|---|---|
| 512 | 27.77 | 25.05 | 26.39 |
| 2048 | 27.36 | 24.75 | 22.70 |
| 8192 | 26.67 | 25.07 | 18.67 |
| 16384 | 25.54 | 22.91 | 16.22 |
| 32768 | 24.67 | 22.46 | 11.85 |
| 65536 | 23.09 | 21.08 | — |
| 131072 | 19.70 | 18.10 | — |
The mainline column stops at 32k. Run abandoned early.
Two separate things are visible here, and they are worth keeping apart:
- The layout, more than the quant. This file prefills 12-34% faster than
AP-IQ4_XSon the same binary, but the two differ in more than their quant type: this one splits the n-gram table per head so it lives in VRAM, whileAP-IQ4_XSkeeps it as one 28.8 GiB tensor in host RAM. Some of the gap is the ROCmFP4 types being cheaper to dequantize and some is that table placement — this comparison does not separate them. - The fork. The same
AP-IQ4_XSfile on stock llama.cpp is the bottom line on both panels, and the gap widens with depth: 1.3x slower prefill at 512, 2.8x at 32k. Decode falls off harder still — 11.85 t/s against 22.46 at 32k. Shallow, mainline is competitive and actually wins decode at 512 (26.39 vs 25.05); the fork's long-context work costs a little there and pays for itself by 8k.
At 128k this file still generates at 19.7 t/s, 71% of its 512-depth speed.
Credits
qwen4exp support is the work of Daniel Han
(@danielhanchen), from
ggml-org/llama.cpp#27742, merged
upstream. This fork is only still needed for what's listed under Setup above.
Quant formats hand-ported from ciru-ai/ROCmFPX. Calibration corpora from bartowski and Thireus, credited above. Base model by the Qwen team.
Quantized and published by Agention.
License
Qwen Community License 1.0, included as LICENSE.
- Downloads last month
- 4,413
We're not able to determine the quantization variants.
Model tree for agentionai/Qwen3.8-Flash-Next-ROCmFP4-FAST-imatrix-GGUF
Base model
Qwen/Qwen3.8-Flash-Next