Instructions to use 6ms/DeepSeek-V4-Flash-MXFP4-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use 6ms/DeepSeek-V4-Flash-MXFP4-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="6ms/DeepSeek-V4-Flash-MXFP4-GGUF", filename="DeepSeek-V4-Flash-MXFP4-F16-Q8Compat.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use 6ms/DeepSeek-V4-Flash-MXFP4-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf 6ms/DeepSeek-V4-Flash-MXFP4-GGUF:F16 # Run inference directly in the terminal: llama-cli -hf 6ms/DeepSeek-V4-Flash-MXFP4-GGUF:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf 6ms/DeepSeek-V4-Flash-MXFP4-GGUF:F16 # Run inference directly in the terminal: llama-cli -hf 6ms/DeepSeek-V4-Flash-MXFP4-GGUF:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf 6ms/DeepSeek-V4-Flash-MXFP4-GGUF:F16 # Run inference directly in the terminal: ./llama-cli -hf 6ms/DeepSeek-V4-Flash-MXFP4-GGUF:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf 6ms/DeepSeek-V4-Flash-MXFP4-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf 6ms/DeepSeek-V4-Flash-MXFP4-GGUF:F16
Use Docker
docker model run hf.co/6ms/DeepSeek-V4-Flash-MXFP4-GGUF:F16
- LM Studio
- Jan
- vLLM
How to use 6ms/DeepSeek-V4-Flash-MXFP4-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "6ms/DeepSeek-V4-Flash-MXFP4-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "6ms/DeepSeek-V4-Flash-MXFP4-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/6ms/DeepSeek-V4-Flash-MXFP4-GGUF:F16
- Ollama
How to use 6ms/DeepSeek-V4-Flash-MXFP4-GGUF with Ollama:
ollama run hf.co/6ms/DeepSeek-V4-Flash-MXFP4-GGUF:F16
- Unsloth Studio
How to use 6ms/DeepSeek-V4-Flash-MXFP4-GGUF 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 6ms/DeepSeek-V4-Flash-MXFP4-GGUF 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 6ms/DeepSeek-V4-Flash-MXFP4-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for 6ms/DeepSeek-V4-Flash-MXFP4-GGUF to start chatting
- Docker Model Runner
How to use 6ms/DeepSeek-V4-Flash-MXFP4-GGUF with Docker Model Runner:
docker model run hf.co/6ms/DeepSeek-V4-Flash-MXFP4-GGUF:F16
- Lemonade
How to use 6ms/DeepSeek-V4-Flash-MXFP4-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull 6ms/DeepSeek-V4-Flash-MXFP4-GGUF:F16
Run and chat with the model
lemonade run user.DeepSeek-V4-Flash-MXFP4-GGUF-F16
List all available models
lemonade list
DeepSeek-V4-Flash-MXFP4-GGUF
⚠️ WORK IN PROGRESS: these GGUF files are newly converted and still under validation.
This repo packages the official
DeepSeek-V4-Flash
weights as GGUF. The goal is plain: keep the file as close as practical to the
official checkpoint, so people can test DeepSeek V4 Flash locally without first
turning the whole model into a lower-precision quant.
Files
| file | size | notes |
|---|---|---|
DeepSeek-V4-Flash-MXFP4-FP8-BF16.gguf |
156.1 GB | Source-dtype-faithful file. Keeps official routed experts as MXFP4, official dense FP8 as FP8, official BF16 as BF16, and official F32 as F32. |
DeepSeek-V4-Flash-MXFP4-F16-Q8Compat.gguf |
158.1 GB | Compatibility file tested with a V4-capable llama.cpp fork. Dense FP8 is decoded for that runtime path. |
Precision And Compatibility
Both files are converted directly from the official DeepSeek checkpoint.
- Routed experts: MXFP4. The official checkpoint stores routed expert matrices in packed FP4 with one E8M0 scale per 32 values. This conversion rearranges that packed data into GGUF MXFP4 blocks without re-quantizing it.
- Dense FP8 weights: native FP8. The FP8-BF16 file keeps the official FP8 payload bytes and E8M0 scale bytes in a custom row-local GGUF tensor type. This preserves the official FP8 values without decoding them to F16, Q8_0, or another lower-precision format.
- BF16/F32 tensors: source dtype. The FP8-BF16 file stores official BF16 tensors as GGUF BF16 and official F32 tensors as GGUF F32. This is slightly more compact than widening BF16 tensors to F32, while still preserving the original checkpoint values.
The Q8Compat file is a companion for V4-capable llama.cpp forks that expect some dense paths in older GGUF tensor types. It stores the same MXFP4 routed experts, but decodes dense FP8 tensors to F16 and stores the attention-output and shared-expert tensors as Q8_0 for that compatibility path. BF16-source tensors use F16/F32 compatibility storage because the tested llama.cpp fork does not currently run the source-BF16-preserving layout.
The FP8-BF16 file requires a runtime that implements the custom dense-FP8 GGUF tensor type and DeepSeek V4 architecture support. In practice today, use a V4-capable llama.cpp/ds4 fork rather than mainline llama.cpp.
Runtime Compatibility
The Q8Compat file has been smoke-tested with
antirez/llama.cpp-deepseek-v4-flash
at commit 2f2d44052b7d. It passed short factual, JSON, and
tool-call-shaped JSON smoke tests, plus a small Python code-generation smoke.
On Apple Silicon, use --no-repack to avoid an extra full-model repack
allocation:
llama-cli \
-m DeepSeek-V4-Flash-MXFP4-F16-Q8Compat.gguf \
-p "The capital of France is" \
-n 8 -c 32768 -ngl 0 \
--no-repack --single-turn -r "<|im_end|>"
The structured smoke tests used the same runtime path and produced parseable JSON for a simple record and a tool-call-shaped object. This file still requires DeepSeek V4 architecture support and GGUF MXFP4 support; it is not intended for mainline llama.cpp builds that do not have V4 support.
- Downloads last month
- 1,298
16-bit
Model tree for 6ms/DeepSeek-V4-Flash-MXFP4-GGUF
Base model
deepseek-ai/DeepSeek-V4-Flash