Instructions to use nsparks/DeepSeek-V4-Flash-FP4-FP8-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use nsparks/DeepSeek-V4-Flash-FP4-FP8-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf nsparks/DeepSeek-V4-Flash-FP4-FP8-GGUF # Run inference directly in the terminal: llama cli -hf nsparks/DeepSeek-V4-Flash-FP4-FP8-GGUF
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf nsparks/DeepSeek-V4-Flash-FP4-FP8-GGUF # Run inference directly in the terminal: llama cli -hf nsparks/DeepSeek-V4-Flash-FP4-FP8-GGUF
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 nsparks/DeepSeek-V4-Flash-FP4-FP8-GGUF # Run inference directly in the terminal: ./llama-cli -hf nsparks/DeepSeek-V4-Flash-FP4-FP8-GGUF
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 nsparks/DeepSeek-V4-Flash-FP4-FP8-GGUF # Run inference directly in the terminal: ./build/bin/llama-cli -hf nsparks/DeepSeek-V4-Flash-FP4-FP8-GGUF
Use Docker
docker model run hf.co/nsparks/DeepSeek-V4-Flash-FP4-FP8-GGUF
- LM Studio
- Jan
- Ollama
How to use nsparks/DeepSeek-V4-Flash-FP4-FP8-GGUF with Ollama:
ollama run hf.co/nsparks/DeepSeek-V4-Flash-FP4-FP8-GGUF
- Unsloth Studio
How to use nsparks/DeepSeek-V4-Flash-FP4-FP8-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 nsparks/DeepSeek-V4-Flash-FP4-FP8-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 nsparks/DeepSeek-V4-Flash-FP4-FP8-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for nsparks/DeepSeek-V4-Flash-FP4-FP8-GGUF to start chatting
- Docker Model Runner
How to use nsparks/DeepSeek-V4-Flash-FP4-FP8-GGUF with Docker Model Runner:
docker model run hf.co/nsparks/DeepSeek-V4-Flash-FP4-FP8-GGUF
- Lemonade
How to use nsparks/DeepSeek-V4-Flash-FP4-FP8-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull nsparks/DeepSeek-V4-Flash-FP4-FP8-GGUF
Run and chat with the model
lemonade run user.DeepSeek-V4-Flash-FP4-FP8-GGUF-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
DeepSeek-V4-Flash native FP4 / FP8 GGUF
Native, 1:1 conversion of deepseek-ai/DeepSeek-V4-Flash from the original
safetensors into a single GGUF file that preserves the model's native
low-precision weights:
- Dense weights: FP8 E4M3 (
F8_E4M3_B128, 128-element blocks with one E8M0 scale) - MoE expert weights: MXFP4 (
MXFP4)
This file is not derived from a higher-precision intermediate; the FP4 and FP8 codes from the upstream checkpoint are written directly into the GGUF.
File
| File | Size | Quant |
|---|---|---|
DeepSeek-V4-Flash-FP4-FP8-native.gguf |
~146 GB | F8_E4M3 + MXFP4 |
Loading
This GGUF requires a llama.cpp build with native F8_E4M3_B128 and MXFP4
support and the DeepSeek V4 Flash architecture. Stock upstream llama.cpp
cannot load this file.
Reference (WIP) build that can both produce and run this GGUF:
https://github.com/nisparks/llama.cpp/tree/wip/deepseek-v4-support
That branch adds:
GGML_TYPE_F8_E4M3_B128(ggml type 42)LLAMA_FTYPE_MOSTLY_F8_E4M3_MXFP4(ftype 41, exposed asF8_E4M3_MXFP4/moe-f8-e4m3-mxfp4)- CUDA dequant / MMVQ kernels for
F8_E4M3_B128 - Loader / converter /
gguf-pysupport - Custom DeepSeek V4 Flash model graph
The branch is an active WIP, expect rough edges.
Notes
- DeepSeek V4 Flash is a custom architecture (MoE + sliding-window attention + compressor + indexer). The runtime in the reference branch implements that graph as a custom model path.
- For matching activation behavior the runtime also applies HF's blockwise FP8 / FP4 fake-activation-quant on attention KV and indexer Q/KV after the Hadamard rotation.
Provenance
- Upstream model:
deepseek-ai/DeepSeek-V4-Flash - Conversion command:
(run from https://github.com/nisparks/llama.cpp/tree/wip/deepseek-v4-support)python3 convert_hf_to_gguf.py /mnt/models/hf/DeepSeek-V4-Flash \ --outtype moe-f8-e4m3-mxfp4 \ --torch-threads 96 \ --outfile DeepSeek-V4-Flash-FP4-FP8-native.gguf - License: Inherits the upstream DeepSeek V4 Flash license.
- Downloads last month
- 133,120
We're not able to determine the quantization variants.
Model tree for nsparks/DeepSeek-V4-Flash-FP4-FP8-GGUF
Base model
deepseek-ai/DeepSeek-V4-Flash