Instructions to use tiny-random/deepseek-v4.1-flash-1017 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tiny-random/deepseek-v4.1-flash-1017 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tiny-random/deepseek-v4.1-flash-1017")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("tiny-random/deepseek-v4.1-flash-1017", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use tiny-random/deepseek-v4.1-flash-1017 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tiny-random/deepseek-v4.1-flash-1017" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tiny-random/deepseek-v4.1-flash-1017", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tiny-random/deepseek-v4.1-flash-1017
- SGLang
How to use tiny-random/deepseek-v4.1-flash-1017 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 "tiny-random/deepseek-v4.1-flash-1017" \ --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": "tiny-random/deepseek-v4.1-flash-1017", "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 "tiny-random/deepseek-v4.1-flash-1017" \ --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": "tiny-random/deepseek-v4.1-flash-1017", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use tiny-random/deepseek-v4.1-flash-1017 with Docker Model Runner:
docker model run hf.co/tiny-random/deepseek-v4.1-flash-1017
Simplify model card
Browse files
README.md
CHANGED
|
@@ -46,19 +46,9 @@ Note:
|
|
| 46 |
expert counts, vocabulary rows, and 32-wide quantization blocks divide cleanly by 2.
|
| 47 |
The online example enables the embedded three-stage DSpark/MTP draft explicitly.
|
| 48 |
|
| 49 |
-
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
`sglang.Engine` runs using the same TP=2/backend settings reached engine-ready
|
| 53 |
-
with both base decoding and `speculative_algorithm="DSPARK"`; CUDA Graph remained
|
| 54 |
-
enabled, and the latter reported DSpark enabled, generated all three cases
|
| 55 |
-
(including `Hello` with exactly 10 new tokens), and shut down with exit code 0.
|
| 56 |
-
The tested checkpoint contains 1,629
|
| 57 |
-
tensors, is 96,712,592 bytes, and has SHA-256
|
| 58 |
-
`53aae999fdcacd310c400a2fc3112bb68ce35588441784c75dca5820abf0f35b`. The README
|
| 59 |
-
keeps the equivalent online `sglang serve` form for normal deployment. The
|
| 60 |
-
official source `inference/convert.py` also produced two shards which loaded
|
| 61 |
-
strictly into the source runtime for both ranks.
|
| 62 |
|
| 63 |
| File path | Size |
|
| 64 |
|------|------|
|
|
@@ -587,4 +577,6 @@ main()
|
|
| 587 |
|
| 588 |
### Change log:
|
| 589 |
|
| 590 |
-
- 2026-10-20: Initial
|
|
|
|
|
|
|
|
|
| 46 |
expert counts, vocabulary rows, and 32-wide quantization blocks divide cleanly by 2.
|
| 47 |
The online example enables the embedded three-stage DSpark/MTP draft explicitly.
|
| 48 |
|
| 49 |
+
- TP=2 with DSpark/MTP and CUDA Graph was validated on two NVIDIA H20 GPUs using
|
| 50 |
+
Python 3.12.13, CUDA 13.0, torch 2.14.1, SGLang
|
| 51 |
+
`0.5.23.dev384+g9ab74b851`, FlashInfer 0.7.2, and Transformers 5.19.0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
| File path | Size |
|
| 54 |
|------|------|
|
|
|
|
| 577 |
|
| 578 |
### Change log:
|
| 579 |
|
| 580 |
+
- 2026-10-20: Initial version with TP=2 and DSpark/MTP support.
|
| 581 |
+
|
| 582 |
+
This repo is generated by GPT-5.6-Sol.
|