Downloads · 30 days
0
ermiaazarkhalili/Qwen3-0.6B-SFT-UltraChat
Qwen3-0.6B-SFT-UltraChat is a text generation model from ermiaazarkhalili. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as cc-by-nc-4.0.
This model is a fine-tuned version of Qwen/Qwen3-0.6B-Base trained on the HuggingFaceH4/ultrachat200k dataset using Supervised Fine-Tuning (SFT) with LoRA adapters.
Downloads · 30 days
0
Access
Public
Updated Dec 26, 2025
Repo size
92.2 MB
Likes
0
Public
Click a slice to open those files.
.safetensors80.8 MB · 84%
From the Hugging Face model README
This model is a fine-tuned version of Qwen/Qwen3-0.6B-Base trained on the HuggingFaceH4/ultrachat_200k dataset using Supervised Fine-Tuning (SFT) with LoRA adapters.
Qwen3-0.6B-SFT-UltraChat is an instruction-following language model optimized for conversational tasks. It combines the powerful 0.6B base model with high-quality instruction-following data from UltraChat, resulting in improved response quality and helpfulness.
| Property | Value |
|---|---|
| Developed by | ermiaazarkhalili |
| License | CC-BY-NC-4.0 |
| Language | English |
| Base Model | Qwen/Qwen3-0.6B-Base |
| Model Size | 0.6B parameters |
| Tensor Type | BF16 |
| Context Length | 2,048 tokens |
| Training Method | SFT with LoRA |
| Parameter | Value |
|---|---|
| Learning Rate | 0.0002 |
| Batch Size | 8 per device |
| Effective Batch Size | 16 (with gradient accumulation) |
| Gradient Accumulation Steps | 2 |
| Number of Epochs | 1 |
| Max Sequence Length | 2,048 tokens |
| LR Scheduler | Linear warmup + Cosine annealing |
| Precision | BF16 mixed precision |
| Gradient Checkpointing | Enabled |
| Optimizer | AdamW |
| Parameter | Value |
|---|---|
| LoRA Rank (r) | 32 |
| LoRA Alpha | 64 |
| LoRA Dropout | 0.05 |
| Target Modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Metric | Value |
|---|---|
| Final Training Loss | 1.4873 |
| Final Eval Loss | 1.4643 |
| Token Accuracy | 64.53% |
| Training Time | 22h 5m |
This model was trained on the HuggingFaceH4/ultrachat_200k dataset:
| Split | Samples |
|---|---|
| Training | 197,471 |
| Evaluation | 10,394 |
The UltraChat dataset contains high-quality multi-turn conversations designed to improve instruction-following capabilities.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "ermiaazarkhalili/Qwen3-0.6B-SFT-UltraChat"
# Load tokenizer and model
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
# Chat format
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "What are the key principles of effective communication?"}
]
# Apply chat template
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
# Generate
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.7,
top_p=0.9,
do_sample=True
)
response = tokenizer.decode(outputs[0][inputs['input_ids'].shape[1]:], skip_special_tokens=True)
print(response)
from transformers import pipeline
generator = pipeline(
"text-generation",
model="ermiaazarkhalili/Qwen3-0.6B-SFT-UltraChat",
device_map="auto",
torch_dtype="auto"
)
messages = [{"role": "user", "content": "Explain quantum computing in simple terms."}]
output = generator(messages, max_new_tokens=256, return_full_text=False)
print(output[0]["generated_text"])
For CPU or mixed CPU/GPU inference, GGUF quantized versions are available at: ermiaazarkhalili/Qwen3-0.6B-SFT-UltraChat-GGUF
Available quantizations:
ollama pull hf.co/ermiaazarkhalili/Qwen3-0.6B-SFT-UltraChat-GGUF:Q4_K_M
ollama run hf.co/ermiaazarkhalili/Qwen3-0.6B-SFT-UltraChat-GGUF:Q4_K_M "Hello, how are you?"
@misc{ermiaazarkhalili_qwen3_0.6b_sft_ultrachat,
author = {Ermia Azarkhalili},
title = {Qwen3-0.6B-SFT-UltraChat: Fine-tuned Qwen3-0.6B-Base on UltraChat},
year = {2025},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/ermiaazarkhalili/Qwen3-0.6B-SFT-UltraChat}}
}
For questions, issues, or collaborations, please open an issue on the model repository or contact via HuggingFace.