CoolFace
Modelpublic

kingjones777/Qwen3.8-Flash-Next-Uncensored-ROCmFP4-STRIX_LEAN-imatrix-GGUF

sourceHugging Faceotherupdated 9d agoView on Hugging Face
2likes466downloads
Model Card
### ๐Ÿ”ง Runtime: build the ROCmFPX fork below Stock llama.cpp will not load this file. You need both the `qwen4exp` architecture and the ROCmFP4 tensor types in one tree. Our fork [`kingjones30/ROCmFPX`](https://github.com/kingjones30/ROCmFPX) (fork of `charlie12345/ROCmFPX`, branch main) has both. ``bash git clone https://github.com/kingjones30/ROCmFPX.git cd ROCmFPX cmake -B build -DGGML_HIP=ON -DGPU_TARGETS=gfx1151 -DGGML_NATIVE=ON -DCMAKE_BUILD_TYPE=Release cmake --build build --target llama-server llama-quantize -j$(nproc) ` โš ๏ธ **Apply the bundled fix patches before cmake:** qwen4exp-qsa-checkpoint-fix.patch always, plus qwen4exp-mtp-graph-fork.patch if you want --spec-type draft-mtp` on this clone. Full steps further down.

Qwen3.8-Flash-Next-Uncensored โ€” ROCmFP4 STRIX\_LEAN imatrix GGUF โ€” AMD Ryzen AI Max+ 395 / gfx1151

The importance-matrix-calibrated STRIX\LEAN build โ€” the **highest-quality tier** in this family. STRIX\LEAN already spends more bits than FAST (Q5 token embeddings and PLE, half the attention at higher precision); importance-weighted quantization on top gives it the lowest perplexity of any tier here.

โš ๏ธ Research artifact. Refusal behaviour has been removed. This does not add capability โ€” it removes guardrails. Use it deliberately, in a context where that is appropriate, and own the output.

Measured quality โ€” held-out WikiText-2 raw, -c 512

buildPPL
plain FAST (no imatrix) โ€” repo5.3465 ยฑ 0.034
FAST imatrix โ€” repo5.0337 ยฑ 0.031
this โ€” STRIX\_LEAN imatrix4.9865 ยฑ 0.031

4.9865 is the lowest perplexity across the whole family โ€” โˆ’6.7% vs plain FAST, and โˆ’0.9% below the FAST imatrix tier at the same calibration. That gap over FAST is the richer STRIX\_LEAN recipe (higher-precision embeddings/PLE) plus the imatrix weighting.

Honesty note: I do not publish a "plain STRIX\LEAN vs imatrix STRIX\LEAN" number, because the source BF16 was reclaimed after the build and I can't re-quantize a non-imatrix STRIX\LEAN for a clean same-recipe delta. The clean isolated imatrix effect (same recipe, imatrix on/off) is the FAST tier's **โˆ’5.9%**; expect STRIX\LEAN's isolated imatrix gain to be in the same range. imatrix moves quality, not speed โ€” decode t/s is unchanged.
  • โ€”Calibration corpus: bartowski `calibration_datav3`.
  • โ€”โš ๏ธ imatrix computed on the 4-bit model (the 51.2B PLE + 128 GB GTT ceiling blocks a BF16 forward pass on Strix Halo).

Speculative decoding (MTP)

draft-mtp works on this arch once you apply `qwen4exp-mtp-graph.patch` (bundled) โ€” it fixes the graph combiner that otherwise held acceptance near 0.36. Pair with the stock Flash-Next MTP head from `kingjones777/Qwen3.8-Flash-Next-MTP-Heads-GGUF`. Measured on the FAST tier with the fixed graph: acceptance 0.94 (+27.7% tok/s), at short context (`-c 2048`) with the Q8_0 head (mtp-Qwen3.8-Flash-Next-Q8_0.gguf, in the heads repo). STRIX\LEAN uses the same graph, but its own MTP speed has **not** been measured, and the published heads (Q6K, Q4) were not benchmarked. The head is stock Flash-Next โ€” it only proposes drafts, the main model verifies every token, so it never alters this model's output.

llama-server -m Qwen3.8-Flash-Next-Uncensored-Q4_0-ROCmFP4-STRIX_LEAN-imatrix-00001-of-00003.gguf \
  -md mtp-Qwen3.8-Flash-Next-Q8_0.gguf --spec-type draft-mtp \
  --spec-draft-n-min 0 --spec-draft-n-max 1 --n-gpu-layers-draft 99 \
  -ngl 999 -fa on -np 1 -c 32768 --jinja

With the bundled checkpoint fix applied this is verified to 128K (see below); raise -c to suit your context. Without that patch, keep speculative decoding at โ‰ค32K.

โš ๏ธ Updated 2026-09-17 โ€” re-download if you pulled it earlier. qwen4exp-mtp-graph.patch now carries the models.h and llama-model.cpp hunks it needs. The previous version applied cleanly but failed to compile ('graph_mtp' was not declared in this scope). The bundled patch matches the build steps on this card; for the other build path use qwen4exp-mtp-graph-fork.patch (if you build from a kingjones30/ROCmFPX clone), also bundled here.

Measured plain vs `draft-mtp` โ€” median of 3 per cell, one binary, greedy, cache_prompt:false, 256 generated tokens, -c 2048, Q80 head, Uncensored STRIXLEAN-imatrix weights, gfx1151 / ROCm 7.2.4 (2026-09-17):

workloadplain`--spec-draft-n-max 4``--spec-draft-n-max 1`
reasoning23.9130.94 (+29%, acc 0.680)31.94 (+34%, acc 0.945)
JSON output23.9928.31 (+18%, acc 0.597)27.24 (+14%, acc 0.758)
code24.0921.56 (โˆ’10%, acc 0.422)26.80 (+11%, acc 0.711)
long-document summary23.8020.36 (โˆ’14%, acc 0.352)24.14 (+1%, acc 0.641)

โญ Use `--spec-draft-n-max 1`. It did not lose a single workload here, and it wins most where the next token is predictable. n-max 4 pays for four draft forward passes per step, so it only wins when acceptance is high (reasoning, JSON) and is a genuine loss on code and long-document work. MTP also costs prefill speed, because the draft head processes the prompt too. The older +27.7% figure came from one reasoning-shaped prompt โ€” it holds for that shape, not universally, so measure your own.

### โœ… Depth: draft-mtp is fixed and measured (2026-09-17) The โ‰ฅ64K wedge came from context-checkpoint restores leaving the QSA indexer cache (mem_idx) out of the checkpoint. The fix ships here as `qwen4exp-qsa-checkpoint-fix.patch` โ€” it overrides state_write / state_read on llama_memory_hybrid_idx. Apply it with the build steps on this card even if you never use speculative decoding. With it applied, --spec-type draft-mtp ran clean from 2K to 128K on gfx1151: 8 depth rungs, 864 context-checkpoint restores (2 of them prompt-cache rollbacks at 64K), 0 GPU faults, coherent output at every depth. Measured 2026-09-17 on Ryzen AI MAX+ 395 / ROCm 7.2.4 with the Uncensored STRIXLEAN-imatrix weights + `mtp-Qwen3.8-Flash-Next-Q80.gguf, -c 262144, --spec-draft-n-max 4, default context checkpoints. That 128K run used my own fork tree; the exact build steps on this card were verified to 16K. โš ๏ธ **Still open:** --spec-type ngram-mod at โ‰ฅ64K has **not** been retested with the patch โ€” the original field report ([โ€ฆ-STRIX-GGUF#6](https://huggingface.co/kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF/discussions/6), thanks [@liusecret](https://huggingface.co/liusecret)) was ngram-mod, so keep -ctxcp 0 -cpent -1 when you use it. And do not use speculative decoding of any kind on Vulkan/gfx1151 โ€” acceptance collapses to 0. A speculative replay stalled` warning on ~2% of restores is expected and harmless: that is the server's livelock guard dropping one draft and decoding that token normally.

Recipe

Quantized from the BF16 weights published by [orcarouter/Qwen3.8-Flash-Next-Uncensored](https://huggingface.co/orcarouter/Qwen3.8-Flash-Next-Uncensored) โ€” the abliteration is theirs. 4.78 bpw, 98.5 GiB.

tensor grouptype
MoE expert weights (ffn_*_exps)TYPE_101 (ROCmFP4)
shared expert (ffn_*_shexp)TYPE_101
attention (attn_*)half TYPE_100, half TYPE_101
per_layer_token_embd.weight (PLE, 51.2B params)Q5_1
token_embd.weightQ5_K
output.weight (lm head)Q6_K (protected)

Building the runtime

Two patches, both bundled: qwen4exp-on-rocmfpx-d3ca537.patch (arch, 156 KB) and qwen4exp-mtp-graph.patch (draft-mtp fix).

bash
git clone https://github.com/charlie12345/ROCmFPX.git
cd ROCmFPX && git checkout d3ca537
curl -LO https://huggingface.co/kingjones777/Qwen3.8-Flash-Next-Uncensored-ROCmFP4-STRIX_LEAN-imatrix-GGUF/resolve/main/qwen4exp-on-rocmfpx-d3ca537.patch
git apply qwen4exp-on-rocmfpx-d3ca537.patch
curl -LO https://huggingface.co/kingjones777/Qwen3.8-Flash-Next-Uncensored-ROCmFP4-STRIX_LEAN-imatrix-GGUF/resolve/main/qwen4exp-mtp-graph.patch   # optional
git apply qwen4exp-mtp-graph.patch
# the checkpoint fix also ships in this repo โ€” apply it before configuring:
curl -LO https://huggingface.co/kingjones777/Qwen3.8-Flash-Next-Uncensored-ROCmFP4-STRIX_LEAN-imatrix-GGUF/resolve/main/qwen4exp-qsa-checkpoint-fix.patch
git apply qwen4exp-qsa-checkpoint-fix.patch      # checkpoint safety at >=64K: apply this always
cmake -B build -DGGML_HIP=ON -DGPU_TARGETS=gfx1151 -DGGML_NATIVE=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build --target llama-server llama-quantize -j$(nproc)

Speed โ€” Ryzen AI MAX+ 395, gfx1151, ROCm 7.2.4, full offload

Decode speed is the same as the plain STRIX\LEAN build (same layout): **23.20 tok/s** gen / **377.8 tok/s** prompt / 63.3 GiB GTT, one fixed 6,963-token prompt, `cacheprompt:false`, median of 4. Native max context 262,144 on a 128 GB box.

Files

filesize
Qwen3.8-Flash-Next-Uncensored-Q4_0-ROCmFP4-STRIX_LEAN-imatrix-00001-of-00003.gguf~44.9 GB
Qwen3.8-Flash-Next-Uncensored-Q4_0-ROCmFP4-STRIX_LEAN-imatrix-00002-of-00003.gguf~44.7 GB
Qwen3.8-Flash-Next-Uncensored-Q4_0-ROCmFP4-STRIX_LEAN-imatrix-00003-of-00003.gguf~16.1 GB
mmproj-Qwen3.8-Flash-Next-Uncensored-BF16.gguf0.91 GB (vision tower)
qwen4exp-on-rocmfpx-d3ca537.patcharch enablement
qwen4exp-mtp-graph.patchdraft-mtp graph fix

Usage

llama-server \
  --model Qwen3.8-Flash-Next-Uncensored-Q4_0-ROCmFP4-STRIX_LEAN-imatrix-00001-of-00003.gguf \
  --mmproj mmproj-Qwen3.8-Flash-Next-Uncensored-BF16.gguf \
  --host 127.0.0.1 --port 8080 \
  --n-gpu-layers 999 --flash-attn on --fit off \
  --ctx-size 131072 --threads 16 --jinja

Do not use `--no-mmap` (and do not use `-dio`). The PLE table streams from the file through the page cache; forcing it into anonymous memory gets the process OOM-killed with nothing in the log.

Reproduction

quantize: llama-quantize --imatrix unc.imatrix <BF16> <out> Q4_0_ROCMFP4_STRIX_LEAN 16
ppl     : llama-perplexity -m <this> -f wiki.test.raw -ngl 999 -fa on -dev ROCm0 -c 512   (NO -dio)

A number without its binary is a rumour โ€” every figure above is measured on the fork runtime above.

<!-- CREDITS:START -->

Acknowledgements

[charlie12345/ROCmFPX](https://github.com/charlie12345/ROCmFPX) โ€” ROCmFP4 tensor formats (MIT). [llama.cpp](https://github.com/ggml-org/llama.cpp) โ€” engine, GGUF, conversion tooling. AMD ROCm โ€” ROCm 7.2.4, gfx1151. [orcarouter](https://huggingface.co/orcarouter) โ€” the uncensored BF16 checkpoint. Qwen team โ€” the base model. License qwen-community-1.0. <!-- CREDITS:END -->