KAIRA Gemma3 270M (TR)
Bu depo, Gemma 3 (270M) tabanlı, Türkçe odaklı bir Causal LM’in birleştirilmiş sürümünü içerir. Hedef: hafif donanımlarda düşük gecikme ile Türkçe metin üretimi.
🔧 Kullanım
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
repo = "umutkkgz/kaira-gemma3-270m"
tok = AutoTokenizer.from_pretrained(repo, use_fast=True)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype=torch.float16 if torch.cuda.is_available() else torch.float32, device_map="auto")
prompt = "KAIRA bugün nasılsın?"
inputs = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=120, do_sample=True, temperature=0.7, top_p=0.9)
print(tok.decode(out[0], skip_special_tokens=True))
- Downloads last month
- 1