Downloads · 30 days
0
Tuguberk/Qwen3.5-2B-Turkish-SFT-LoRA
Qwen3.5-2B-Turkish-SFT-LoRA is a text generation model from Tuguberk. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Bu repo, Tuguberk/Qwen3.5-2B-Turkish-SFT modelinin sadece LoRA adaptörlerini içerir. Merged (birleştirilmiş) modeli kullanmak istiyorsanız ana repoya gidin.
Downloads · 30 days
0
Access
Public
Updated Apr 29, 2026
Repo size
87.3 MB
Likes
0
Public
Click a slice to open those files.
.safetensors67.3 MB · 77%
From the Hugging Face model README
Bu repo, Tuguberk/Qwen3.5-2B-Turkish-SFT modelinin sadece LoRA adaptörlerini içerir. Merged (birleştirilmiş) modeli kullanmak istiyorsanız ana repoya gidin.
LoRA (Low-Rank Adaptation), modelin tüm ağırlıklarını değiştirmek yerine küçük adaptör katmanları ekleyerek fine-tuning yapan bir yöntemdir. Bu repo sadece o adaptörleri (~100MB) içerir — base modeli ayrıca indirmeniz gerekir.
| Base model | unsloth/Qwen3.5-2B |
| LoRA rank | 16 |
| LoRA alpha | 16 |
| Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Eğitilebilir parametre | 16,819,200 / 2,230,060,864 (%0.75) |
| Dataset | AlicanKiraz0/Turkish-SFT-Dataset-v1.0 |
| Epoch | 3 |
| Training loss | 1.47 → 0.82 |
from transformers import AutoModelForCausalLM, AutoProcessor
from peft import PeftModel
import torch
base_model_name = "unsloth/Qwen3.5-2B"
lora_model_name = "Tuguberk/Qwen3.5-2B-Turkish-SFT-LoRA"
# Base modeli yükle
processor = AutoProcessor.from_pretrained(base_model_name)
tokenizer = processor.tokenizer
model = AutoModelForCausalLM.from_pretrained(
base_model_name,
torch_dtype=torch.bfloat16,
device_map="auto",
)
# LoRA adaptörlerini üstüne ekle
model = PeftModel.from_pretrained(model, lora_model_name)
model.eval()
# Kullanım
messages = [
{"role": "system", "content": "Sen yardımcı bir Türkçe asistansın."},
{"role": "user", "content": "Yapay zeka nedir?"},
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
enable_thinking=False,
)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(
inputs["input_ids"],
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)
| LoRA (bu repo) | Merged model | |
|---|---|---|
| Dosya boyutu | ~100MB | ~4.5GB |
| Base model gerekli mi? | ✅ Evet | ❌ Hayır |
| Ollama / llama.cpp | ❌ Çalışmaz | ✅ Çalışır |
| Araştırma / deney | ✅ İdeal | — |
| Production kullanım | — | ✅ İdeal |
Çoğu kullanım için merged modeli tercih edin: Tuguberk/Qwen3.5-2B-Turkish-SFT
Apache 2.0 — base model lisansıyla aynıdır.