Downloads · 30 days
24
4% of all-time downloads
Abzalbek89/kk-llama-50m
kk-llama-50m is a text generation model from Abzalbek89. 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.
A small Kazakh language model (LLaMA architecture, ~50M parameters) trained from scratch on cleaned Kazakh text corpus.
Downloads · 30 days
24
4% of all-time downloads
All-time downloads
561
Public
Parameters
50.3M
201 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors201 MB · 98%
From the Hugging Face model README
A small Kazakh language model (LLaMA architecture, ~50M parameters) trained from scratch on cleaned Kazakh text corpus.
| Parameter | Value |
|---|---|
| Architecture | LLaMA |
| Parameters | ~50M |
| Hidden size | 576 |
| Layers | 8 |
| Attention heads | 8 |
| Vocab size | 32,000 |
| Context length | 2,048 tokens |
| Training tokens | ~0.51B (510M) |
| Precision | bf16 |
| Hyperparameter | Value |
|---|---|
| Learning rate | 6e-4 |
| Scheduler | Cosine |
| Warmup steps | 500 |
| Batch size | 16 x 4 (grad accum) = 64 |
| Epochs | 3 |
| Weight decay | 0.1 |
| Max grad norm | 1.0 |
| Metric | Value |
|---|---|
| Train loss | 3.38 |
| Eval loss | 3.379 |
| Perplexity | 29.35 |
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("Abzalbek89/kk-llama-50m")
tokenizer = AutoTokenizer.from_pretrained("Abzalbek89/kk-llama-50m")
input_text = "Қазақстан Республикасының"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=50, do_sample=True, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Apache 2.0