Text Generation
Transformers
Safetensors
qwen3
Generated from Trainer
open-r1
trl
sft
conversational
text-generation-inference
Instructions to use jeehwon/Qwen3-0.6B-Distill with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jeehwon/Qwen3-0.6B-Distill with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jeehwon/Qwen3-0.6B-Distill") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jeehwon/Qwen3-0.6B-Distill") model = AutoModelForCausalLM.from_pretrained("jeehwon/Qwen3-0.6B-Distill") 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 jeehwon/Qwen3-0.6B-Distill with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jeehwon/Qwen3-0.6B-Distill" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jeehwon/Qwen3-0.6B-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jeehwon/Qwen3-0.6B-Distill
- SGLang
How to use jeehwon/Qwen3-0.6B-Distill 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 "jeehwon/Qwen3-0.6B-Distill" \ --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": "jeehwon/Qwen3-0.6B-Distill", "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 "jeehwon/Qwen3-0.6B-Distill" \ --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": "jeehwon/Qwen3-0.6B-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jeehwon/Qwen3-0.6B-Distill with Docker Model Runner:
docker model run hf.co/jeehwon/Qwen3-0.6B-Distill
Model save
Browse files- README.md +2 -4
- all_results.json +4 -4
- config.json +1 -1
- train_results.json +4 -4
- trainer_state.json +4 -5
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -1,11 +1,9 @@
|
|
| 1 |
---
|
| 2 |
base_model: Qwen/Qwen3-0.6B
|
| 3 |
-
datasets: dnotitia/Magpie_Claude35_no_think_1k_samples
|
| 4 |
library_name: transformers
|
| 5 |
model_name: Qwen3-0.6B-Distill
|
| 6 |
tags:
|
| 7 |
- generated_from_trainer
|
| 8 |
-
- open-r1
|
| 9 |
- trl
|
| 10 |
- sft
|
| 11 |
licence: license
|
|
@@ -13,7 +11,7 @@ licence: license
|
|
| 13 |
|
| 14 |
# Model Card for Qwen3-0.6B-Distill
|
| 15 |
|
| 16 |
-
This model is a fine-tuned version of [Qwen/Qwen3-0.6B](https://huggingface.co/Qwen/Qwen3-0.6B)
|
| 17 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
| 18 |
|
| 19 |
## Quick start
|
|
@@ -29,7 +27,7 @@ print(output["generated_text"])
|
|
| 29 |
|
| 30 |
## Training procedure
|
| 31 |
|
| 32 |
-
[<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/jeehwon/huggingface/runs/
|
| 33 |
|
| 34 |
|
| 35 |
This model was trained with SFT.
|
|
|
|
| 1 |
---
|
| 2 |
base_model: Qwen/Qwen3-0.6B
|
|
|
|
| 3 |
library_name: transformers
|
| 4 |
model_name: Qwen3-0.6B-Distill
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
|
|
|
| 7 |
- trl
|
| 8 |
- sft
|
| 9 |
licence: license
|
|
|
|
| 11 |
|
| 12 |
# Model Card for Qwen3-0.6B-Distill
|
| 13 |
|
| 14 |
+
This model is a fine-tuned version of [Qwen/Qwen3-0.6B](https://huggingface.co/Qwen/Qwen3-0.6B).
|
| 15 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
| 16 |
|
| 17 |
## Quick start
|
|
|
|
| 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/jeehwon/huggingface/runs/wmyciqe4)
|
| 31 |
|
| 32 |
|
| 33 |
This model was trained with SFT.
|
all_results.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"total_flos": 241025679360.0,
|
| 3 |
-
"train_loss":
|
| 4 |
-
"train_runtime":
|
| 5 |
"train_samples": 1000,
|
| 6 |
-
"train_samples_per_second":
|
| 7 |
-
"train_steps_per_second":
|
| 8 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"total_flos": 241025679360.0,
|
| 3 |
+
"train_loss": 0.0,
|
| 4 |
+
"train_runtime": 1.8142,
|
| 5 |
"train_samples": 1000,
|
| 6 |
+
"train_samples_per_second": 551.204,
|
| 7 |
+
"train_steps_per_second": 4.41
|
| 8 |
}
|
config.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
| 24 |
"tie_word_embeddings": true,
|
| 25 |
"torch_dtype": "bfloat16",
|
| 26 |
"transformers_version": "4.52.0.dev0",
|
| 27 |
-
"use_cache":
|
| 28 |
"use_sliding_window": false,
|
| 29 |
"vocab_size": 151936
|
| 30 |
}
|
|
|
|
| 24 |
"tie_word_embeddings": true,
|
| 25 |
"torch_dtype": "bfloat16",
|
| 26 |
"transformers_version": "4.52.0.dev0",
|
| 27 |
+
"use_cache": false,
|
| 28 |
"use_sliding_window": false,
|
| 29 |
"vocab_size": 151936
|
| 30 |
}
|
train_results.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"total_flos": 241025679360.0,
|
| 3 |
-
"train_loss":
|
| 4 |
-
"train_runtime":
|
| 5 |
"train_samples": 1000,
|
| 6 |
-
"train_samples_per_second":
|
| 7 |
-
"train_steps_per_second":
|
| 8 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"total_flos": 241025679360.0,
|
| 3 |
+
"train_loss": 0.0,
|
| 4 |
+
"train_runtime": 1.8142,
|
| 5 |
"train_samples": 1000,
|
| 6 |
+
"train_samples_per_second": 551.204,
|
| 7 |
+
"train_steps_per_second": 4.41
|
| 8 |
}
|
trainer_state.json
CHANGED
|
@@ -19,13 +19,12 @@
|
|
| 19 |
},
|
| 20 |
{
|
| 21 |
"epoch": 1.0,
|
| 22 |
-
"num_tokens": 341202.0,
|
| 23 |
"step": 8,
|
| 24 |
"total_flos": 241025679360.0,
|
| 25 |
-
"train_loss":
|
| 26 |
-
"train_runtime":
|
| 27 |
-
"train_samples_per_second":
|
| 28 |
-
"train_steps_per_second":
|
| 29 |
}
|
| 30 |
],
|
| 31 |
"logging_steps": 5,
|
|
|
|
| 19 |
},
|
| 20 |
{
|
| 21 |
"epoch": 1.0,
|
|
|
|
| 22 |
"step": 8,
|
| 23 |
"total_flos": 241025679360.0,
|
| 24 |
+
"train_loss": 0.0,
|
| 25 |
+
"train_runtime": 1.8142,
|
| 26 |
+
"train_samples_per_second": 551.204,
|
| 27 |
+
"train_steps_per_second": 4.41
|
| 28 |
}
|
| 29 |
],
|
| 30 |
"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 7288
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bcc81f5e1ddde42d1d153d91507165b3de763cc592147a0d5a963c5e5a807b85
|
| 3 |
size 7288
|