Bayon is a 100-million-parameter Khmer-focused language model developed by Panha AI. It was built to explore how far native-language specialization can go with a compact model, limited compute, and a tokenizer designed around Khmer.
This model card summarizes the released model. The Bayon release article contains the full training report, experimental notes, and detailed evaluation discussion.
Model Details
| Developer | Panha AI |
| Release date | July 2, 2026 |
| Model type | Decoder-only Transformer language model |
| Inputs | Text |
| Language | Khmer |
| Parameters | Approximately 100 million |
| Model ID | attentionlab/bayon |
Architecture
Bayon uses a Gemma-inspired architecture with grouped-query attention. The design prioritizes a small memory footprint and practical training on limited hardware.
| Component | Specification |
|---|---|
| Layers | 28 transformer layers |
| Hidden dimension | 512 |
| Attention | Grouped-query attention with 8 query heads and 2 key-value heads |
| Tokenizer | 5,000-token Khmer-focused BPE vocabulary with byte fallback |
| Pretraining data | Approximately 1.361 billion tokens from a filtered Khmer corpus derived from FineWeb-2 |
The tokenizer was trained on approximately 2.42 million documents and 5.12 billion characters, of which 94.69% were Khmer characters. Its 5,000-token vocabulary and byte fallback preserve coverage for characters outside the learned vocabulary.
Compute Requirements
Bayon was trained with limited hardware. Pretraining ran primarily on a mobile NVIDIA RTX 4050 with 6GB of VRAM, followed by a short continuation run on an H100.
| Stage | Hardware | Duration |
|---|---|---|
| Primary pretraining | NVIDIA RTX 4050, 6GB VRAM | 96 hours |
| Pretraining continuation | NVIDIA H100 | 3 hours |
| Instruction tuning | NVIDIA RTX 4050, 6GB VRAM | 2.5 hours |
Pretraining was intentionally stopped at step 18,000 rather than the planned 50,000 steps, reaching a validation loss of 2.54 and a perplexity of 12.7. Instruction tuning used LoRA and 18,000 Khmer instruction-response pairs.
Inference requirements depend on runtime, precision, and context length. At 100 million parameters, the model weights occupy roughly 0.2 GB at 16-bit precision, before runtime and KV-cache overhead. Bayon was designed with edge deployment in mind and targets environments with limited GPU memory. See the model repository for implementation details and current usage terms.
Evaluation Results
The results below are from Panha AI's release evaluation. They are preliminary and specific to the reported benchmarks.
Tokenization efficiency. On the tokenizer development corpus, Bayon produces approximately 1.389 billion tokens, 4.33× fewer than Qwen2.5 and 2.20× fewer than o200k_base.
These measurements are based on the tokenizer development corpus rather than a held-out evaluation set. On three representative Khmer passages, Bayon required between 1.65× and 4.49× fewer tokens than the comparison tokenizers.
Language consistency. The Language Bleed Ratio (LBR) measures the share of generated tokens containing characters outside Khmer Unicode ranges. Bayon achieved an LBR of 0.06% after instruction tuning: 13 non-Khmer tokens among 21,031 generated tokens across three evaluation passes.
An important control experiment evaluated Bayon's pretrained checkpoint before instruction tuning. Using the same tokenizer and evaluation protocol, its LBR was 80.59%.
LBR measures script consistency, not grammatical quality, factual accuracy, or naturalness.
Khmer question answering. On a 201-question Khmer historical and regional QA benchmark, Bayon answered 15 questions correctly. Questions had to be answered correctly in at least two of three independent passes.
The benchmark is limited in size and scope, and the evaluation protocols for comparison models are not fully symmetric. The results suggest improved localized task behavior after instruction tuning, not broad Khmer factual competence. Detailed evaluation notes are available in the release article.
Intended Use
Bayon is intended for research and experimentation in Khmer language modeling, tokenization, script fidelity, and low-resource training. It can also be used for experimental Khmer text generation and evaluation.
It is not intended for high-stakes decisions, factual advice without human verification, or production deployment without additional safety and quality evaluation.
Limitations
- Bayon's 100M-parameter scale limits its world knowledge, reasoning, and factual reliability compared with larger models.
- Evaluation is limited to a small set of benchmarks and does not establish broad Khmer language competence.
- Pretraining data is web-derived and instruction data was generated with teacher models, so both may contain noise or biases.
- LBR measures script consistency only; it is not a general measure of language quality.
- Safety, hallucination, and long-form factual behavior have not been comprehensively evaluated.
Access
- Bayon on Hugging Face
- Training and research code
- Full release and evaluation report
- AACL-IJCNLP 2026 paper and research artifacts
See the model repository for the current license and usage terms.