Text Generation
Transformers
Safetensors
deepseek_v4
deepseek
deepseek-v4
dgx-spark
experimental
fp8
long-context
mixture-of-experts
mxfp4
reap
vllm
8-bit precision
Instructions to use 0xSero/DeepSeek-V4-Flash-162B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 0xSero/DeepSeek-V4-Flash-162B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="0xSero/DeepSeek-V4-Flash-162B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("0xSero/DeepSeek-V4-Flash-162B") model = AutoModelForCausalLM.from_pretrained("0xSero/DeepSeek-V4-Flash-162B") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use 0xSero/DeepSeek-V4-Flash-162B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "0xSero/DeepSeek-V4-Flash-162B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "0xSero/DeepSeek-V4-Flash-162B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/0xSero/DeepSeek-V4-Flash-162B
- SGLang
How to use 0xSero/DeepSeek-V4-Flash-162B 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 "0xSero/DeepSeek-V4-Flash-162B" \ --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": "0xSero/DeepSeek-V4-Flash-162B", "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 "0xSero/DeepSeek-V4-Flash-162B" \ --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": "0xSero/DeepSeek-V4-Flash-162B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use 0xSero/DeepSeek-V4-Flash-162B with Docker Model Runner:
docker model run hf.co/0xSero/DeepSeek-V4-Flash-162B
Standardize model card (template rollout)
Browse files
README.md
CHANGED
|
@@ -3,19 +3,50 @@ license: mit
|
|
| 3 |
library_name: transformers
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
tags:
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
| 16 |
---
|
| 17 |
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
**162B parameters | K144 REAP-pruned | 200K context | no speculative decoding**
|
| 21 |
|
|
@@ -193,3 +224,17 @@ Choose this if you value prefill throughput over decode speed, or if you want a
|
|
| 193 |
## License
|
| 194 |
|
| 195 |
MIT for the serving recipe and tooling. The base model weights follow the DeepSeek V4 Flash license. Review it before use.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
library_name: transformers
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
tags:
|
| 6 |
+
- deepseek
|
| 7 |
+
- deepseek-v4
|
| 8 |
+
- dgx-spark
|
| 9 |
+
- experimental
|
| 10 |
+
- fp8
|
| 11 |
+
- long-context
|
| 12 |
+
- mixture-of-experts
|
| 13 |
+
- mxfp4
|
| 14 |
+
- reap
|
| 15 |
+
- vllm
|
| 16 |
+
base_model:
|
| 17 |
+
- deepseek-ai/DeepSeek-V4-Flash
|
| 18 |
---
|
| 19 |
|
| 20 |
+
> [!TIP]
|
| 21 |
+
> **[Support this work →](https://donate.sybilsolutions.ai)** · [X](https://x.com/0xsero) · [GitHub](https://github.com/0xsero) · [REAP paper](https://arxiv.org/abs/2510.13999) · [Cerebras REAP](https://huggingface.co/collections/cerebras/cerebras-reap)
|
| 22 |
+
|
| 23 |
+
# DeepSeek-V4-Flash-162B
|
| 24 |
+
|
| 25 |
+
REAP-pruned [deepseek-ai/DeepSeek-V4-Flash](https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash).
|
| 26 |
+
|
| 27 |
+
## At a glance
|
| 28 |
+
|
| 29 |
+
| | |
|
| 30 |
+
|---|---|
|
| 31 |
+
| Base model | [deepseek-ai/DeepSeek-V4-Flash](https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash) |
|
| 32 |
+
| Format | BF16 |
|
| 33 |
+
| Total params | **162B** |
|
| 34 |
+
| Active / token | — |
|
| 35 |
+
| Experts / layer | 144 |
|
| 36 |
+
| Layers | 43 |
|
| 37 |
+
| Hidden size | 4096 |
|
| 38 |
+
| Context | 1,048,576 |
|
| 39 |
+
| On-disk size | 94 GB |
|
| 40 |
+
|
| 41 |
+
## Which variant should I pick?
|
| 42 |
+
|
| 43 |
+
| Variant | Format | Link |
|
| 44 |
+
|---|---|---|
|
| 45 |
+
| `DeepSeek-V4-Flash-162B` **(this)** | BF16 | [link](https://huggingface.co/0xSero/DeepSeek-V4-Flash-162B) |
|
| 46 |
+
| `DeepSeek-V4-Flash-162B-GGUF` | GGUF | [link](https://huggingface.co/0xSero/DeepSeek-V4-Flash-162B-GGUF) |
|
| 47 |
+
| `DeepSeek-V4-Flash-180B` | BF16 | [link](https://huggingface.co/0xSero/DeepSeek-V4-Flash-180B) |
|
| 48 |
+
| `DeepSeek-V4-Flash-180B-GGUF` | GGUF | [link](https://huggingface.co/0xSero/DeepSeek-V4-Flash-180B-GGUF) |
|
| 49 |
+
| `DeepSeek-V4-Flash-213B` | BF16 | [link](https://huggingface.co/0xSero/DeepSeek-V4-Flash-213B) |
|
| 50 |
|
| 51 |
**162B parameters | K144 REAP-pruned | 200K context | no speculative decoding**
|
| 52 |
|
|
|
|
| 224 |
## License
|
| 225 |
|
| 226 |
MIT for the serving recipe and tooling. The base model weights follow the DeepSeek V4 Flash license. Review it before use.
|
| 227 |
+
|
| 228 |
+
## License & citation
|
| 229 |
+
License inherited from the base model.
|
| 230 |
+
|
| 231 |
+
```bibtex
|
| 232 |
+
@misc{lasby2025reap,
|
| 233 |
+
title = {REAP the Experts: Why Pruning Prevails for One-Shot MoE Compression},
|
| 234 |
+
author = {Mike Lasby and Ivan Lazarevich and Nish Sinnadurai and Sean Lie and Yani Ioannou and Vithursan Thangarasa},
|
| 235 |
+
year = {2025}, eprint = {2510.13999}, archivePrefix = {arXiv}
|
| 236 |
+
}
|
| 237 |
+
```
|
| 238 |
+
|
| 239 |
+
## Sponsors
|
| 240 |
+
Made possible by **NVIDIA · TNG Technology · Lambda · Prime Intellect · Hot Aisle**.
|