Fina-1.1-30M
Fina-1.1-30M is the successor of Fina-30M v0.1: the same 29.4M-parameter Indonesian decoder-only Transformer, now with a 1,024-token context and light instruction tuning. It is a small research/educational model trained from scratch on Google Colab (free tier).
⚠️ Not for production, not a source of facts. See Limitations. License:
cc-by-nc-4.0(non-commercial), because the pretraining corpus includes a CC BY-NC 4.0 news dataset. Instruction/QA data, as listed on their Hub pages:alpaca-gpt4-indonesian-cleaned— Apache-2.0 (derived from GPT-4-generated text, so the generator provider's terms may also apply);cahya/instructions_indonesian— MIT;jakartaresearch/indoqa— CC BY-ND 4.0 (used for training and evaluation only; none of its content is redistributed here). Check all upstream licenses yourself before any commercial use.
What changed from v0.1
| v0.1 (Fina-30m) | 1.1 (this repo) | |
|---|---|---|
| Parameters / architecture | 29,368,832 · 8 layers · d_model 512 · 8 heads · SwiGLU (d_ff 1024) · RoPE · RMSNorm · tied embeddings | same |
| Context | 512 | 1,024 (continued pretraining on long documents, no RoPE scaling) |
| Behaviour | continues text only | answers short questions and instructions, stops with an end-of-text token, can decline when a given context lacks the answer |
How it was made
- Context extension: continued pretraining of v0.1 for 2,000 steps (32,768 tokens/step; 80% long samples at 1,024 tokens from single documents, 20% at 512; LR 1e-4→1e-5 cosine). No position interpolation is applied at inference (
rope_scale = 1.0). - Instruction tuning: ~12k Indonesian examples (general instructions, factual/definition questions, procedures, longer writing, context-based QA, and refusals when the context lacks the answer), loss on the answer tokens only. Low learning rate (2e-5, 2 epochs) with replay of pretraining batches to limit forgetting of general language modeling.
How to use
Custom architecture — load with the code in this repo:
# pip install torch safetensors tokenizers huggingface_hub
from huggingface_hub import hf_hub_download
import sys, os
sys.path.insert(0, os.path.dirname(hf_hub_download("Dawgggggg/Fina-1.1-30M", "modeling_fina.py")))
from modeling_fina import load_pretrained, chat
model, tok = load_pretrained("Dawgggggg/Fina-1.1-30M")
print(chat(model, tok, "Sebutkan tiga nama buah."))
Greedy decoding is used for all reported numbers. Chat format: <|user|> {text} <|assistant|> {answer} <|endoftext|>.
For context-based QA the model was trained with this prompt template (a different wording may work worse):
Jawab pertanyaan berdasarkan konteks berikut. Jika jawabannya tidak ada dalam konteks, katakan bahwa kamu tidak tahu.
Konteks: ...
Pertanyaan: ...
Evaluation (small, internal — not standard benchmarks)
Evaluation sets are small and hand-built, single run (one seed), metrics are rule-based (keyword match / regex). Treat differences between close numbers as noise. FINA-Bench / IndoMMLU-style benchmarks have not been run.
Sets: 57 factual questions, 24 simple instructions, 244 QA items with the answer in the context, 244 QA items with an unrelated context (answer absent). QA items come from IndoQA validation rows that were held out from training.
| Metric (greedy) | v0.1 base (not instruction-tuned) | 1.1 |
|---|---|---|
| Factual questions (correct keyword in answer) | 5% (3/57; 95% CI 2–14%) | 32% (18/57; 95% CI 21–44%) |
| Simple instructions followed (rule-based checkers) | 25% (6/24; 95% CI 12–45%) | 29% (7/24; 95% CI 15–49%) |
| Declines when the context does NOT contain the answer | 4% (9/244; 95% CI 2–7%) | 75% (184/244; 95% CI 70–80%) |
| Declines although the context contains the answer (lower is better) | 2% (5/244; 95% CI 1–5%) | 24% (58/244; 95% CI 19–29%) |
| Correct answer from context (gold answer in output or F1 ≥ 0.5) | 3% (7/244; 95% CI 1–6%) | 10% (25/244; 95% CI 7–15%) |
| Language modeling and long context | v0.1 | 1.1 |
|---|---|---|
| Pretraining-text loss, 512 tokens (fixed 40/57/3 mixture) | 3.388 | 3.443 |
| Long-document loss @1024 tokens | 4.027 | 3.114 |
| Needle-in-haystack @1024 (chance 0.25) | 0.35 ± 0.08 | 0.91 ± 0.05 |
| Needle-in-haystack @2048 (chance 0.25) | 0.25 ± 0.08 | 0.58 ± 0.07 |
Notes: v0.1 is a base model, so the first table mainly shows how an untuned model behaves on these prompts. Needle: a 4-digit code hidden at the start/middle/end of a Wikipedia-text haystack, 4 candidates, 40 trials per position. Loss on 512-token text after tuning is +1.3% relative to the context-extended model before tuning (3.400 → 3.443).
Limitations
- Facts are unreliable. The model hallucinates; low scores above are typical for 30M parameters. Do not use it for factual answers.
- Context-based QA is weak: it finds the right answer only in roughly one in ten cases (10% (25/244; 95% CI 7–15%)) and still declines about 24% of answerable items. Its refusal behaviour mostly reflects the training mix, not understanding.
- Refusing without any context (e.g. questions about the user's private life) is not reliable (0% (0/14; 95% CI 0–22%); very small test).
- Instruction following is limited to short, simple formats; repetition can still occur on long outputs.
- Context beyond 1,024 tokens was not trained; retrieval of a hidden code at 2,048 tokens works only partially (see table).
- Single training seed; no variance estimates. No decontamination check against public benchmarks. No safety tuning.
Citation
@techreport{fina30m2026,
title = {Fina-30M: Design, Training, and Experimental Analysis of a Small Indonesian Language Model},
author = {Fadhlan (Horii)},
year = {2026},
note = {Technical research paper; this release is v1.1},
url = {https://github.com/muhfadtz}
}