Downloads · 30 days
0
mueggi/ka-ai-instruct
ka-ai-instruct is a text generation model from mueggi. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
The first open-source instruction-tuned LLM optimized for Georgian language.
Downloads · 30 days
0
Access
Public
Updated Mar 18, 2026
Repo size
397 GB
Likes
0
Public
Click a slice to open those files.
.safetensors34.9 GB · 96%
From the Hugging Face model README
The first open-source instruction-tuned LLM optimized for Georgian language.
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
from peft import PeftModel
import torch
# Load base + adapter
bnb_config = BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_compute_dtype=torch.float16)
base = AutoModelForCausalLM.from_pretrained("google/gemma-2-9b", quantization_config=bnb_config, device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("mueggi/ka-ai-tokenizer")
base.resize_token_embeddings(len(tokenizer), mean_resizing=False)
model = PeftModel.from_pretrained(base, "mueggi/ka-ai-instruct")
# Chat
messages = [{"role": "user", "content": "რა არის საქართველოს დედაქალაქი?"}]
template = "{% for message in messages %}<|im_start|>{{ message.role }}\n{{ message.content }}<|im_end|>\n{% endfor %}<|im_start|>assistant\n"
tokenizer.chat_template = template
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=256, do_sample=True, temperature=0.7,
stop_strings=["<|im_end|>"], tokenizer=tokenizer)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
| Task | Quality |
|---|---|
| Georgian QA | ⭐⭐⭐⭐ |
| Georgian fluency | ⭐⭐⭐⭐ |
| KA→EN translation | ⭐⭐⭐⭐ |
| EN→KA translation | ⭐⭐ |
| Creative writing | ⭐⭐⭐⭐ |
<|im_end|>) requires stop_strings parameter in generationApache 2.0 (same as Gemma 2)