Downloads · 30 days
20
12% of all-time downloads
bunyaminergen/Qwen2.5-Coder-1.5B-Instruct-SFT-Distilled
Qwen2.5-Coder-1.5B-Instruct-SFT-Distilled is a text generation model from bunyaminergen. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as gpl-3.0.
The Qwen2.5-Coder-1.5B-Instruct-SFT-Distilled model has been distilled from the Qwen2.5-Coder-1.5B-Instruct-SFT model down to 1B parameters using a token-based knowledge distillation method.
Downloads · 30 days
20
12% of all-time downloads
All-time downloads
162
Public
Parameters
1B
24.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt16.3 GB · 57%
From the Hugging Face model README
The Qwen2.5-Coder-1.5B-Instruct-SFT-Distilled model has been distilled from the Qwen2.5-Coder-1.5B-Instruct-SFT model down to 1B parameters using a token-based knowledge distillation method.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "bunyaminergen/Qwen2.5-Coder-1.5B-Instruct-SFT-Distilled"
tokenize = AutoTokenizer.from_pretrained(repo, padding_side="left")
model = AutoModelForCausalLM.from_pretrained(
repo,
device_map="auto",
torch_dtype="auto",
).eval()
system = "You are a senior Python developer."
user = "Give me a Python implementation of bubble sort."
text = f"System: {system}\nUser: {user}\nAssistant:"
inputs = tokenize(text, return_tensors="pt").to(model.device)
with torch.no_grad():
out_ids = model.generate(**inputs, max_new_tokens=512)
print(tokenize.decode(out_ids[0], skip_special_tokens=True))
| Hyperparameter | Value |
|---|---|
| Base Model | bunyaminergen/Qwen2.5-Coder-1.5B-Instruct-SFT |
| Knowledge Distillation Method | Token based |
| Task Type | CAUSAL_LM |
| Number of Epochs | 11 |
| Batch Size | 12 |
| Gradient Accumulation Steps | 2 |
| Effective Batch Size | 24 (12 × 2) |
| Learning Rate | 5e-5 |
| Optimizer | AdamW |
| Precision | BF16 Mixed Precision |
| Evaluation Strategy | epoch |
| Max Sequence Length | 256 tokens |
| Logging Steps | every epoch steps |
| Save Checkpoint Steps | every 10000 steps |
| Experiment Tracking | MLflow (local) |
| Experiment Name | StudentKnowledgeDistillation |
| MLflow Run Name | StudentKD |
| Parameter | Value |
|---|---|
| Distillation Weight | 0.3 |
| Temperature | 0.5 |
| Loss Reduction | batchmean |
90%/10%42TrueTruemax_length=256)False10000 stepscheckpoint-10000checkpoint-13200 (final checkpoint)Hardware:
Software:
@software{ Qwen2.5-Coder-1.5B-Instruct-SFT-Distilled,
author = {Bunyamin Ergen},
title = {{Qwen2.5-Coder-1.5B-Instruct-SFT-Distilled}},
year = {2025},
month = {04},
}