kawi-tiny / README.md
aryasptn-a's picture
fix: corpus size 11.7B -> 11.73B (11,729,405,914)
6078fb7 verified
|
Raw History Blame Contribute Delete
2.33 kB
metadata
license: mit
tags:
  - from-scratch
  - pretraining
  - bilingual
  - kawi
  - smoke-test
datasets:
  - KawiLM/kawi-corpus
pretty_name: Kawi-tiny (pipeline validation checkpoint)

KawiLM/kawi-tiny

A 2.15M-parameter validation checkpoint from the Kawi pipeline β€” the first public artifact of a bilingual (English/Indonesian) LLM built from scratch on an Rp0 budget.

This is a pipeline validation checkpoint, not a usable language model. It exists to prove the full chain works: corpus β†’ tokenizer β†’ DDP training on free Kaggle GPUs β†’ eval β†’ export. Every number below is real, measured by kawi eval / kawi eval-code / kawi eval-mc.

Training facts (60 steps, 2Γ— Tesla T4, DDP)

  • Params: 2,146,624 (dim 64, 2 layers, max_seq_len 128) β€” config configs/kawi-tiny.yaml
  • Data: KawiLM/kawi-corpus shards (11.73B tokens), mix py 0.5 / id 0.5
  • val_loss: 8.20 β†’ 7.90 in 60 steps (12,000 train tokens/step)
  • Wall time: 3.3 minutes total, incl. eval

Evaluation (2M tokens, bpb = bits per byte)

source bpb
code 3.66
en 3.17
git 3.70
id 2.85
py 3.14
tech 3.46
overall 3.21
  • HumanEval / MBPP pass@1: 0.0 (expected β€” the model has seen 720k tokens and outputs mostly underscores)
  • MMLU (engineering subset): acc 22.1% β‰ˆ random (expected)

Files

  • best.pt β€” best checkpoint by val loss (torch state dict)
  • ckpt.pt β€” resumable checkpoint (optimizer state included)
  • eval.json β€” full eval report (per-source bpb, code, knowledge)
  • summary.json, log.jsonl β€” training run facts

What's next

Real pretraining runs scale to configs/kawi-20m.yaml and beyond. Pipeline: github.com/aryasep-a/kawi. Tokenizer: KawiLM/kawi-tokenizer.

License: MIT. Budget: Rp0.

Browser inference (ONNX)

onnx/model_int8.onnx (4.3 MB, opset 17, int8 dynamic quantization) runs in-browser via transformers.js / onnxruntime-web. Exported from this checkpoint with scripts/export_onnx.py in the kawi repo; the graph uses KV-cache inputs (past_*/cache_position) following the HF ONNX convention.