/ Модель

Характеристики

Размер весов
2,2 МБ
Лицензия
MIT
Библиотека
transformers
Опубликована
29 янв 2025

DeepSeek-R1-Distill-ONNX

Генерация текстаТекст → текст4 профессии

Оптимизированные ONNX Runtime версии DeepSeek-R1-Distill-Qwen-1.5B и 7B для ускоренной генерации текста на CPU и GPU.

47скачиваний за 30 дней9лайковвеса обновлены11 фев 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Репозиторий ONNX Runtime содержит оптимизированные версии DeepSeek-R1-Distill-Qwen-1.5B и DeepSeek-R1-Distill-Qwen-7B для ускоренного инференса. Модели представлены в формате ONNX и предназначены для генерации текста; их можно запускать через ONNX Runtime на CPU и GPU, включая серверы, настольные компьютеры и мобильные CPU. Разработчик — ONNX Runtime.

В репозитории есть конфигурации с квантизацией int4 методом RTN, а также варианты с разной точностью для целевых устройств. README приводит примеры более высокой скорости генерации на отдельных конфигурациях, но отмечает, что оптимизации могут немного менять ответы относительно базовой модели. Указана лицензия MIT. Подробности о задачах и языках базовых моделей приведены в карточках DeepSeek-R1-Distill-Qwen-1.5B и DeepSeek-R1-Distill-Qwen-7B; Python, C и C++ в README перечислены как языки программирования, а не естественные языки.

Сценарии применения

  • локальный запуск языковой модели на CPU
  • ускоренная генерация текста на GPU
  • инференс модели на мобильном CPU
  • развёртывание генерации текста на Windows, Linux и macOS

Ограничения

Оптимизированные варианты могут давать небольшие отличия от ответов базовой модели. README рекомендует проверять модель в целевых сценариях; сведения о естественных языках в предоставленных данных отсутствуют.

Для каких профессий подходит4

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

DeepSeek-R1-Distill-Qwen ONNX models

This repository hosts the optimized versions of DeepSeek-R1-Distill-Qwen-1.5B and DeepSeek-R1-Distill-Qwen-7B to accelerate inference with ONNX Runtime. Optimized models are published here in ONNX format to run with ONNX Runtime on CPU and GPU across devices, including server platforms, Windows, Linux and Mac desktops, and mobile CPUs, with the precision best suited to each of these targets.

To easily get started with the model, you can use our ONNX Runtime Generate() API. See instructions here

For CPU:

# Download the model directly using the Hugging Face CLI
huggingface-cli download onnxruntime/DeepSeek-R1-Distill-ONNX --include deepseek-r1-distill-qwen-1.5B/cpu_and_mobile/* --local-dir .

# Install the CPU package of ONNX Runtime GenAI
pip install onnxruntime-genai

# Please adjust the model directory (-m) accordingly
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/common.py -o common.py
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-chat.py -o model-chat.py
python model-chat.py -m /path/to/cpu-int4-rtn-block-32-acc-level-4/ -e cpu

For CUDA:

# Download the model directly using the Hugging Face CLI
huggingface-cli download onnxruntime/DeepSeek-R1-Distill-ONNX --include deepseek-r1-distill-qwen-1.5B/gpu/* --local-dir .

# Install the CUDA package of ONNX Runtime GenAI
pip install onnxruntime-genai-cuda

# Please adjust the model directory (-m) accordingly
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/common.py -o common.py
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-chat.py -o model-chat.py
python model-chat.py -m /path/to/gpu-int4-rtn-block-32/ -e cuda

For DirectML:

# Download the model directly using the Hugging Face CLI
huggingface-cli download onnxruntime/DeepSeek-R1-Distill-ONNX --include deepseek-r1-distill-qwen-1.5B/gpu/* --local-dir .

# Install the DirectML package of ONNX Runtime GenAI
pip install onnxruntime-genai-directml

# Please adjust the model directory (-m) accordingly
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/common.py -o common.py
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-chat.py -o model-chat.py
python model-chat.py -m /path/to/gpu-int4-rtn-block-32/ -e dml

ONNX Models

Here are some of the optimized configurations we have added:

  1. ONNX model for CPU and mobile using int4 quantization via RTN.
  2. ONNX model for GPU using int4 quantization via RTN.

Performance

ONNX enables you to run your models on-device across CPU, GPU, NPU. With ONNX, you can run your models on any machine across all silica (Qualcomm, AMD, Intel, Nvidia, etc).

See the table below for some key benchmarks for Windows GPU and CPU devices that the ONNX models were tested on.

ModelPrecisionlDevice TypeExecution ProviderDeviceToken Generation ThroughputSpeed up vs base model
deepseek-ai_DeepSeek-R1-Distill-Qwen-1.5BONNXfp16CUDARTX 4090197.1954X
deepseek-ai_DeepSeek-R1-Distill-Qwen-1.5BONNXint4CUDARTX 4090313.326.3X
deepseek-ai_DeepSeek-R1-Distill-Qwen-1.5BONNXint4CPUIntel i911.7491.4x
deepseek-ai_DeepSeek-R1-Distill-Qwen-7BONNXfp16CUDARTX 409057.3161.3X
deepseek-ai_DeepSeek-R1-Distill-Qwen-7BONNXint4CUDARTX 4090161.003.7X
deepseek-ai_DeepSeek-R1-Distill-Qwen-7BONNXint4CPUIntel i93.18420X

CPU build specs:

  • onnxruntime-genai==0.6.0-dev
  • transformers==4.46.2
  • onnxruntime==1.20.01

CUDA build specs:

  • onnxruntime-genai-cuda==0.6.0-dev
  • transformers==4.46.2
  • onnxruntime-gpu==1.20.1

Model Description

  • Developed by: ONNX Runtime
  • Model type: ONNX
  • Language(s) (NLP): Python, C, C++
  • License: MIT
  • Model Description: This is a conversion of the Deepseek R1 for ONNX Runtime inference.
  • Disclaimer: Model is only an optimization of the base model, any risk associated with the model is the responsibility of the user of the model. Please verify and test for you scenarios. There may be a slight difference in output from the base model with the optimizations applied. **

Base Model Information

See HF links DeepSeek-R1-Distill-Qwen-1.5B and DeepSeek-R1-Distill-Qwen-7B for details.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

В репозитории нет весов в формате PyTorch/safetensors.

Ревизия весов
de94d9a

0 моделей