MiniCPM-V-4.7-35B-A3B — ROCmFPX GGUF

openbmb/MiniCPM-V-4.7-35B-A3B quantized to the ROCmFPX formats (ROCmFP2/4/6/8, ROCmI4), a llama.cpp fork with AMD-oriented low-bit weight types for Vulkan and HIP/ROCm.

Start with Q4_0_ROCMFP4. It is the closest 4-bit file to the original. The other 4-bit files are recipes that ROCmFPX tuned and validated on AMD Strix Halo (Ryzen AI Max, gfx1151).

These files only load in the ROCmFPX fork. Stock llama.cpp, LM Studio and Ollama do not know these types.

Text only. MiniCPM-V 4.7 is a vision-language model, but the ROCmFPX fork does not yet have its vision projector, so these files are for text. For image input use upstream llama.cpp with standard quants.

Files and measured quality

Measured against the BF16 model (65GB, perplexity 6.1663) on WikiText-2 test, 40 chunks of 512 tokens. KLD is the mean KL divergence of the token distribution from BF16 (lower is better). Same top is how often the quant picks the same next token as BF16.

File Size PPL KLD Same top Notes
MiniCPM-V-4.7-35B-A3B-Q8_0_ROCMFPX_AGENT.gguf 34GB 6.1528 0.0087 96.16% 8-bit with agent/tool-call routing, closest to BF16
MiniCPM-V-4.7-35B-A3B-Q6_0_ROCMFPX_AGENT_LEAN.gguf 27GB 6.1383 0.0128 95.34% 6-bit agent routing without Q8-heavy boosts
MiniCPM-V-4.7-35B-A3B-Q4_0_ROCMFP4.gguf 22GB 6.2530 0.0344 92.54% Recommended. Balanced 4-bit ROCmFP4, best quality of the 4-bit files
MiniCPM-V-4.7-35B-A3B-Q4_0_ROCMFP4_COHERENT.gguf 19GB 6.3375 0.0597 89.81% ROCmFP4 that protects tensors important for tool calls / JSON / code
MiniCPM-V-4.7-35B-A3B-Q4_0_ROCMFP4_FAST.gguf 18GB 6.3100 0.0691 89.33% Speed-first 4-bit (4.25 bpw, one scale per block)
MiniCPM-V-4.7-35B-A3B-Q4_0_ROCMFP4_STRIX.gguf 18GB 6.3571 0.0689 89.03% Strix Halo (gfx1151) quality/speed recipe
MiniCPM-V-4.7-35B-A3B-Q4_0_ROCMI4.gguf 18GB 6.1835 0.0654 89.78% Signed 4-bit integers; Strix Halo experimental W4A4 path (opt-in build flag). HIP/ROCm only, no Vulkan shaders yet
MiniCPM-V-4.7-35B-A3B-Q2_0_ROCMFPX.gguf 11GB 8.3989 0.5395 72.42% ROCmFP2 blocks (2.50 bpw), smallest file; clear quality loss

Removed or not published

These were measured but are not kept: a file above is the same size or smaller and closer to BF16, or they are near-copies of a file above.

Recipe Size PPL KLD Same top Use instead
Q8_0_ROCMFPX 34GB 6.1937 0.0118 95.40% Q8_0_ROCMFPX_AGENT
Q6_0_ROCMFPX_AGENT 31GB 6.1770 0.0131 95.25% Q6_0_ROCMFPX_AGENT_LEAN
Q6_0_ROCMFPX 27GB 6.1709 0.0135 95.10% Q6_0_ROCMFPX_AGENT_LEAN
Q6_0_ROCMFPX_LEAN 27GB 6.1572 0.0136 95.11% Q6_0_ROCMFPX_AGENT_LEAN
Q3_0_ROCMFPX_AGENT 24GB 6.2214 0.0616 90.09% Q4_0_ROCMFP4
Q3_0_ROCMFPX 18GB 6.2561 0.0982 87.69% Q4_0_ROCMFP4_FAST or Q4_0_ROCMI4
Q4_0_ROCMFP4_EVEN 19GB 6.3424 0.0603 90.01% Q4_0_ROCMFP4_COHERENT
Q4_0_ROCMFP4_LEAN 19GB 6.3467 0.0602 89.69% Q4_0_ROCMFP4_COHERENT
Q4_0_ROCMFP4_FAST_COHERENT 18GB 6.3145 0.0694 89.36% Q4_0_ROCMFP4_FAST
Q4_0_ROCMFP4_STRIX_LEAN 18GB 6.3554 0.0686 89.45% Q4_0_ROCMFP4_STRIX

Q4_0_ROCMFP4_FAST_EVEN is byte-identical to Q4_0_ROCMFP4_FAST for this model, so it was never published.

How these were made

  1. convert_hf_to_gguf.py --no-mtp --outtype bf16 from upstream llama.cpp. The config lists one MTP layer but the checkpoint ships no MTP weights, so the MTP head is left out.
  2. Importance matrix from the BF16 model: 300 chunks × 512 tokens of WikiText-103 train text.
  3. llama-quantize --imatrix from ROCmFPX (fb08d7c), one run per type.
  4. Perplexity and KL divergence on the CPU backend (-dev none --no-op-offload). The fork's CUDA kernels for these types are not correct on NVIDIA, so no GPU numbers are used. These numbers describe the stored weights. AMD GPU kernels compute the same math in a different order and some paths also quantize activations (most of all the opt-in ROCmI4 W4A4 path), so results on an AMD GPU can be slightly worse. Reports of llama-perplexity results on AMD hardware are welcome.

Quantizing is CPU-only and deterministic: the same command gives byte-identical files on x86 and ARM.

Run

git clone https://github.com/charlie12345/ROCmFPX && cd ROCmFPX
cmake -B build -DGGML_VULKAN=ON          # or -DGGML_HIP=ON -DAMDGPU_TARGETS=gfx1151 (gfx1100 for RX 7900)
cmake --build build --target llama-server -j
build/bin/llama-server -m MiniCPM-V-4.7-35B-A3B-Q4_0_ROCMFP4.gguf -ngl 999 -fa on --jinja

License

Apache-2.0, same as the base model. All credit for the model goes to OpenBMB.

Downloads last month
457
GGUF
Model size
35B params
Architecture
qwen35moe
Hardware compatibility
Log In to add your hardware

2-bit

4-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Harsha001/MiniCPM-V-4.7-35B-A3B-ROCmFPX

Quantized
(64)
this model