Text Generation
Transformers
Safetensors
deepseek_v3
conversational
custom_code
text-generation-inference
8-bit precision
Instructions to use meituan/DeepSeek-R1-Channel-INT8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use meituan/DeepSeek-R1-Channel-INT8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="meituan/DeepSeek-R1-Channel-INT8", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("meituan/DeepSeek-R1-Channel-INT8", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("meituan/DeepSeek-R1-Channel-INT8", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use meituan/DeepSeek-R1-Channel-INT8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "meituan/DeepSeek-R1-Channel-INT8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "meituan/DeepSeek-R1-Channel-INT8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/meituan/DeepSeek-R1-Channel-INT8
- SGLang
How to use meituan/DeepSeek-R1-Channel-INT8 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 "meituan/DeepSeek-R1-Channel-INT8" \ --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": "meituan/DeepSeek-R1-Channel-INT8", "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 "meituan/DeepSeek-R1-Channel-INT8" \ --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": "meituan/DeepSeek-R1-Channel-INT8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use meituan/DeepSeek-R1-Channel-INT8 with Docker Model Runner:
docker model run hf.co/meituan/DeepSeek-R1-Channel-INT8
Add files using upload-large-folder tool
Browse files- model-00008-of-000163.safetensors +3 -0
- model-00036-of-000163.safetensors +3 -0
- model-00044-of-000163.safetensors +3 -0
- model-00071-of-000163.safetensors +3 -0
- model-00083-of-000163.safetensors +3 -0
- model-00118-of-000163.safetensors +3 -0
- model-00119-of-000163.safetensors +3 -0
- model-00122-of-000163.safetensors +3 -0
- model-00134-of-000163.safetensors +3 -0
- model-00140-of-000163.safetensors +3 -0
model-00008-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c2a386517f2370e03fde7a5964acd03ae1ba710b41d4d049097db571f989e063
|
| 3 |
+
size 4305737432
|
model-00036-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90adb205640eea35974b6572a04ddf63e946d39e608e579e8477fbfb8e427b2f
|
| 3 |
+
size 4305737984
|
model-00044-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4769b873def9f48e5612e9275d53a05aa8a5a4d02ce8d27b261d4a99be985bda
|
| 3 |
+
size 4305737976
|
model-00071-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96593a61a40f7d48477a4da0b5b9c9e7b0758875f477bfa177b9086588427c0f
|
| 3 |
+
size 4305737768
|
model-00083-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a375cecaf8109cbda4fc4b14a6abb3599fe96cc77c1f3e01f2690f2773251e05
|
| 3 |
+
size 4305717552
|
model-00118-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:682ba750efe99db5c8237bb17f0c0953ce8ecf374391410581ab165e8cc08934
|
| 3 |
+
size 4305717472
|
model-00119-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:26426df4c25260ab973d0abb1d05bc0b19e5bdf235af52c1077dd2f7a8d0efd9
|
| 3 |
+
size 4305782864
|
model-00122-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91c1db7cb962839f5ecc742ed0a11a938a4bdd2f1551ddbe9cc64cd1b480da14
|
| 3 |
+
size 1748779624
|
model-00134-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:519749cff83235c76d7557624e9129c1e537d1d3e6588754db7ddba9461355bf
|
| 3 |
+
size 4305737584
|
model-00140-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8dc6ad561af13662116d15b78b351cecdafb9382459dab1cc26945ae9b190263
|
| 3 |
+
size 4305717472
|