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 6000
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:7f8309e720d033dc2a4bf9df4d1c60dbfd44b89324c917452124fce90fff3f6b
|
| 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:de937183b24c49570967481dd0816a489a03266a398b7cf87eb177349501655c
|
| 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:06948fb13fdb4b6b9d8787447d9726fac6ec93fe4a05241ffbaf0f4b9240e8eb
|
| 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:78a45ae52e2412ff20ba464280cb97e53489ee5377bb2b1c56403677ca52f3a7
|
| 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:3bba0035fd8fb05ae84747204dd1525401792da347d2c7cf3ac81790eb848ea2
|
| 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:258eea948714ddbeaff2a67cf427916fbb8fd8e030c0c68d1f3780bcb5ebdec0
|
| 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:a97fd76a2c81e3def42e609adb4a17748a49bc075e9ffc95d221335af5230ef3
|
| 3 |
size 1440515736
|