Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

onnxruntime
/
DeepSeek-R1-Distill-ONNX

Text Generation
Transformers
ONNX
ONNX
ONNXRuntime
Model card Files Files and versions
xet
Community
3

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", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • 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
DeepSeek-R1-Distill-ONNX
Ctrl+K
Ctrl+K
  • 3 contributors
History: 20 commits
kvaishnavi's picture
kvaishnavi
Update README.md
de94d9a verified 3 months ago
  • deepseek-r1-distill-llama-8B
    Upload DeepSeek-R1-Distill ONNX models over 1 year ago
  • deepseek-r1-distill-qwen-1.5B
    Upload DeepSeek-R1-Distill ONNX models over 1 year ago
  • deepseek-r1-distill-qwen-14B
    Upload DeepSeek-R1-Distill-Qwen-14B model about 1 year ago
  • deepseek-r1-distill-qwen-7B
    Upload DeepSeek-R1-Distill ONNX models over 1 year ago
  • .gitattributes
    1.61 kB
    Track large tokenizer files with git lfs over 1 year ago
  • LICENSE
    2.16 kB
    Upload LICENSE about 1 year ago
  • README.md
    5.19 kB
    Update README.md 3 months ago
  • config.json
    0 Bytes
    Upload DeepSeek-R1-Distill ONNX models over 1 year ago