darmm-chat-kazakh-8b

Conversational assistant for Kazakh (with Russian and English retained) — a QLoRA fine-tune of Qwen/Qwen3-8B on ~105k instruction pairs (65k Kazakh, 25k Russian, 15k English). Supersedes the darmm-text-generation line.

Benchmarks

Zero-shot multiple-choice accuracy via option log-prob scoring (non-thinking chat template). KazMMLU: 3,000-question sample (seed 42) over all Kazakh-language subjects; Belebele: full kaz_Cyrl test (900).

benchmark Qwen3-8B (base) this model
Belebele (kaz_Cyrl) 27.2% 39.8%
KazMMLU (kaz subjects) 27.9% 38.3%

Reproducible with eval_chat.py in this repo.

Usage — generation settings matter

Use sampling, not greedy decoding: like the base model, long-form Kazakh degenerates into repetition under greedy decoding. Recommended settings:

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "Darmm/darmm-chat-kazakh-8b"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto")

messages = [{"role": "user", "content": "Наурыз мейрамы туралы айтып бер."}]
text = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True, enable_thinking=False)
inputs = tok(text, return_tensors="pt").to(model.device)
out = model.generate(
    **inputs, max_new_tokens=512,
    do_sample=True, temperature=0.7, top_p=0.8, top_k=20, repetition_penalty=1.1,
)
print(tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

The model is trained for non-thinking mode (enable_thinking=False).

Training

The LoRA adapter alone is at Darmm/darmm-chat-kazakh-8b-lora.

Limitations

  • Factual reliability is limited (38% KazMMLU): it can state dates, names, and facts confidently but wrongly — do not use as a factual reference without verification/RAG.
  • Much of the Kazakh training data is machine-translated; phrasing can be unnatural and occasionally awkward.
  • Greedy decoding degrades output — always use the sampling settings above.
  • Not safety-tuned beyond what the base model provides.

Built by Darmm · 2026-09 · Apache 2.0

Downloads last month
244
Safetensors
Model size
8B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Darmm/darmm-chat-kazakh-8b

Finetuned
Qwen/Qwen3-8B
Finetuned
(2071)
this model

Collections including Darmm/darmm-chat-kazakh-8b