--- license: apache-2.0 language: - id - en library_name: gajahmada-gnnm pipeline_tag: text-generation tags: - gajahmada - gnnm - tiny - custom-transformer - indonesian - multilingual - general-knowledge - rmsnorm - rope - swiglu datasets: - wikimedia/wikipedia --- # GNNM-Tiny-01 (`GNNM-Tiny-01-GK-v1.0-20M`) **GNNM-Tiny-01-GK-v1.0-20M** is an ultra-compact, from-scratch **984K-parameter** bilingual (Indonesian & English) Decoder-Only Transformer built natively for **GajahMada AI** (`GNNMTransformer`: Pre-Norm RMSNorm + RoPE + MHA + SwiGLU) with a native Byte-Level BPE tokenizer (`GNNMBPETokenizer`). > **Status:** Active **experimental checkpoint (`20,138,391` cumulative tokens, `target_reached = true`)**. Achieves a **39× perplexity improvement** (`594.274 → 15.216`) with zero regression on the independent 1,000-question `GK Benchmark v1.1`, while remaining gated behind **GajahMada U-UAAE + Hybrid RAG / AWI** in production (not a standalone factual oracle). --- ## Model Specifications | Property | Value | | :--- | :--- | | **Model ID** | `GNNM-01-Tiny` (`GNNM-Tiny-01-GK-v1.0-20M`) | | **Exact Parameters** | `984,192` | | **Architecture** | `d_model = 128`, `n_layers = 4`, `n_heads = 4`, `d_ff = 384`, `max_seq_len = 256`, Tied Embeddings | | **Tokenizer** | Native Byte-Level BPE (`vocab_size = 1,024`) | | **Weights Size** | `4.3 MB` (`model.pt`, FP32) | | **Model SHA-256** | `7e5bc2ea9ca1befa5512ede31bfe1f0536a4b078ce33ef2eac2f011fffe2eda5` | | **Tokenizer SHA-256** | `8637db8357b5f24f47942c23fbde010e3426ea7e912465cad944f4fab8361d60` | | **License** | **Apache License 2.0** (`LICENSE`) | | **Source Repository** | [github.com/hoed/gajahmada-ai](https://github.com/hoed/gajahmada-ai) | --- ## Training & Independent Evaluation (`GK Benchmark v1.1`) - **Cumulative Tokens Trained:** `20,138,391` (`global_step = 9,677`) - **Validation Loss / PPL:** `6.08944` → **`1.39521`** (`best_val_perplexity = 4.036`) - **1,000-Question `GK Benchmark v1.1` (Real Checkpoint Inference):** - `benchmark_ce_loss`: `6.38734` → **`2.72233`** (`-3.665`) - `benchmark_perplexity`: `594.274` → **`15.216`** (**39× better**, zero regression) - `overall_accuracy` (gen): `0.00%` → `2.86%` (`static_knowledge: 20.0%`) --- ## Usage (Native GajahMada Inference Runtime) ```python from gajahmada_ai.gnnm.inference import BumbleCoreInferenceRuntime, download_hf_checkpoint ckpt_dir = download_hf_checkpoint("Hoedhud/GNNM_tiny_01") runtime = BumbleCoreInferenceRuntime(checkpoint_dir=ckpt_dir, device="cpu") print(runtime.generate("Apa ibu kota Indonesia?", max_new_tokens=48).text) ``` --- ## License & Attribution - **Model Weights & Code:** [Apache License 2.0](LICENSE). - **Training Sources:** `wikimedia/wikipedia` (`20231101.id` 65% + `20231101.en` 20%, **CC-BY-SA-4.0**) + GajahMada curated corpus (15%, **Apache-2.0**).