Deepseek
A Chinese open-source large language model
A Chinese open-source large language model
DeepSeek is an open-source large language model (LLM) developed by the Chinese AI startup DeepSeek (深度求索, "Deep Exploration"). Founded in 2023, the company was backed by the Chinese quant hedge fund High-Flyer and developed with the goal of GPT-4-level performance. DeepSeek-V3 adopts a Mixture of Experts (MoE) architecture in which only 37 billion of its 671 billion parameters are activated, maximizing efficiency.
DeepSeek made a major impact on the global AI industry with the release of DeepSeek-V3 in late 2024 and the unveiling of DeepSeek-R1 in early 2025. In particular, the R1 model showed reasoning capabilities similar to OpenAI o1, and with a training cost of only $5.6 million, it demonstrated overwhelming cost efficiency compared with the billions of dollars invested by U.S. AI companies.
Its core technologies include Multi-head Latent Attention (MLA), DeepSeekMoE, and FP8 mixed-precision training. MLA improves memory efficiency by compressing the Key-Value cache by more than 90% during inference, and the MoE structure significantly reduces computational cost by limiting the parameters activated per token.
In practice, DeepSeek is attracting attention from small and medium-sized businesses and startups for its excellent performance relative to cost. Its API pricing is about 90% cheaper than GPT-4, while still delivering competitive performance on coding, math, and reasoning benchmarks. However, censorship of politically sensitive topics due to Chinese regulations and data privacy concerns should be taken into account.
# DeepSeek API 사용 예제
from openai import OpenAI
# DeepSeek는 OpenAI 호환 API 제공
client = OpenAI(
api_key="your-deepseek-api-key",
base_url="https://api.deepseek.com"
)
# 기본 채팅 완성
response = client.chat.completions.create(
model="deepseek-chat", # 또는 "deepseek-reasoner" for R1
messages=[
{"role": "system", "content": "당신은 전문적인 AI 어시스턴트입니다."},
{"role": "user", "content": "Python에서 비동기 프로그래밍의 장점을 설명해주세요."}
],
temperature=0.7,
max_tokens=1024
)
print(response.choices[0].message.content)
# 스트리밍 응답 처리
stream = client.chat.completions.create(
model="deepseek-chat",
messages=[{"role": "user", "content": "퀵소트 알고리즘을 구현해주세요."}],
stream=True
)
for chunk in stream:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="")
DeepSeek API pricing and benchmark information as of January 2025.
| Model | Input (1M tokens) | Output (1M tokens) | MMLU |
|---|---|---|---|
| DeepSeek-V3 (Chat) | $0.27 (miss) / $0.07 (hit) | $1.10 | 88.5% |
| DeepSeek-R1 (Reasoner) | $0.55 | $2.19 | o1-level reasoning |
| DeepSeek-V3.1 | $0.15 | $0.75 | Improved over V3 |
| R1 Distill Llama 70B | $0.03 | $0.10 | Lightweight model |
Cost-effectiveness: 20–50x cheaper than GPT-4. V3 surpasses o1-preview on MATH-500. With a training cost of $5.6M, it shows overwhelming efficiency compared with U.S. AI companies. The MoE structure activates only 37B of 671B parameters.
"To optimize LLM costs, we looked into adopting DeepSeek-V3. Its API cost is about 90% cheaper than GPT-4, and it is still competitive with an MMLU benchmark score of 87.1%. However, the China-based server latency and data handling policy need to be reviewed by the legal team."
"The key to DeepSeek's cost efficiency is its MoE architecture. Only 37 billion of the 671 billion parameters are activated per token, which dramatically reduces inference cost, and the MLA technique also cuts KV cache memory by more than 90%."
"If you start with the DeepSeek API at the early MVP stage, you can keep monthly costs at a few hundred dollars. Later, as traffic grows, you can also switch to self-hosting with the open-source weights. The low lock-in risk is an advantage."
Take a mock interview on this topic → WIA SOOM AI Interview · Start for free
Under Chinese AI regulations, responses on politically sensitive topics (Tiananmen, Taiwan, Tibet, etc.) are restricted. When using it in a global service, you need to consider such constraints in advance.
When using the API, data may pass through servers in China. Before processing sensitive personal information or confidential corporate data, legal review and confirmation of a Data Processing Agreement (DPA) are essential.
Network latency may be high outside the Asia region. For services where real-time responses are important, consider self-hosting or a CDN proxy.