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-00161-of-000163.safetensors with huggingface_hub
Verified signaturec89cbd1 -
Upload model-00160-of-000163.safetensors with huggingface_hub
Verified signatured39e536 -
Upload model-00159-of-000163.safetensors with huggingface_hub
Verified signature1371b91 -
Upload model-00158-of-000163.safetensors with huggingface_hub
Verified signature8f8d44a -
Upload model-00148-of-000163.safetensors with huggingface_hub
Verified signature3e9332a -
Upload model-00147-of-000163.safetensors with huggingface_hub
Verified signatureb7bc19f -
Upload model-00146-of-000163.safetensors with huggingface_hub
Verified signature33caa94 -
Upload model-00145-of-000163.safetensors with huggingface_hub
Verified signatureb734ac1 -
Upload model-00132-of-000163.safetensors with huggingface_hub
Verified signatureacad8a3 -
Upload model-00131-of-000163.safetensors with huggingface_hub
Verified signatureddd039c -
Upload model-00130-of-000163.safetensors with huggingface_hub
Verified signature6bee594 -
Upload model-00129-of-000163.safetensors with huggingface_hub
Verified signaturede8ecb4 -
Upload model-00118-of-000163.safetensors with huggingface_hub
Verified signature279c6a3 -
Upload model-00117-of-000163.safetensors with huggingface_hub
Verified signature7d23ad6 -
Upload model-00116-of-000163.safetensors with huggingface_hub
Verified signature782eacc -
Upload model-00115-of-000163.safetensors with huggingface_hub
Verified signaturea59e5dc -
Upload model-00114-of-000163.safetensors with huggingface_hub
Verified signature376a8b9 -
Upload model-00113-of-000163.safetensors with huggingface_hub
Verified signatureea90451 -
Upload model-00112-of-000163.safetensors with huggingface_hub
Verified signature4ca2895 -
Upload model-00111-of-000163.safetensors with huggingface_hub
Verified signature4e2d39a
-
Upload model-00110-of-000163.safetensors with huggingface_hub
Verified signature88891df -
Upload model-00109-of-000163.safetensors with huggingface_hub
Verified signature74e1b02 -
Upload model-00108-of-000163.safetensors with huggingface_hub
Verified signaturea0a3446 -
Upload model-00107-of-000163.safetensors with huggingface_hub
Verified signature7e7215c -
Upload model-00106-of-000163.safetensors with huggingface_hub
Verified signaturef2a44fd -
Upload model-00105-of-000163.safetensors with huggingface_hub
Verified signature1b16155 -
Upload model-00104-of-000163.safetensors with huggingface_hub
Verified signature1f2cead -
Upload model-00103-of-000163.safetensors with huggingface_hub
Verified signature0560d43 -
Upload model-00102-of-000163.safetensors with huggingface_hub
Verified signature6f6af91 -
Upload model-00101-of-000163.safetensors with huggingface_hub
Verified signaturea77dc69 -
Upload model-00100-of-000163.safetensors with huggingface_hub
Verified signature52df7ed -
Upload model-00099-of-000163.safetensors with huggingface_hub
Verified signature955863d -
Upload model-00098-of-000163.safetensors with huggingface_hub
Verified signaturec93ab76 -
Upload model-00097-of-000163.safetensors with huggingface_hub
Verified signature2c44709 -
Upload model-00096-of-000163.safetensors with huggingface_hub
Verified signature9e06eb4 -
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