Text Generation
Transformers
Safetensors
deepseek_v3
conversational
custom_code
text-generation-inference
fp8
Instructions to use tngtech/DeepSeek-TNG-R1T2-Chimera with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tngtech/DeepSeek-TNG-R1T2-Chimera with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tngtech/DeepSeek-TNG-R1T2-Chimera", 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("tngtech/DeepSeek-TNG-R1T2-Chimera", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("tngtech/DeepSeek-TNG-R1T2-Chimera", 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 Settings
- vLLM
How to use tngtech/DeepSeek-TNG-R1T2-Chimera with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tngtech/DeepSeek-TNG-R1T2-Chimera" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tngtech/DeepSeek-TNG-R1T2-Chimera", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tngtech/DeepSeek-TNG-R1T2-Chimera
- SGLang
How to use tngtech/DeepSeek-TNG-R1T2-Chimera 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 "tngtech/DeepSeek-TNG-R1T2-Chimera" \ --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": "tngtech/DeepSeek-TNG-R1T2-Chimera", "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 "tngtech/DeepSeek-TNG-R1T2-Chimera" \ --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": "tngtech/DeepSeek-TNG-R1T2-Chimera", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use tngtech/DeepSeek-TNG-R1T2-Chimera with Docker Model Runner:
docker model run hf.co/tngtech/DeepSeek-TNG-R1T2-Chimera
Add files using upload-large-folder tool
Browse files- model-00001-of-000163.safetensors +3 -0
- model-00005-of-000163.safetensors +3 -0
- model-00029-of-000163.safetensors +3 -0
- model-00037-of-000163.safetensors +3 -0
- model-00043-of-000163.safetensors +3 -0
- model-00047-of-000163.safetensors +3 -0
- model-00052-of-000163.safetensors +3 -0
- model-00061-of-000163.safetensors +3 -0
- model-00067-of-000163.safetensors +3 -0
- model-00068-of-000163.safetensors +3 -0
- model-00084-of-000163.safetensors +3 -0
- model-00107-of-000163.safetensors +3 -0
- model-00113-of-000163.safetensors +3 -0
- model-00142-of-000163.safetensors +3 -0
- model-00153-of-000163.safetensors +3 -0
- model-00158-of-000163.safetensors +3 -0
- model-00160-of-000163.safetensors +3 -0
- model-00163-of-000163.safetensors +3 -0
model-00001-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0a53dcdd0939fc01ddbb6927ba46c09497f81efd42e9c3e62245776e66731890
|
| 3 |
+
size 5234138288
|
model-00005-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d4cd762a7f2575c8a8fb04a68556e2311350567c9cb015fd94af7d37e5ef5c7d
|
| 3 |
+
size 4302381912
|
model-00029-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7984feb281a1ce60f706eeb95e5190ca228a0217e5bd693addeb85d308e53d30
|
| 3 |
+
size 4302348200
|
model-00037-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7475424d577cdbd86225777b4ceaab9cafa74511ba55f493f7f487b9706fe88d
|
| 3 |
+
size 4302348568
|
model-00043-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c31b7cb0d0e6761fec2ce693b99059802b055a51cac5d7e0485d214517af4cdf
|
| 3 |
+
size 4302348184
|
model-00047-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a6aea045400e3c788f4980e51b2eb5fade7598e98f2d488b623ba9eccf9a9ed
|
| 3 |
+
size 4302382720
|
model-00052-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bfa6fe30fe85598e443b13da1785c4cea7e5914b3bc059e0a73bac34acfd9486
|
| 3 |
+
size 4302382640
|
model-00061-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5268560024a2acbe0c8041757da473a6f3a222649cec4466242e53fbe03d93c6
|
| 3 |
+
size 4302382720
|
model-00067-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:040f071e3031c9d5306e7c21d56257c1892b4a65921787f886c30b978193808a
|
| 3 |
+
size 4302348584
|
model-00068-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fcd388b47a62ec90b772f6f0d3cb92891b8f932077afbc2d7b326fd641c23320
|
| 3 |
+
size 4302382264
|
model-00084-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0df8afe9fc329bd69bd0f0349240fe622c8f2de176e680699894e36f0f21c78f
|
| 3 |
+
size 4302348376
|
model-00107-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f9acd49a549e874ae346c940dc939144670da931d6f3d3ca69f1de7ae588399d
|
| 3 |
+
size 4302382472
|
model-00113-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6ea651e865707be3259305153f4e7a06c6f4c6b4d9989bb6b97f92039d7714d0
|
| 3 |
+
size 4302382720
|
model-00142-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d7e35992a6c4e6cfd6f130b17555b645d75cb407abe3e9bae275f5fc7e5de6d8
|
| 3 |
+
size 4302315568
|
model-00153-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c495ecfabf288abc81cea962b7676872f92e63c6b0260bc2f9cbc75418e00445
|
| 3 |
+
size 4302382264
|
model-00158-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c4893dc2329dbbb9291ae3f2980c03379f3775ab17f5e1ae464c9b4ccf0c8f5
|
| 3 |
+
size 4302348200
|
model-00160-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4bfe410b7ee190197e02d47771895133970839de3b2be98f79353276882781bc
|
| 3 |
+
size 5230635800
|
model-00163-of-000163.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7aaa407921beb2b98efb0394298e388234f8f0faf831f04a1c138104ac4c4826
|
| 3 |
+
size 6584783200
|