dymoo's picture
Upload README.md with huggingface_hub
6ed7e45 verified
|
Raw History Blame Contribute Delete
6.24 kB
metadata
license: apache-2.0
base_model: Qwen/Qwen4-35B-A3B
tags:
  - rocmfpx
  - rocmfp4
  - rocm
  - strix-halo
  - gguf
  - quantization
  - qwen4
  - qwen4-moe
  - llama-cpp

Qwen4-35B-A3B ROCmFPx Sensitivity-Guided Quants (BF16-Derived)

Bit-exact ROCmFPx mixed-precision GGUF quantizations of Qwen/Qwen4-35B-A3B (BF16) built with HarshaVardhan3002/ROCmFPX@qwen4 (LLAMA_ROCMFPX_TENSOR_SCALE=1, 100%-matched 381K-token BF16 imatrix) and guided by our BF16 per-layer sensitivity profile (dymoo/Qwen4-35B-A3B-Sensitivity).

Highlights & Upstream Readiness

  • Ready today on HarshaVardhan3002/ROCmFPX@qwen4 (includes qwen4_moe #33626, external --ple #31185, and .scale tensor support #32669) and 100% binary-compatible (GGML type IDs 100, 101, 104, 107 + UE4M3 block layouts) with charlie12345/ROCmFPX once it merges qwen4_moe.
  • Beats Standard MXFP4 at Matched BPW: At 4.706 bpw (21.13 GB), SG-ROCmFP4-FAST achieves 0.0707 Mean KLD (0.0226 median, 89.89% Same Top-1) β€” 11.3% lower KLD than SG-MXFP4 (0.0798 at 4.688 bpw). SG-ROCmFP4-STRIX (4.898 bpw, 22.00 GB) reaches 0.0640 Mean KLD (0.0199 median, 90.45% Same Top-1) with dual-half UE4M3 scales!
  • Full Architectural Protection: All 2D PLE norms (ple_norm_*) pinned at F32, ple_key/ple_value pinned at BF16, all 4-stream hyper-connections (.*hc_.*, 168 tensors) + attention/GDN/shared-experts pinned at Q8_0, and per-expert .scale tensors (123 pairs, LLAMA_ROCMFPX_TENSOR_SCALE=1) preserve full UE4M3 dynamic range across all 256 routed experts.
  • Exact KLD/PPL Verification: Every ROCmFPx file was validated for valid UE4M3 scale bytes (<= 0x7e), zero non-expert quantization leaks, and evaluated against the exact same BF16 baseline logits (Mean PPL(base) = 6.1376) via lossless 0-ULP FP16 expansion (0.00e+00 rounding error on all UE4M3 formats) in stock llama-perplexity --kl-divergence.

Artifact Inventory

File Format / Backends Size Non-Engram BPW Mean KLD vs BF16 ↓ PPL ↓ Same Top-1 ↑ SHA-256
Qwen4-35B-A3B-SG-ROCmFP2.gguf Vulkan + HIP + CPU (HarshaVardhan3002/ROCmFPX@qwen4, binary-compatible w/ charlie12345/ROCmFPX) 14.33 GB 3.191 0.3172 6.7327 78.42% 9dbfdb6345853187…
Qwen4-35B-A3B-SG-ROCmFP3.gguf Vulkan + HIP + CPU (HarshaVardhan3002/ROCmFPX@qwen4, binary-compatible w/ charlie12345/ROCmFPX) 18.87 GB 4.201 0.1306 6.2248 85.93% 8e528f5d68bc5412…
Qwen4-35B-A3B-SG-ROCmFP4-FAST.gguf Vulkan + HIP + CPU (HarshaVardhan3002/ROCmFPX@qwen4, binary-compatible w/ charlie12345/ROCmFPX) 21.13 GB 4.706 0.0707 6.1851 89.89% 09996865df284a23…
Qwen4-35B-A3B-SG-ROCmFP4-STRIX.gguf Vulkan + HIP + CPU (HarshaVardhan3002/ROCmFPX@qwen4, binary-compatible w/ charlie12345/ROCmFPX) 22.00 GB 4.898 0.0640 6.1983 90.45% 8e745d50b339c367…

Full BF16-Baseline KLD & Perplexity Comparison (ROCmFPx vs. Standard GGUF vs. Unsloth)

Variant Source Non-Engram BPW Part-1 Size Mean KLD vs BF16 ↓ Median KLD ↓ 99.9% KLD ↓ PPL ↓ Same Top-1 ↑
Qwen4-35B-A3B (BF16 ref) Qwen/Qwen4-35B-A3B (native BF16 GGUF) 16.000 71.85 GB 0.0000 0.0000 0.000 6.1439 100.00%
SG-ROCmFP2 ROCmFPx (Ours, BF16) 3.191 14.33 GB 0.3172 0.1278 5.963 6.7327 78.42%
SG-IQ3_S Sensitivity-Guided (Ours, BF16) 4.071 18.28 GB 0.0969 0.0322 2.993 6.2665 87.57%
UD-IQ3_S unsloth/Qwen4-35B-A3B-GGUF (BF16) 4.073 18.29 GB 0.0740 0.0265 2.204 5.8898 89.35%
SG-ROCmFP3 ROCmFPx (Ours, BF16) 4.201 18.87 GB 0.1306 0.0430 4.336 6.2248 85.93%
SG-IQ4_XS Sensitivity-Guided (Ours, BF16) 4.562 20.48 GB 0.0646 0.0211 2.321 6.1730 90.04%
UD-IQ4_XS unsloth/Qwen4-35B-A3B-GGUF (BF16) 4.569 20.52 GB 0.0615 0.0202 1.864 6.1820 90.52%
SG-MXFP4 Sensitivity-Guided (Ours, BF16) 4.688 21.05 GB 0.0798 0.0271 2.263 6.0915 88.80%
SG-ROCmFP4-FAST ROCmFPx (Ours, BF16) 4.706 21.13 GB 0.0707 0.0226 2.402 6.1851 89.89%
SG-ROCmFP4-STRIX ROCmFPx (Ours, BF16) 4.898 22.00 GB 0.0640 0.0199 2.256 6.1983 90.45%
SG-Q4_K Sensitivity-Guided (Ours, BF16) 5.251 23.58 GB 0.0495 0.0152 2.051 6.1302 91.43%
UD-Q4_K_M unsloth/Qwen4-35B-A3B-GGUF (BF16) 5.270 23.66 GB 0.0445 0.0143 1.509 6.1131 91.57%

BPW vs KLD & PPL Pareto Comparison

Running on AMD Strix Halo / ROCm / Vulkan

# Built from https://github.com/HarshaVardhan3002/ROCmFPX (branch: qwen4)
llama-server \
  -m Qwen4-35B-A3B-SG-ROCmFP4-STRIX.gguf \
  --ple Qwen4-35B-A3B-engram-IQ4_NL.gguf_file \
  -ot per_layer_token_embd=CPU \
  -ngl 99 -c 32768 --jinja

Companion Releases