--- license: apache-2.0 language: - id - en tags: - text-generation - pytorch - causal-lm - transformer - untrained - mla - multi-token-prediction - qk-norm - rope - yarn - swiglu - rmsnorm - sliding-window-attention - indonesian - bilingual library_name: transformers pipeline_tag: text-generation widget: - text: "Jakarta adalah ibu kota" example_title: "🇮🇩 Pelengkapan Teks (ID)" - text: | Pertanyaan: Apa itu kecerdasan buatan? Jawaban: example_title: "🇮🇩 Tanya Jawab (ID)" - text: "The capital of Indonesia is" example_title: "🇬🇧 Text Completion (EN)" - text: | User: Halo! Siapa kamu? Assistant: example_title: "💬 Format Chat (ID)" inference: parameters: max_new_tokens: 100 temperature: 0.7 top_p: 0.9 top_k: 50 do_sample: true repetition_penalty: 1.1 datasets: [] metrics: - perplexity model-index: - name: caca-650M-untrained results: [] ---
# 🤖 caca-650M-untrained
### Arsitektur Transformer dengan Multi-head Latent Attention (MLA)






### 🌟 Mengapa Caca? 1. **🇮🇩 Fokus pada Bahasa Indonesia** — dirancang bilingual ID/EN 2. **💾 KV Cache Sangat Hemat** — MLA menekan KV cache ~81% dibanding attention standar setara 3. **🎯 Multi-Token Prediction** — prediksi 1 token ke depan sekaligus, potensi throughput lebih baik 4. **📏 Long Context via YaRN** — RoPE scaling dari 8,192 ke 32,768 token 5. **🪟 Sliding Window Berselang-seling** — 10 full-attention layer + 10 sliding-window layer --- ## 📊 Spesifikasi Model📖 Tentang Project Caca
Caca adalah eksperimen open-source Indonesian LLM yang dibuat dari nol secara individual dan bertahap. Bukan kompetitor siapa-siapa, cuma pengen eksplorasi apa yang bisa dilakukan dengan budget terbatas, passion unlimited, dan mindset collaborative.
Kalau berguna buat orang lain, alhamdulillah. Kalau enggak, ya tetap fun kok.
— Lyon, Creator
| Parameter | Value | Parameter | Value |
| Total Parameters | 526,860,267 | Vocab Size | 32,000 |
| Hidden Size | 1280 | Intermediate Size | 5120 |
| Num Layers | 20 | Attention Heads | 10 |
| Max Context Length | 8,192 | Efektif (YaRN) | 32,768 |
| RoPE Base (θ) | 10,000 | Tie Embeddings | True |
| Model Size (FP16) | 1.05 GB | Formatted Size | 527M |
| Configuration | Model Weights | + Optimizer States | Total Training |
|---|---|---|---|
| FP32 (AdamW) | 2.11 GB | +6.32 GB | 8.43 GB |
| Mixed Precision | 1.05 GB | +7.38 GB | 8.43 GB |
| + Gradient Checkpointing | Menghemat ~30-50% activation memory | ~5.06 GB | |
| Precision | Model Size | KV Cache (2K ctx) | Total Memory |
|---|---|---|---|
| FP16 / BF16 | 1.05 GB | 0.020 GB | 1.07 GB |
| INT8 | 0.53 GB | 0.020 GB | 0.55 GB |
| INT4 (NF4) | 0.26 GB | 0.020 GB | 0.28 GB |
| Metric | Value | Notes |
|---|---|---|
| FLOPs per Token | 1,053,720,534 | Forward pass only |
| TFLOPs per Token | 0.0011 | ≈ 6× untuk backward |
model.safetensors.
## 🏗️ Status Training
Tidak ada metrik training (loss, wandb, tensorboard) — ini adalah **base architecture release** untuk dipakai sebagai titik awal pretraining dari nol.
---
## 📄 License
Model ini dirilis di bawah **Apache License 2.0** — bebas dipakai, dimodifikasi, dan didistribusikan (dengan attribution), disediakan "as is" tanpa warranty.
---
## 👥 Team & Contact
- **Lyon** — Architecture design & implementation
- 📧 cacatransformers@gmail.com
- 💬 [Discussions](https://huggingface.co/Lyon28/caca-650M-untrained/discussions)
---