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 7500
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:effc46b995dab11ac5806cf118cdd4caa704840bfe3a0e3945e328c752700ef6
|
| 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:1485888e83f66f4eec31ae35c4981021ce7ab1fbb6f881b45f5c6eaeadc2ced0
|
| 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:f0db89b16f73701f608248a37a3e4d7503941bd75363118d995617ad0ad20070
|
| 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:bab73bb7b02d8017f248070387ba817de6c808f476856622a992a4df68caa40f
|
| 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:23714d47fb2eb53419e4a9760b2cf5d4f545b7830cc8126ac8b8a1d335698fdb
|
| 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:2e23fc2e286e32fcff63811ba5acb2c75a8c4ea0ac63fb92c97c2702e0f9c1f7
|
| 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:561c308317c3e1ee2dce10860b93bdd2538778ccf5e2b2fb42760e9cdbfb7c7e
|
| 3 |
size 1440515736
|