Text Generation
Transformers
Safetensors
llama
Generated from Trainer
open-r1
trl
sft
conversational
text-generation-inference
Instructions to use krinetic1234/DeepSeek-R1-Distill-Llama-3B-tools with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use krinetic1234/DeepSeek-R1-Distill-Llama-3B-tools with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="krinetic1234/DeepSeek-R1-Distill-Llama-3B-tools") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("krinetic1234/DeepSeek-R1-Distill-Llama-3B-tools") model = AutoModelForCausalLM.from_pretrained("krinetic1234/DeepSeek-R1-Distill-Llama-3B-tools", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use krinetic1234/DeepSeek-R1-Distill-Llama-3B-tools with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "krinetic1234/DeepSeek-R1-Distill-Llama-3B-tools" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "krinetic1234/DeepSeek-R1-Distill-Llama-3B-tools", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/krinetic1234/DeepSeek-R1-Distill-Llama-3B-tools
- SGLang
How to use krinetic1234/DeepSeek-R1-Distill-Llama-3B-tools 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 "krinetic1234/DeepSeek-R1-Distill-Llama-3B-tools" \ --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": "krinetic1234/DeepSeek-R1-Distill-Llama-3B-tools", "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 "krinetic1234/DeepSeek-R1-Distill-Llama-3B-tools" \ --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": "krinetic1234/DeepSeek-R1-Distill-Llama-3B-tools", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use krinetic1234/DeepSeek-R1-Distill-Llama-3B-tools with Docker Model Runner:
docker model run hf.co/krinetic1234/DeepSeek-R1-Distill-Llama-3B-tools
End of training
Browse files- README.md +1 -0
- all_results.json +5 -0
- config.json +1 -1
- eval_results.json +7 -0
README.md
CHANGED
|
@@ -4,6 +4,7 @@ library_name: transformers
|
|
| 4 |
model_name: DeepSeek-R1-Distill-Llama-3B-tools
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
|
|
|
| 7 |
- trl
|
| 8 |
- sft
|
| 9 |
licence: license
|
|
|
|
| 4 |
model_name: DeepSeek-R1-Distill-Llama-3B-tools
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
| 7 |
+
- open-r1
|
| 8 |
- trl
|
| 9 |
- sft
|
| 10 |
licence: license
|
all_results.json
CHANGED
|
@@ -1,4 +1,9 @@
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
"total_flos": 2216750733066240.0,
|
| 3 |
"train_loss": 1.3457099199295044,
|
| 4 |
"train_runtime": 12.531,
|
|
|
|
| 1 |
{
|
| 2 |
+
"eval_loss": 1.656509280204773,
|
| 3 |
+
"eval_runtime": 0.4753,
|
| 4 |
+
"eval_samples": 1,
|
| 5 |
+
"eval_samples_per_second": 2.104,
|
| 6 |
+
"eval_steps_per_second": 2.104,
|
| 7 |
"total_flos": 2216750733066240.0,
|
| 8 |
"train_loss": 1.3457099199295044,
|
| 9 |
"train_runtime": 12.531,
|
config.json
CHANGED
|
@@ -33,6 +33,6 @@
|
|
| 33 |
"torch_dtype": "bfloat16",
|
| 34 |
"transformers_version": "4.49.0",
|
| 35 |
"unsloth_fixed": true,
|
| 36 |
-
"use_cache":
|
| 37 |
"vocab_size": 128256
|
| 38 |
}
|
|
|
|
| 33 |
"torch_dtype": "bfloat16",
|
| 34 |
"transformers_version": "4.49.0",
|
| 35 |
"unsloth_fixed": true,
|
| 36 |
+
"use_cache": true,
|
| 37 |
"vocab_size": 128256
|
| 38 |
}
|
eval_results.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"eval_loss": 1.656509280204773,
|
| 3 |
+
"eval_runtime": 0.4753,
|
| 4 |
+
"eval_samples": 1,
|
| 5 |
+
"eval_samples_per_second": 2.104,
|
| 6 |
+
"eval_steps_per_second": 2.104
|
| 7 |
+
}
|