Abstract: Llama-3.1-Sherkala-8B-Chat, or Sherkala-Chat (8B) for short, is a state-of-the-art instruction-tuned open generative large language model (LLM) designed for Kazakh. Sherkala-Chat (8B) aims to enhance the inclusivity of LLM advancements for Kazakh speakers. Adapted from the LLaMA-3.1-8B model, Sherkala-Chat (8B) is trained on 45.3B tokens across Kazakh, English, Russian, and Turkish. With 8 billion parameters, it demonstrates strong knowledge and reasoning abilities in Kazakh, significantly outperforming existing open Kazakh and multilingual models of similar scale while achieving competitive performance in English. We release Sherkala-Chat (8B) as an open-weight instruction-tuned model and provide a detailed overview of its training, fine-tuning, safety alignment, and evaluation, aiming to advance research and support diverse real-world applications.
Introduction
Despite being spoken by approximately 80% of Kazakhstan's 20 million people, the Kazakh language remains significantly underrepresented in Natural Language Processing (NLP) research. Most modern LLMs are English-centric, and even multilingual models often struggle with the linguistic and cultural nuances of Kazakh. Sherkala-Chat (8B) addresses this "moderately resourced" gap by leveraging the powerful Llama-3.1-8B foundation and augmenting it with high-quality native and translated data.
Methodology and Adaptation
The development of Sherkala-Chat (8B) followed a two-pronged strategy: continual pretraining and vocabulary expansion. The model underwent continual pretraining on 45.3 billion tokens. Empirical testing determined that the optimal data mixture for this stage was a 3:1:3 ratio of Kazakh to (Russian + Turkish) to English.
Vocabulary Expansion and Efficiency
Standard tokenizers are often inefficient for Kazakh, breaking simple words into numerous sub-tokens. To address this, the researchers expanded the Llama-3.1 vocabulary by 25%, adding Kazakh-specific tokens. This modification significantly reduced the "fertility" (the average number of tokens per word) for Kazakh from 4.73 to 2.04, effectively doubling the model's computational efficiency and extending its effective context window for the language.
To ensure the model could immediately utilize these new tokens, the team used the WECHSEL method for embedding initialization, mapping new Kazakh embeddings to existing English/multilingual ones based on semantic similarity.
Instruction Tuning and Safety
The model was further refined through Supervised Fine-Tuning (SFT) using a mix of 3.5 million instruction pairs. This included translated datasets like ORCA and JAIS, as well as native Kazakh datasets (CultSet and GovSet) derived from cultural and government sources. A dedicated safety alignment stage was implemented to ensure the model respects the ethical and cultural norms specific to Kazakhstan, covering 17 harm categories.
Key Results
Sherkala-Chat (8B) sets a new state-of-the-art benchmark for open-source Kazakh models. In comprehensive evaluations across world knowledge, commonsense reasoning, and misinformation benchmarks, it achieved an average accuracy of 47.6. This performance significantly exceeds the base Llama-3.1-Instruct (40.4) and the previous specialized leader, KazLLM-1.0-8B (43.7).
Beyond its gains in Kazakh, the model maintains strong performance in English and narrows the gap with specialized Russian models. This demonstrates that targeted optimization for a specific language like Kazakh does not necessarily degrade general multilingual capabilities.
Conclusion and Future Work
Sherkala-Chat (8B) represents a major step forward for the Kazakh NLP community. By releasing the model weights openly, the authors aim to foster further innovation. Future work will focus on closing the reasoning gap with proprietary models like GPT-4o and improving the model's handling of regional dialects and informal speech.
Summary updated