Back to models
DeepSeek-R1-Distill-Qwen-7B
An open-weight 7B dense reasoning model by DeepSeek, distilled from DeepSeek-R1 reasoning trajectories onto Qwen2.5-Math-7B to deliver strong mathematical and coding logic on single-GPU hardware.
What you can do
- Single-GPU math and logic solving
- Local IDE code generation and review
- Edge-server structured verification
Input & output
- Input
- Math word problems, coding tasks, or logical reasoning prompts up to 128K tokens (best used without heavy system prompts, setting temperature ~0.6).
- Output
- Explicit `<think>` step-by-step reasoning traces followed by concise final answers or code solutions.
Try a prompt like this
设正整数数列满足 a_1 = 1,且对任意 n ≥ 1 有 a_{n+1} = 2a_n + √(3a_n^2 + 1)。请证明该数列每一项均为正整数,并求出其通项递推关系。
Things to know
Permissive MIT license; fits on a single 16–24GB GPU in BF16 (~15GB VRAM) or 8GB GPU in INT4; general open-ended creative writing and multi-turn roleplay are narrower than general chat models.
All listed models publish open weights for self-hosted deployment; check each repository's license before commercial use.
Call it through the API
The platform exposes an OpenAI-compatible API. Use an official SDK or any HTTP client, then set the gateway URL, API key, and model ID.
- Endpoint
POST/v1/chat/completions- Model repo ID
deepseek-ai/DeepSeek-R1-Distill-Qwen-7B
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["API_BASE_URL"],
api_key=os.environ["API_KEY"],
)
response = client.chat.completions.create(
model="deepseek-ai/DeepSeek-R1-Distill-Qwen-7B",
messages=[{"role": "user", "content": "设正整数数列满足 a_1 = 1,且对任意 n ≥ 1 有 a_{n+1} = 2a_n + √(3a_n^2 + 1)。请证明该数列每一项均为正整数,并求出其通项递推关系。"}],
)
print(response.choices[0].message.content)Before running a sample, set the API_BASE_URL (gateway URL) and API_KEY environment variables.
Read the full API guide