Qwen4-35B-A3B Open Speculative & Quantization Suite
Collection
Zero-KV DFly2 drafter, 40-layer quantization sensitivity analysis, and sensitivity-guided GGUFs for Qwen/Qwen4-35B-A3B. โข 5 items โข Updated
How to use dymoo/Qwen4-35B-A3B-ROCmFPx with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf dymoo/Qwen4-35B-A3B-ROCmFPx # Run inference directly in the terminal: llama cli -hf dymoo/Qwen4-35B-A3B-ROCmFPx
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf dymoo/Qwen4-35B-A3B-ROCmFPx # Run inference directly in the terminal: llama cli -hf dymoo/Qwen4-35B-A3B-ROCmFPx
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf dymoo/Qwen4-35B-A3B-ROCmFPx # Run inference directly in the terminal: ./build/bin/llama cli -hf dymoo/Qwen4-35B-A3B-ROCmFPx
docker model run hf.co/dymoo/Qwen4-35B-A3B-ROCmFPx
How to use dymoo/Qwen4-35B-A3B-ROCmFPx with Ollama:
ollama run hf.co/dymoo/Qwen4-35B-A3B-ROCmFPx
How to use dymoo/Qwen4-35B-A3B-ROCmFPx with Pi:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf dymoo/Qwen4-35B-A3B-ROCmFPx
# Install Pi:
npm install -g @earendil-works/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
"providers": {
"llama-cpp": {
"baseUrl": "http://localhost:9931/v1",
"api": "openai-completions",
"apiKey": "none",
"models": [
{
"id": "dymoo/Qwen4-35B-A3B-ROCmFPx"
}
]
}
}
}# Start Pi in your project directory: pi
How to use dymoo/Qwen4-35B-A3B-ROCmFPx with Docker Model Runner:
docker model run hf.co/dymoo/Qwen4-35B-A3B-ROCmFPx
How to use dymoo/Qwen4-35B-A3B-ROCmFPx with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull dymoo/Qwen4-35B-A3B-ROCmFPx
lemonade run user.Qwen4-35B-A3B-ROCmFPx-{{QUANT_TAG}}lemonade list
How to use dymoo/Qwen4-35B-A3B-ROCmFPx with Hermes Agent:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf dymoo/Qwen4-35B-A3B-ROCmFPx
# 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:9931/v1 hermes config set model.default dymoo/Qwen4-35B-A3B-ROCmFPx
hermes
How to use dymoo/Qwen4-35B-A3B-ROCmFPx with OpenClaw:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf dymoo/Qwen4-35B-A3B-ROCmFPx
# 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:9931/v1 \ --custom-model-id "dymoo/Qwen4-35B-A3B-ROCmFPx" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
openclaw agent --local --agent main --message "Hello from Hugging Face"
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).
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.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!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.<= 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.| 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โฆ |
| 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% |
# 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
Qwen4-35B-A3B Open Speculative & Quantization Suitedymoo/Qwen4-35B-A3B-Sensitivitydymoo/Qwen4-35B-A3B-GGUFdymoo/Qwen4-35B-A3B-DFly2dymoo/Qwen4-35B-A3B-Pi-Hermes-Concise-LoRAWe're not able to determine the quantization variants.
Base model
Qwen/Qwen4-35B-A3B