TinyV4 is a compact 11 million parameter bilingual (Indonesian & English) base model. Think of it as a solid foundation — pre-trained, ready to be fine-tuned for your specific downstream task.
At just 58 MB, it's small enough to run anywhere. Smart enough to be worth your time.
What is this?
Most base models start at 100M+ parameters. Want to experiment with fine-tuning? You need a GPU. Want to iterate fast? Good luck.
TinyV4 is different. 11M parameters with a Mixture-of-Experts architecture — pre-trained on bilingual data so it already understands both Indonesian and English. You bring the task, it brings the foundation.
Why use TinyV4 as your base?
Reason
Why it matters
11M params
Fine-tune in minutes, not days
58 MB
Fits anywhere — mobile, edge, browser
CPU-friendly
No GPU? No problem
Bilingual
Already understands ID + EN
MoE architecture
Efficient capacity without the bloat
MIT license
No restrictions, no strings
Architecture
Component
Spec
Parameters
11,034,955
Dimension
128
Layers
6
Attention Heads
4 (Query), 4 (Index)
MoE Experts
4 routed + 1 shared
Active Experts
2 per token
Vocab Size
32,000
Max Sequence
512 tokens
File Size
58 MB
Built with Mixture-of-Experts (MoE), Sinkhorn-Knopp load balancing, Multi-Token Prediction (MTP), and Hierarchical Compressed Attention — techniques typically reserved for models 100x larger. We just refused to believe you need billions of parameters to be useful.
What can you fine-tune it for?
TinyV4 is a blank canvas. Some ideas:
Translation (ID ↔ EN) — it already has bilingual foundations
Text classification — sentiment, topic, intent
Story generation — fine-tune on your own narrative dataset
Chat / instruction following — add conversation data
Code generation — yes, even at 11M, it can learn patterns
Domain-specific tasks — medical, legal, technical — your data, your model
The point is: you control the final model. TinyV4 just gives you a running start.
Quick Start
pip install transformers safetensors torch
Load the base model
python
1from transformers import AutoTokenizer, AutoModel
23# Load model & tokenizer (trust_remote_code=True karena arsitektur custom)4model = AutoModel.from_pretrained("ukung/tinyv4", trust_remote_code=True)5tokenizer = AutoTokenizer.from_pretrained("ukung/tinyv4")67# Tie embeddings (custom step untuk TinyV4)8model.head.weight = model.embed.weight
9model.eval()1011print(f"Loaded: {sum(p.numel()):,} params")
1from torch.optim import AdamW
23model.train()4optimizer = AdamW(model.parameters(), lr=3e-4)56# Your dataset, your task7for batch in your_dataloader:8 logits, mtp_logits, bal_loss = model(batch)9 loss = compute_your_loss(logits, batch)10 loss.backward()11 optimizer.step()12 optimizer.zero_grad()1314# Save your fine-tuned model15from safetensors.torch import save_file
16save_file(model.state_dict(),"my-finetuned-model.safetensors")
Comparison: Sub-100M Base Models
Let's be honest — most base models under 100M parameters are either:
Distilled from larger models (not truly small)
Overly specialized (can't adapt to new tasks)
Poorly architected (waste parameters on the wrong things)
TinyV4 is different. At 11M parameters, it delivers:
Real bilingual understanding — not just token overlap
MoE efficiency — 4 experts, 2 active, more capacity per parameter
Proven adaptability — fine-tunes well across diverse tasks
Zero-shot generation — coherent output without any task-specific training
We're not saying 11M beats 1B. We're saying that at this size, nothing else gives you this much to work with.
Pre-training Details
Metric
Value
Steps
5,000
Final Loss
3.97
Optimizer
AdamW
Schedule
Cosine decay with warmup
Weight Decay
0.01
Limitations
Be realistic about what 11M parameters can do:
Zero-shot output will be basic — this is a base model, not a finished product
Long-form coherence requires fine-tuning with appropriate data
Domain expertise needs your data — it won't magically know medical terms or legal jargon
Reasoning is limited — complex logical chains need more parameters
Think of TinyV4 as the best possible starting point at 11M. Not the finish line.
License
MIT — use it, modify it, ship it. No attribution required (but appreciated).
Citation
bibtex
1@misc{tinyv4-11m,
2 title = {TinyV4: A 11M Bilingual Base Model with Mixture-of-Experts},
3 year = {2025},
4 url = {https://huggingface.co/ukung/tinyv4}
5}