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
Model save
Browse files- README.md +1 -1
- all_results.json +5 -5
- train_results.json +5 -5
- trainer_state.json +5 -5
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -27,7 +27,7 @@ print(output["generated_text"])
|
|
| 27 |
|
| 28 |
## Training procedure
|
| 29 |
|
| 30 |
-
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/weltonwang88-stanford/huggingface/runs/
|
| 31 |
|
| 32 |
|
| 33 |
This model was trained with SFT.
|
|
|
|
| 27 |
|
| 28 |
## Training procedure
|
| 29 |
|
| 30 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/weltonwang88-stanford/huggingface/runs/bwp3245u)
|
| 31 |
|
| 32 |
|
| 33 |
This model was trained with SFT.
|
all_results.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"total_flos": 2216750733066240.0,
|
| 3 |
-
"train_loss": 1.
|
| 4 |
-
"train_runtime": 12.
|
| 5 |
-
"train_samples":
|
| 6 |
-
"train_samples_per_second": 0.
|
| 7 |
-
"train_steps_per_second": 0.
|
| 8 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"total_flos": 2216750733066240.0,
|
| 3 |
+
"train_loss": 1.3457099199295044,
|
| 4 |
+
"train_runtime": 12.1486,
|
| 5 |
+
"train_samples": 10,
|
| 6 |
+
"train_samples_per_second": 0.165,
|
| 7 |
+
"train_steps_per_second": 0.082
|
| 8 |
}
|
train_results.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"total_flos": 2216750733066240.0,
|
| 3 |
-
"train_loss": 1.
|
| 4 |
-
"train_runtime": 12.
|
| 5 |
-
"train_samples":
|
| 6 |
-
"train_samples_per_second": 0.
|
| 7 |
-
"train_steps_per_second": 0.
|
| 8 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"total_flos": 2216750733066240.0,
|
| 3 |
+
"train_loss": 1.3457099199295044,
|
| 4 |
+
"train_runtime": 12.1486,
|
| 5 |
+
"train_samples": 10,
|
| 6 |
+
"train_samples_per_second": 0.165,
|
| 7 |
+
"train_steps_per_second": 0.082
|
| 8 |
}
|
trainer_state.json
CHANGED
|
@@ -10,13 +10,13 @@
|
|
| 10 |
"log_history": [
|
| 11 |
{
|
| 12 |
"epoch": 1.0,
|
| 13 |
-
"mean_token_accuracy": 0.
|
| 14 |
"step": 1,
|
| 15 |
"total_flos": 2216750733066240.0,
|
| 16 |
-
"train_loss": 1.
|
| 17 |
-
"train_runtime": 12.
|
| 18 |
-
"train_samples_per_second": 0.
|
| 19 |
-
"train_steps_per_second": 0.
|
| 20 |
}
|
| 21 |
],
|
| 22 |
"logging_steps": 5,
|
|
|
|
| 10 |
"log_history": [
|
| 11 |
{
|
| 12 |
"epoch": 1.0,
|
| 13 |
+
"mean_token_accuracy": 0.6800451278686523,
|
| 14 |
"step": 1,
|
| 15 |
"total_flos": 2216750733066240.0,
|
| 16 |
+
"train_loss": 1.3457099199295044,
|
| 17 |
+
"train_runtime": 12.1486,
|
| 18 |
+
"train_samples_per_second": 0.165,
|
| 19 |
+
"train_steps_per_second": 0.082
|
| 20 |
}
|
| 21 |
],
|
| 22 |
"logging_steps": 5,
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 7352
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce1cf26dec7cf1fcad61611b0187ee8c566783c64a69c8ce349ba96921028640
|
| 3 |
size 7352
|