Instructions to use TachyHealth/DeepSeek-R1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TachyHealth/DeepSeek-R1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TachyHealth/DeepSeek-R1", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TachyHealth/DeepSeek-R1", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("TachyHealth/DeepSeek-R1", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TachyHealth/DeepSeek-R1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TachyHealth/DeepSeek-R1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TachyHealth/DeepSeek-R1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TachyHealth/DeepSeek-R1
- SGLang
How to use TachyHealth/DeepSeek-R1 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 "TachyHealth/DeepSeek-R1" \ --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": "TachyHealth/DeepSeek-R1", "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 "TachyHealth/DeepSeek-R1" \ --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": "TachyHealth/DeepSeek-R1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TachyHealth/DeepSeek-R1 with Docker Model Runner:
docker model run hf.co/TachyHealth/DeepSeek-R1
Commit History
-
Upload model-00095-of-000163.safetensors with huggingface_hub
Verified signatureac23a32 -
Upload model-00094-of-000163.safetensors with huggingface_hub
Verified signature150459c -
Upload model-00093-of-000163.safetensors with huggingface_hub
Verified signature6b63bd6 -
Upload model-00092-of-000163.safetensors with huggingface_hub
Verified signatured6a0264 -
Upload model-00091-of-000163.safetensors with huggingface_hub
Verified signaturebc05864 -
Upload model-00090-of-000163.safetensors with huggingface_hub
Verified signaturead7fe3c -
Upload model-00089-of-000163.safetensors with huggingface_hub
Verified signature481124e -
Upload model-00088-of-000163.safetensors with huggingface_hub
Verified signature1d5f546 -
Upload model-00087-of-000163.safetensors with huggingface_hub
Verified signature743a74a -
Upload model-00086-of-000163.safetensors with huggingface_hub
Verified signature9d35ebc -
Upload model-00085-of-000163.safetensors with huggingface_hub
Verified signature70e3cfc -
Upload model-00084-of-000163.safetensors with huggingface_hub
Verified signaturedcd8305 -
Upload model-00083-of-000163.safetensors with huggingface_hub
Verified signature3fa820c -
Upload model-00082-of-000163.safetensors with huggingface_hub
Verified signature40612bc -
Upload model-00081-of-000163.safetensors with huggingface_hub
Verified signature53c72fc -
Upload model-00080-of-000163.safetensors with huggingface_hub
Verified signature9fec9d6 -
Upload model-00079-of-000163.safetensors with huggingface_hub
Verified signature7055a87 -
Upload model-00078-of-000163.safetensors with huggingface_hub
Verified signaturea7ff3b0 -
Upload model-00077-of-000163.safetensors with huggingface_hub
Verified signature508a5b9 -
Upload model-00076-of-000163.safetensors with huggingface_hub
Verified signature26c720a -
Upload model-00075-of-000163.safetensors with huggingface_hub
Verified signature53dc8e6 -
Upload model-00074-of-000163.safetensors with huggingface_hub
Verified signature39bbc03 -
Upload model-00073-of-000163.safetensors with huggingface_hub
Verified signature066b3ec -
Upload model-00072-of-000163.safetensors with huggingface_hub
Verified signatureb662f6b -
Upload model-00071-of-000163.safetensors with huggingface_hub
Verified signature206dcf6 -
Upload model-00070-of-000163.safetensors with huggingface_hub
Verified signaturee7f2e83 -
Upload model-00069-of-000163.safetensors with huggingface_hub
Verified signature66efcde -
Upload model-00068-of-000163.safetensors with huggingface_hub
Verified signature98287e1 -
Upload model-00067-of-000163.safetensors with huggingface_hub
Verified signaturebcab51f -
Upload model-00066-of-000163.safetensors with huggingface_hub
Verified signature1b90c17 -
Upload model-00065-of-000163.safetensors with huggingface_hub
Verified signaturea02d073 -
Upload model-00064-of-000163.safetensors with huggingface_hub
Verified signature2b9b0d6 -
Upload model-00063-of-000163.safetensors with huggingface_hub
Verified signature151cd70 -
Upload model-00062-of-000163.safetensors with huggingface_hub
Verified signature33f57ae -
Upload model-00061-of-000163.safetensors with huggingface_hub
Verified signature2dfaade -
Upload model-00060-of-000163.safetensors with huggingface_hub
Verified signature4ca5a72 -
Upload model-00059-of-000163.safetensors with huggingface_hub
Verified signature3b1ed7f -
Upload model-00058-of-000163.safetensors with huggingface_hub
Verified signatureddd98af -
Upload model-00057-of-000163.safetensors with huggingface_hub
Verified signatureea5f5b4 -
Upload model-00056-of-000163.safetensors with huggingface_hub
Verified signature58714d6 -
Upload model-00055-of-000163.safetensors with huggingface_hub
Verified signature6fb6c78 -
Upload model-00054-of-000163.safetensors with huggingface_hub
Verified signatureb45772f -
Upload model-00053-of-000163.safetensors with huggingface_hub
Verified signaturea443509 -
Upload model-00052-of-000163.safetensors with huggingface_hub
Verified signature4843086 -
Upload model-00051-of-000163.safetensors with huggingface_hub
Verified signaturec404426 -
Upload model-00050-of-000163.safetensors with huggingface_hub
Verified signaturec54ffad -
Upload model-00049-of-000163.safetensors with huggingface_hub
Verified signature6a5c145 -
Upload model-00048-of-000163.safetensors with huggingface_hub
Verified signature3cf4acd -
Upload model-00047-of-000163.safetensors with huggingface_hub
Verified signaturec74b902 -
Upload model-00046-of-000163.safetensors with huggingface_hub
Verified signature39db4e3