Instructions to use sfxnz/DeepSeek-V4.1-Flash-EXL3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sfxnz/DeepSeek-V4.1-Flash-EXL3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sfxnz/DeepSeek-V4.1-Flash-EXL3")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("sfxnz/DeepSeek-V4.1-Flash-EXL3", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use sfxnz/DeepSeek-V4.1-Flash-EXL3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sfxnz/DeepSeek-V4.1-Flash-EXL3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sfxnz/DeepSeek-V4.1-Flash-EXL3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/sfxnz/DeepSeek-V4.1-Flash-EXL3
- SGLang
How to use sfxnz/DeepSeek-V4.1-Flash-EXL3 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 "sfxnz/DeepSeek-V4.1-Flash-EXL3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sfxnz/DeepSeek-V4.1-Flash-EXL3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "sfxnz/DeepSeek-V4.1-Flash-EXL3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sfxnz/DeepSeek-V4.1-Flash-EXL3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use sfxnz/DeepSeek-V4.1-Flash-EXL3 with Docker Model Runner:
docker model run hf.co/sfxnz/DeepSeek-V4.1-Flash-EXL3
DeepSeek-V4.1-Flash EXL3 2.0 bpw MCG
EXL3 pack of deepseek-ai/DeepSeek-V4.1-Flash. Routed experts are 2.0 bpw MCG. Other tensors keep the source dtypes. Engram tables stay on NVMe at serve time.
This pack exists so 2× NVIDIA DGX Spark (GB10) can serve the model at tensor-parallel 2. Native MXFP4/MXFP8 is about 511 GB and does not fit 2× Spark UMA.
Download
hf download sfxnz/DeepSeek-V4.1-Flash-EXL3 --revision 2.0bpw-mcg
The two Engram shards are about 95 GiB each. Keep Hugging Face xet enabled. Do not set HF_HUB_DISABLE_XET.
Serve
The 2× DGX Spark cookbook is sfxnz/DeepSeek-V4.1-Flash-EXL3-vLLM-2x-DGX-Spark. Clone that repo, download this revision, build the image on both nodes, and run ./run.sh.
Pack
| Field | Value |
|---|---|
| Source | deepseek-ai/DeepSeek-V4.1-Flash commit dba1be0a40aa45a94ad051997016db3960a90277 |
| Quant | EXL3 2.0 bpw, codebook MCG, quant_method=exl3 |
| Shards | model-00001-of-00048.safetensors through model-00048-of-00048.safetensors |
| Size on disk | about 334 GB |
Model weights are MIT from DeepSeek. vllm-exl3 is AGPL-3.0. The recipe image clones it at build.
Rebuild
The GitHub recipe documents tools/quantize_experts_exl3.py and tools/assemble_pack.sh if you want to rebuild from the official snapshot.
Model tree for sfxnz/DeepSeek-V4.1-Flash-EXL3
Base model
deepseek-ai/DeepSeek-V4.1-Flash