File size: 2,331 Bytes
c8bfbb7 6078fb7 c8bfbb7 5173baa | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | ---
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](https://huggingface.co/datasets/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](https://github.com/aryasep-a/kawi/tree/main/configs) and beyond. Pipeline: [github.com/aryasep-a/kawi](https://github.com/aryasep-a/kawi). Tokenizer: [KawiLM/kawi-tokenizer](https://huggingface.co/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.
|