Instructions to use onnxruntime/DeepSeek-R1-Distill-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use onnxruntime/DeepSeek-R1-Distill-ONNX with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="onnxruntime/DeepSeek-R1-Distill-ONNX")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("onnxruntime/DeepSeek-R1-Distill-ONNX", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use onnxruntime/DeepSeek-R1-Distill-ONNX with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "onnxruntime/DeepSeek-R1-Distill-ONNX" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "onnxruntime/DeepSeek-R1-Distill-ONNX", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/onnxruntime/DeepSeek-R1-Distill-ONNX
- SGLang
How to use onnxruntime/DeepSeek-R1-Distill-ONNX 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 "onnxruntime/DeepSeek-R1-Distill-ONNX" \ --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": "onnxruntime/DeepSeek-R1-Distill-ONNX", "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 "onnxruntime/DeepSeek-R1-Distill-ONNX" \ --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": "onnxruntime/DeepSeek-R1-Distill-ONNX", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use onnxruntime/DeepSeek-R1-Distill-ONNX with Docker Model Runner:
docker model run hf.co/onnxruntime/DeepSeek-R1-Distill-ONNX
Commit ·
73058b2
1
Parent(s): c0f95f4
Upload DeepSeek-R1-Distill-Qwen-14B model
Browse files
deepseek-r1-distill-qwen-14B/gpu/gpu-int4-rtn-block-32/genai_config.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cddc940788ea5be923d4026786c7734e1aa25854f4a8ffb35a991a0a121ef4da
|
| 3 |
+
size 1478
|
deepseek-r1-distill-qwen-14B/gpu/gpu-int4-rtn-block-32/model.onnx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd580cf94808507841a8800c173d139ecdc2f2df89778508073139de49bddac5
|
| 3 |
+
size 441506
|
deepseek-r1-distill-qwen-14B/gpu/gpu-int4-rtn-block-32/model.onnx.data
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a28cb2fd6e11688610c84043e7c12e76fd7e589c5e651967cb7d4120bf274e5a
|
| 3 |
+
size 13349406720
|