Downloads · 30 days
16
62% of all-time downloads
Werea-co/Werea-LLM-3B
Werea-LLM-3B is a text generation model from Werea-co. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
Werea-LLM-3B, Qwen2.5-3B-Instruct tabanının Türkçe talimatlarla QLoRA ile ince ayarlanmış (fine-tune) sürümüdür. Kompakt (3B), tek GPU'da çalışan, on-prem dağıtılabilir bir Türkçe sohbet / talimat modeli olarak tasarl…
Downloads · 30 days
16
62% of all-time downloads
All-time downloads
26
Public
Repo size
131 MB
Likes
0
Public
Click a slice to open those files.
.safetensors120 MB · 91%
From the Hugging Face model README
Werea-LLM-3B, Qwen2.5-3B-Instruct tabanının Türkçe talimatlarla QLoRA ile ince ayarlanmış (fine-tune) sürümüdür. Kompakt (3B), tek GPU'da çalışan, on-prem dağıtılabilir bir Türkçe sohbet / talimat modeli olarak tasarlanmıştır — büyük bulut modellerine bağımlı kalmadan Türkçe metin üretimi, soru-cevap ve özetleme için.
Soru: Türkiye'nin başkenti neresidir? Cevap: Türkiye'nin başkenti Ankara'dır. 1923'te kuruldu ve önemli bir idari merkezdir.
Soru: Yapay zeka nedir? İki cümleyle açıkla. Cevap: Yapay Zeka (YZ), insan benzeri problem çözme ve veri analizi gibi görevlerde kullanılan bilgisayar sistemleridir. Bu sistemler, verilerden öğrenerek yeni görevleri çözmek için tasarlanmıştır.
import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("Werea-co/Werea-LLM-3B")
model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-3B-Instruct",
torch_dtype=torch.bfloat16, device_map="cuda")
model = PeftModel.from_pretrained(model, "Werea-co/Werea-LLM-3B")
msgs = [{"role": "user", "content": "Yapay zeka nedir?"}]
text = tok.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True)
ids = tok(text, return_tensors="pt").to("cuda")
out = model.generate(**ids, max_new_tokens=256)
print(tok.decode(out[0, ids["input_ids"].shape[1]:], skip_special_tokens=True))
Apache-2.0. Taban: Qwen2.5-3B-Instruct. Eğitim: Werea.
<div align="center"><sub>💜 <a href="https://werea.co">werea.co</a> — Fikirden üretime.</sub></div>