Text Generation
Transformers
Safetensors
deepseek_v2
Generated from Trainer
open-r1
trl
sft
conversational
custom_code
text-generation-inference
Instructions to use HectorHe/Deepseek-Coder-V2-Lite-13B-Instruct-sft-nemotron-code with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HectorHe/Deepseek-Coder-V2-Lite-13B-Instruct-sft-nemotron-code with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="HectorHe/Deepseek-Coder-V2-Lite-13B-Instruct-sft-nemotron-code", 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("HectorHe/Deepseek-Coder-V2-Lite-13B-Instruct-sft-nemotron-code", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("HectorHe/Deepseek-Coder-V2-Lite-13B-Instruct-sft-nemotron-code", 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 HectorHe/Deepseek-Coder-V2-Lite-13B-Instruct-sft-nemotron-code with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HectorHe/Deepseek-Coder-V2-Lite-13B-Instruct-sft-nemotron-code" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HectorHe/Deepseek-Coder-V2-Lite-13B-Instruct-sft-nemotron-code", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/HectorHe/Deepseek-Coder-V2-Lite-13B-Instruct-sft-nemotron-code
- SGLang
How to use HectorHe/Deepseek-Coder-V2-Lite-13B-Instruct-sft-nemotron-code 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 "HectorHe/Deepseek-Coder-V2-Lite-13B-Instruct-sft-nemotron-code" \ --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": "HectorHe/Deepseek-Coder-V2-Lite-13B-Instruct-sft-nemotron-code", "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 "HectorHe/Deepseek-Coder-V2-Lite-13B-Instruct-sft-nemotron-code" \ --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": "HectorHe/Deepseek-Coder-V2-Lite-13B-Instruct-sft-nemotron-code", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use HectorHe/Deepseek-Coder-V2-Lite-13B-Instruct-sft-nemotron-code with Docker Model Runner:
docker model run hf.co/HectorHe/Deepseek-Coder-V2-Lite-13B-Instruct-sft-nemotron-code
Training in progress, step 2500
Browse files
model-00001-of-00007.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4994763632
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a4e91d8b9519cf6d61e2659f1f3f8266908ebfb67eb807a884a25f46cf080fae
|
| 3 |
size 4994763632
|
model-00002-of-00007.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4995044944
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:54440705c364d027c842803d7f94611fae5ac7007dfa353257c6fd93de652879
|
| 3 |
size 4995044944
|
model-00003-of-00007.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4996085000
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10a39d68a2fc4a9d92626f9c78b3ef5f2989297acc78e3f935bd81e79bce9784
|
| 3 |
size 4996085000
|
model-00004-of-00007.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4996085224
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d4eef70d5e7ee2474bbc7653b90649456640d70e8c3acd6d968f0ab22c79875b
|
| 3 |
size 4996085224
|
model-00005-of-00007.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4996085224
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ffcd09d1b525e1ec22e37136e6808e9ef2fdc8f96c884034eeeedabba6ae5cc1
|
| 3 |
size 4996085224
|
model-00006-of-00007.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4995045792
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:69bf52ea5b557f18fb6dc9f3ef39053eecb82ab5cb2037e41825016655df9b19
|
| 3 |
size 4995045792
|
model-00007-of-00007.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1440515736
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:882f838140c6911bb360712ce4d57b1492df9e0eda3b7c28d4236b3dd1c5505b
|
| 3 |
size 1440515736
|