This repository hosts the GGUF (llama.cpp) quantized version of MiniCPM-V-4.7-35B-A3B-DSpark. For the original BF16 weights and the full model card, please refer to openbmb/MiniCPM-V-4.7-35B-A3B-DSpark.

MiniCPM-V-4.7-35B-A3B-DSpark

MiniCPM-V-4.7-35B-A3B-DSpark is a DSpark draft checkpoint trained for exact pairing with MiniCPM-V-4.7-35B-A3B and its tokenizer.

Model Specification

Property Value
Target model MiniCPM-V-4.7-35B-A3B
Draft layers 5
Draft parameters 389,223,169
Draft tokens per forward pass 15
Target hidden-state layers [3, 11, 19, 27, 35]
Checkpoint precision BF16

Training Recipe

Training responses were generated by MiniCPM-V-4.7-35B-A3B from a mixture of Vision & Text prompts.

Setting Value
Training sequences 2M
Epochs 6
Optimizer AdamW
Objective CE + L1 + confidence loss

Evaluation

Acceptance length is defined as the total number of completion tokens divided by the total number of speculative verification steps. Evaluation uses natural EOS termination and max_new_tokens=8192.

Domain Accept Length
Vision
MMMU 5.098
MathVista 6.126
CharXiv_reasoning_val 5.479
OCRBench 5.407
Text
Math 6.687
Code 7.387
General 3.501

Usage with vLLM

vllm serve \
  --model openbmb/MiniCPM-V-4.7-35B-A3B \
  --served-model-name MiniCPM-V-4.7-35B-A3B \
  --tensor-parallel-size 2 \
  --max-model-len 40960 \
  --max-num-batched-tokens 40960 \
  --max-num-seqs 1 \
  --attention-backend FLASH_ATTN \
  --mm-encoder-attn-backend FLASH_ATTN \
  --mm-processor-kwargs '{"downsample_mode":"4x"}' \
  --trust-request-mm-kwargs \
  --disable-custom-all-reduce \
  --compilation-config '{"pass_config":{"fuse_allreduce_rms":false}}' \
  --speculative-config '{"method":"dspark","model":"openbmb/MiniCPM-V-4.7-35B-A3B-DSpark","num_speculative_tokens":15,"enable_adaptive_verification":false}' \
  --default-chat-template-kwargs '{"enable_thinking":false}'

Usage with llama.cpp

Download the target model, its vision projector (mmproj), and this DSpark draft:

huggingface-cli download openbmb/MiniCPM-V-4.7-35B-A3B-gguf MiniCPM-V-4_7-35B-A3B-Q4_K_M.gguf mmproj-model-f16.gguf --local-dir ./35B-A3B-gguf
huggingface-cli download openbmb/MiniCPM-V-4.7-35B-A3B-DSpark-gguf dspark-MiniCPM-V-4_7-35B-A3B-Q8_0.gguf --local-dir ./35B-A3B-gguf

Run with speculative decoding (-md = draft, --spec-type draft-dspark). llama-cli handles both the vision projector and the draft:

llama-cli \
  -m ./35B-A3B-gguf/MiniCPM-V-4_7-35B-A3B-Q4_K_M.gguf \
  --mmproj ./35B-A3B-gguf/mmproj-model-f16.gguf \
  -md ./35B-A3B-gguf/dspark-MiniCPM-V-4_7-35B-A3B-Q8_0.gguf \
  --spec-type draft-dspark \
  --image image.jpg -p "Describe this image." \
  -ngl 99 -ngld 99 -fa on -c 8192

For a multimodal server:

llama-server \
  -m ./35B-A3B-gguf/MiniCPM-V-4_7-35B-A3B-Q4_K_M.gguf \
  --mmproj ./35B-A3B-gguf/mmproj-model-f16.gguf \
  -md ./35B-A3B-gguf/dspark-MiniCPM-V-4_7-35B-A3B-Q8_0.gguf \
  --spec-type draft-dspark --spec-draft-n-max 15 \
  -ngl 99 -ngld 99 -fa on -c 8192 --jinja --port 8080

Requires a llama.cpp build with the dflash architecture and the DSpark Markov head. The draft must be paired with the matching MiniCPM-V 4.7 35B-A3B target. Draft quantization only affects acceptance length (never the output), so pick the smallest quant that fits — Q8_0 / Q6_K are good defaults.

Limitations and Disclaimer

This model has no autonomous intent or legal personhood; its outputs are text generated from statistical patterns and may be inaccurate, biased, or offensive, and may be manipulated by carefully crafted prompts ("jailbreaks") into producing unintended content. Its responses on sensitive topics such as politics, health, finance, and law are not reviewed by experts and should not be treated as professional advice.

This model is provided "AS IS", without warranty of any kind, express or implied, and the developers are not liable for any damages arising from its use. Users must employ the model only for lawful, compliant, and ethical purposes, configure their own safeguards, and label AI-generated content where required; deliberate jailbreaking, injection attacks, or inducing harmful output is prohibited, and any such testing is at the user's own risk.

Downloads last month
596
GGUF
Model size
0.4B params
Architecture
dflash
Hardware compatibility
Log In to add your hardware

4-bit

5-bit

6-bit

8-bit

16-bit

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

Model tree for openbmb/MiniCPM-V-4.7-35B-A3B-DSpark-gguf

Quantized
(7)
this model

Collection including openbmb/MiniCPM-V-4.7-35B-A3B-DSpark-gguf

Paper for openbmb/MiniCPM-V-4.7-35B-A3B-DSpark-gguf