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 7566
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:0a79a13cfc5bee2350ee42588cc7c422f79fb64cf6d233c6a6f4287b4d4947a2
|
| 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:01352a6694862b104787c245e741a46aa44850afca88e9a3aec6a6463ff240c8
|
| 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:28ac864c1a82c478438db3c8de026d52233eff226939fc4a28aee76eabe6ce3f
|
| 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:be03e7c1a2a6003a1328733a23bccbe79b945c46d880ddf497e7b0157eba9ce7
|
| 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:763f5250b098333f1f397f977bc47cba567d35f512fef92f29eaaf93c8acbece
|
| 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:746a0c73f43ab984a95c15608c2a077c663d1a3379c2d9e91045560976892ae3
|
| 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:5a658fd44f4e63e0b5a8db86e5ea4c8a58d127abe2951b171012ea57ec6b4824
|
| 3 |
size 1440515736
|