Instructions to use deepseek-ai/DeepSeek-Math-V2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deepseek-ai/DeepSeek-Math-V2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="deepseek-ai/DeepSeek-Math-V2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("deepseek-ai/DeepSeek-Math-V2", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use deepseek-ai/DeepSeek-Math-V2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "deepseek-ai/DeepSeek-Math-V2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deepseek-ai/DeepSeek-Math-V2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/deepseek-ai/DeepSeek-Math-V2
- SGLang
How to use deepseek-ai/DeepSeek-Math-V2 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 "deepseek-ai/DeepSeek-Math-V2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deepseek-ai/DeepSeek-Math-V2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "deepseek-ai/DeepSeek-Math-V2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deepseek-ai/DeepSeek-Math-V2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use deepseek-ai/DeepSeek-Math-V2 with Docker Model Runner:
docker model run hf.co/deepseek-ai/DeepSeek-Math-V2
Improve model card: Add pipeline tag, relevant tags, paper and code links
Browse filesThis PR enhances the model card by:
- Adding `pipeline_tag: text-generation` to improve discoverability on the Hugging Face Hub.
- Adding `math` and `mathematical-reasoning` tags to categorize the model more accurately.
- Adding a direct link to the Hugging Face paper page ([DeepSeekMath-V2: Towards Self-Verifiable Mathematical Reasoning](https://huggingface.co/papers/2511.22570)) for easy access.
- Adding a direct link to this model's GitHub repository ([https://github.com/deepseek-ai/DeepSeek-Math-V2](https://github.com/deepseek-ai/DeepSeek-Math-V2)).
Please review and merge if these improvements are satisfactory.
|
@@ -1,8 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
library_name: transformers
|
| 4 |
base_model:
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
---
|
| 7 |
|
| 8 |
<!-- markdownlint-disable first-line-h1 -->
|
|
@@ -35,6 +39,8 @@ base_model:
|
|
| 35 |
</div>
|
| 36 |
|
| 37 |
# DeepSeekMath-V2: Towards Self-Verifiable Mathematical Reasoning
|
|
|
|
|
|
|
| 38 |
|
| 39 |
## 1. Introduction
|
| 40 |
|
|
@@ -90,4 +96,4 @@ This repository and the model weights are licensed under [the Apache License, Ve
|
|
| 90 |
|
| 91 |
## 8. Contact
|
| 92 |
|
| 93 |
-
If you have any questions, please raise an issue or contact us at [service@deepseek.com](mailto:service@deepseek.com).
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
base_model:
|
| 3 |
+
- deepseek-ai/DeepSeek-Math-V2
|
| 4 |
+
library_name: transformers
|
| 5 |
+
license: apache-2.0
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
tags:
|
| 8 |
+
- math
|
| 9 |
+
- mathematical-reasoning
|
| 10 |
---
|
| 11 |
|
| 12 |
<!-- markdownlint-disable first-line-h1 -->
|
|
|
|
| 39 |
</div>
|
| 40 |
|
| 41 |
# DeepSeekMath-V2: Towards Self-Verifiable Mathematical Reasoning
|
| 42 |
+
Paper: [DeepSeekMath-V2: Towards Self-Verifiable Mathematical Reasoning](https://huggingface.co/papers/2511.22570)
|
| 43 |
+
Code: [https://github.com/deepseek-ai/DeepSeek-Math-V2](https://github.com/deepseek-ai/DeepSeek-Math-V2)
|
| 44 |
|
| 45 |
## 1. Introduction
|
| 46 |
|
|
|
|
| 96 |
|
| 97 |
## 8. Contact
|
| 98 |
|
| 99 |
+
If you have any questions, please raise an issue or contact us at [service@deepseek.com](mailto:service@deepseek.com).
|