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
- 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 7000
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:1e695c905e686f705eac120520e6abcf561e397d9e3bd1b9ac48ff7b1e6d844c
|
| 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:32258673e5bc9c7f60e5694aaaeb64441a39d82c3b950ef98fb008918e95b1c6
|
| 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:c279445523d0aa7853271dba915fb2f58e7f05e185efcb8862856a40cb854e60
|
| 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:d06db2236aa5fe3a4b57133816cdbcedb12f99dc4e3fa192b1afe4070a25c0cc
|
| 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:7068e3affa6edfb1d7d841b54db191af5d64465ba2485c3d2bb3428d76ae7918
|
| 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:d3ba6a8faa62f7277c7b02601290a4fe42d681d00ccf6256eda29f0cfbc543c0
|
| 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:5400bff2e2a5b9c974b5f28bab1a877358a03c9358c08c2a6d1ee743375de6c3
|
| 3 |
size 1440515736
|