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-00030-of-000163.safetensors with huggingface_hub
Verified signature20a1f9f -
Upload model-00029-of-000163.safetensors with huggingface_hub
Verified signature54bd06b -
Upload model-00028-of-000163.safetensors with huggingface_hub
Verified signatureffb5bec -
Upload model-00027-of-000163.safetensors with huggingface_hub
Verified signature797fa8a -
Upload model-00026-of-000163.safetensors with huggingface_hub
Verified signature8f78568 -
Upload model-00025-of-000163.safetensors with huggingface_hub
Verified signatureb46542d -
Upload model-00024-of-000163.safetensors with huggingface_hub
Verified signaturea9ebd37 -
Upload model-00023-of-000163.safetensors with huggingface_hub
Verified signature8b88098 -
Upload model-00022-of-000163.safetensors with huggingface_hub
Verified signature9337ef9 -
Upload model-00021-of-000163.safetensors with huggingface_hub
Verified signature2b78ecf -
Upload model-00020-of-000163.safetensors with huggingface_hub
Verified signatured2b4f3b -
Upload model-00019-of-000163.safetensors with huggingface_hub
Verified signature619166a -
Upload model-00018-of-000163.safetensors with huggingface_hub
Verified signatureba11952 -
Upload model-00017-of-000163.safetensors with huggingface_hub
Verified signaturea8f515e -
Upload model-00016-of-000163.safetensors with huggingface_hub
Verified signature2272ce2 -
Upload model-00015-of-000163.safetensors with huggingface_hub
Verified signature680712d -
Upload model-00014-of-000163.safetensors with huggingface_hub
Verified signature9c79491 -
Upload model-00013-of-000163.safetensors with huggingface_hub
Verified signature0cc4c6c -
Upload model-00012-of-000163.safetensors with huggingface_hub
Verified signatureb59897e -
Upload model-00011-of-000163.safetensors with huggingface_hub
Verified signature51c2f77 -
Upload model-00010-of-000163.safetensors with huggingface_hub
Verified signature877eb0d -
Upload model-00009-of-000163.safetensors with huggingface_hub
Verified signaturec717833 -
Upload model-00008-of-000163.safetensors with huggingface_hub
Verified signature2315aae -
Upload model-00007-of-000163.safetensors with huggingface_hub
Verified signatured7afb60 -
Upload model-00006-of-000163.safetensors with huggingface_hub
Verified signature6b89f86 -
Upload model-00005-of-000163.safetensors with huggingface_hub
Verified signaturebecf73e -
Upload model-00004-of-000163.safetensors with huggingface_hub
Verified signaturef5ddd54 -
Upload model-00003-of-000163.safetensors with huggingface_hub
Verified signaturee86c023 -
Upload model-00002-of-000163.safetensors with huggingface_hub
Verified signaturebed15d8 -
Upload model-00001-of-000163.safetensors with huggingface_hub
Verified signaturea590c5f -
Upload generation_config.json with huggingface_hub
Verified signature46ea2e1 -
Upload figures/benchmark.jpg with huggingface_hub
Verified signaturefdee22a -
Upload configuration_deepseek.py with huggingface_hub
Verified signature97efdf1 -
Upload config.json with huggingface_hub
Verified signaturef08d277 -
Upload README.md with huggingface_hub
Verified signatureb311fa1 -
Upload LICENSE with huggingface_hub
Verified signature7f9963a -
initial commit
Verified signaturefc4e743