Instructions to use Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B") model = AutoModelForMultimodalLM.from_pretrained("Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B
- SGLang
How to use Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio
How to use Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B", max_seq_length=2048, ) - Docker Model Runner
How to use Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B with Docker Model Runner:
docker model run hf.co/Jackrong/DeepSeek-V4-Pro-Qwen3.5-4B
🤝 Collaboration & Training Support
🔬 1. Distillation & Training Data
DeepSeek-V4-Pro in Max Effect mode produces detailed mathematics and STEM solutions.
Approximately 250K samples are cleaned and formatted for supervised reasoning transfer.
Qwen3.5-4B is fine-tuned through an Unsloth LoRA pipeline and merged into BF16.
An MTP-enabled Q8 GGUF build is used for the reported llama.cpp evaluations.
📊 2. Benchmark Results
2.1 GSM8K
The MTP-Q8 build was evaluated twice on the complete 1,319-question GSM8K test split. Across 2,638 sampled answers, the model produced 2,421 exact-answer matches, yielding a two-run pass@1 mean of 91.7741%. The two independent run scores were 91.6603% and 91.8878%, a spread of only 0.23 percentage points.
| Model | Accuracy |
|---|---|
| MiMo-V2.5-Pro | 99.60% |
| Llama-3.1-405B-Instruct | 96.80% |
| Llama-3.3-70B-Instruct | 94.84% |
| DeepSeek-V4-Pro-Qwen3.5-9B | 95.28% |
| DeepSeek-V4-Pro | 92.60% |
| DeepSeek-V4-Pro-Qwen3.5-4B | 91.77% |
| DeepSeek-V3 | 89.30% |
The 4B student is 3.51 points behind the published 9B score while remaining 2.47 points above the DeepSeek-V3 reference shown in the 9B release card.
1,319 questions × 2 runs · MTP-Q8 GGUF · llama.cpp · 64K context per slot · MTP draft n=2.
2.2 4B vs. 9B
Both students use the same DeepSeek-V4-Pro teacher pipeline and approximately 250,000-sample mathematics and STEM mixture. The 4B release prioritizes local efficiency; the 9B release retains more capacity for difficult multi-step STEM reasoning.
| Metric | DeepSeek-V4-Pro-Qwen3.5-4B | DeepSeek-V4-Pro-Qwen3.5-9B |
|---|---|---|
| GSM8K | 91.77% | 95.28% |
| MMLU-Pro Math | 80.40% | 92.40% |
| MMLU-Pro Physics | 74.20% | 89.40% |
| MMLU-Pro Chemistry | 74.80% | 89.80% |
| MMLU-Pro Average | 76.47% | 90.53% |
2.3 MMLU-Pro: Math, Physics & Chemistry
Each model in the comparison below was evaluated on 500 questions from each of three MMLU-Pro subsets—Math, Physics, and Chemistry—for 1,500 questions per model. The table follows the same column design and subject order as the 9B release card. The newly added Claude Mythos-distilled 27B result reaches 86.20% overall and appears directly before Claude Mythos-distilled 9B.
| Model | Evaluation Build | Math | Physics | Chemistry | Average |
|---|---|---|---|---|---|
| DeepSeek-V4-Pro-Qwen3.5-4B | MTP-Q8 GGUF | 80.40% | 74.20% | 74.80% | 76.47% |
| DeepSeek-V4-Pro-Qwen3.5-9B | MTP-Q8_0 GGUF | 92.40% | 89.40% | 89.80% | 90.53% |
| Qwen3.5-9B | MTP-Q8_0 GGUF | 90.60% | 89.00% | 89.20% | 89.60% |
| Claude Mythos-distilled 27B | MTP-Q8 GGUF | 88.40% | 87.60% | 82.60% | 86.20% |
| Claude Mythos-distilled 9B | MTP-Q8_0 GGUF | 86.00% | 78.60% | 78.60% | 81.07% |
⚙️ 3. Deployment Profile
🎯 4. Recommended Uses
- Grade-school and general mathematical problem solving
- Lightweight physics, chemistry, and broader STEM question answering
- Structured reasoning and analytical instruction following
- Local experiments with reasoning distillation and compact models
- MTP-enabled llama.cpp deployment research
⚠️ 5. Limitations
- This is an experimental 4B community model and remains subject to hallucinations, arithmetic mistakes, reasoning failures, and unstable behavior on difficult or underspecified tasks.
- The reported MMLU-Pro result covers fixed 500-question samples from Math, Physics, and Chemistry rather than the complete subsets; broader categories remain unevaluated.
- The GSM8K comparison combines reported results from different inference builds and backends; it is useful as a release overview, not as a perfectly controlled scaling study.
- The model received no coding-specific SFT data, and coding or tool-use generalization has not yet been established for this 4B checkpoint.
- A smaller parameter budget creates a visible gap versus the 9B release on the available MMLU-Pro STEM subsets.
- Users should independently verify high-stakes mathematical, scientific, medical, legal, or factual outputs.
📚 6. Resources, Acknowledgements & Citation
- Downloads last month
- 580