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

DeveloperPanha AI
Release dateJuly 2, 2026
Model typeDecoder-only Transformer language model
InputsText
LanguageKhmer
ParametersApproximately 100 million
Model IDattentionlab/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.

ComponentSpecification
Layers28 transformer layers
Hidden dimension512
AttentionGrouped-query attention with 8 query heads and 2 key-value heads
Tokenizer5,000-token Khmer-focused BPE vocabulary with byte fallback
Pretraining dataApproximately 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.

StageHardwareDuration
Primary pretrainingNVIDIA RTX 4050, 6GB VRAM96 hours
Pretraining continuationNVIDIA H1003 hours
Instruction tuningNVIDIA RTX 4050, 6GB VRAM2.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.

Tokens on the tokenizer development corpusBillions of tokens. Lower is better.
1.389B
3.057B
6.021B
Bayon
o200k_baseOpenAI tokenizer
Qwen2.5

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.

Language Bleed RatioShare of generated tokens outside Khmer Unicode ranges. Lower is better.
0.06%
0.54%
18.25%
Bayon
Qwen-SEA-LION-v4.5-27B-IT
GPT-OSS-120B

An important control experiment evaluated Bayon's pretrained checkpoint before instruction tuning. Using the same tokenizer and evaluation protocol, its LBR was 80.59%.

Bayon before and after instruction tuningSame tokenizer and evaluation protocol. Lower is better.
80.59%
0.06%
Bayon (pre-SFT)
Bayon (instruction-tuned)

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.

Khmer historical and regional QACorrect answers out of 201. Higher is better; parameter counts are shown under each model.
117 / 201
103 / 201
88 / 201
54 / 201
15 / 201
4 / 201
0 / 201
GLM-4.7—
Gemma 4 IT31B
Qwen-SEA-LION-v4.5-IT27B
GPT-OSS120B
Bayon (instruction-tuned)100M
Qwen2.5-Instruct500M
Bayon (pre-SFT)100M

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

See the model repository for the current license and usage terms.