Text Generation
Transformers
Safetensors
PyTorch
Indonesian
English
caca
causal-lm
transformer
untrained
gqa
rope
swiglu
rmsnorm
flash-attention
indonesian
bilingual
custom_code
Instructions to use Lyon28/caca-2M-untrained with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Lyon28/caca-2M-untrained with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Lyon28/caca-2M-untrained", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Lyon28/caca-2M-untrained", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Lyon28/caca-2M-untrained with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Lyon28/caca-2M-untrained" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Lyon28/caca-2M-untrained", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Lyon28/caca-2M-untrained
- SGLang
How to use Lyon28/caca-2M-untrained with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Lyon28/caca-2M-untrained" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Lyon28/caca-2M-untrained", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Lyon28/caca-2M-untrained" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Lyon28/caca-2M-untrained", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Lyon28/caca-2M-untrained with Docker Model Runner:
docker model run hf.co/Lyon28/caca-2M-untrained
File size: 38,740 Bytes
1e8e7ff | 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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 | ---
license: apache-2.0
language:
- id
- en
tags:
- text-generation
- pytorch
- causal-lm
- transformer
- untrained
- gqa
- rope
- swiglu
- rmsnorm
- flash-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: |
Tulis cerita pendek tentang robot yang belajar mencintai.
example_title: "๐ฎ๐ฉ Penulisan Kreatif (ID)"
- text: "The capital of Indonesia is"
example_title: "๐ฌ๐ง Text Completion (EN)"
- text: |
Question: What is artificial intelligence?
Answer:
example_title: "๐ฌ๐ง Question Answering (EN)"
- text: |
def fibonacci(n):
"""Hitung bilangan fibonacci ke-n"""
example_title: "๐ป Pelengkapan Kode"
- text: |
# Fungsi untuk mengurutkan array
def sort_array(arr):
example_title: "๐ป Generasi Kode"
- text: |
User: Halo! Siapa kamu?
Assistant:
example_title: "๐ฌ Format Chat (ID)"
- text: |
User: Jelaskan tentang machine learning dalam 2 kalimat.
Assistant:
example_title: "๐ฌ Conversational (ID)"
inference:
parameters:
max_new_tokens: 100
temperature: 0.7
top_p: 0.9
top_k: 50
do_sample: true
repetition_penalty: 1.1
num_beams: 1
datasets: []
metrics:
- perplexity
- accuracy
model-index:
- name: caca-2M
results: []
---
<div align="center">
<img src="https://i.postimg.cc/MTSj073X/logo.png" width="400" alt="caca-2M"/>
# ๐ค caca-2M
### Arsitektur Transformer Modern dengan Fitur Canggih
[](https://opensource.org/licenses/Apache-2.0)
[](https://www.python.org/downloads/)
[](https://pytorch.org/)
[](https://github.com/huggingface/transformers)
[]()
[]()
[]()
**2,001,216** parameters โข **2.00M** โข **7 layers** โข **512 tokens**
[๐ Documentation](#-dokumentasi) โข [๐ป Usage](#-cara-penggunaan) โข [โ๏ธ Configuration](#๏ธ-konfigurasi-detail) โข [๐ฌ Architecture](#-arsitektur)
</div>
---
## โ ๏ธ PENTING: Model Belum Dilatih (Untrained)
<div style="background: #fff3cd; border-left: 4px solid #ffc107; padding: 12px; margin: 16px 0;">
<strong>โ ๏ธ PERHATIAN</strong>: Ini adalah model yang <strong>belum melalui proses training</strong>. Bobot model masih dalam kondisi <strong>random initialization</strong>. Output yang dihasilkan akan <strong>tidak bermakna dan acak</strong>.
</div>
**Status Model:**
- ๐ด **Belum dilatih** - Bobot masih random (Kaiming/Xavier init)
- ๐ก **Untuk riset & eksperimen** - Arsitektur sudah siap, tinggal train
- ๐ข **Production-ready architecture** - Teruji dan optimal
Widget di atas hanya menunjukkan **format input yang diharapkan**. Setelah model dilatih dengan dataset yang tepat, format yang sama akan menghasilkan output berkualitas tinggi.
### ๐ฏ Apa yang Bisa Dilakukan?
| โ
Bisa | โ Belum Bisa |
|---------|----------------|
| Load model architecture | Generate teks bermakna |
| Test forward pass | Menjawab pertanyaan |
| Measure memory & speed | Reasoning & understanding |
| Start training | Production deployment |
| Fine-tuning experiments | Real-world applications |
---
## ๐ Deskripsi
**Caca** adalah arsitektur Large Language Model (LLM) generasi terbaru yang menggabungkan berbagai teknik state-of-the-art dalam deep learning. Model ini dirancang dengan fokus pada **efisiensi komputasi**, **skalabilitas**, dan **performa tinggi**.
<blockquote style="border-left: 4px solid #4A90E2; padding-left: 16px; margin: 16px 0; background: #f8f9fa; padding: 12px;">
<p><strong>๐ Tentang Project Caca</strong></p>
<p><em>Caca</em> 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.</p>
<p>Kalau berguna buat orang lain, alhamdulillah. Kalau enggak, ya tetap fun kok. Ini proyek eksplorasi, jadi kalau gagal ya bagian dari proses belajar. Kalau berhasil, itu bonus.</p>
<p>โ <strong>Lyon</strong>, Creator</p>
</blockquote>
### ๐ Mengapa Caca?
1. **๐ฎ๐ฉ Fokus pada Bahasa Indonesia** - Dirancang dengan mempertimbangkan karakteristik bahasa Indonesia
2. **โก Efisiensi Tinggi** - GQA & Flash Attention untuk inferensi 3-5x lebih cepat
3. **๐พ Memory Efficient** - Hemat 75% memory untuk KV cache
4. **๐ง Modular & Extensible** - Mudah dikustomisasi untuk berbagai use case
5. **๐ Bilingual** - Support optimal untuk Indonesia & English
### ๐ฏ Keunggulan vs Model Lain
| Fitur | Caca caca-2M | LLaMA-2 2.00M | GPT-3 2.00M |
|-------|------------|-----------|----------|
| **Attention Type** | GQA | GQA | MHA |
| **Position Encoding** | RoPE + ALiBI | RoPE | Learned |
| **Activation** | SwiGLU | SwiGLU | GELU |
| **Flash Attention** | โ
v2 | โ
v1/v2 | โ |
| **Long Context** | Sliding Window + Sink | โ
| Limited |
| **MoE Support** | โ
Optional | โ | โ |
| **Multimodal** | โ
Optional | โ | โ |
| **Quantization** | 4/8-bit | 4/8-bit | Limited |
---
## ๐ฏ Use Cases & Applications
### โ
Cocok Untuk
<table>
<tr>
<td width="50%">
**๐ฌ Research & Development**
- Eksperimen arsitektur transformer
- Ablation studies
- Novel training techniques
- Architecture search
**๐ Academic & Education**
- Thesis & research papers
- Teaching materials
- Student projects
- LLM internals understanding
</td>
<td width="50%">
**๐ Base Model for Fine-tuning**
- Task-specific models
- Domain adaptation
- Instruction tuning
- RLHF experiments
**๐ก Prototyping**
- Proof of concept
- Feature testing
- A/B testing architectures
- Benchmark comparisons
</td>
</tr>
</table>
### โ Tidak Cocok Untuk
<div style="background: #ffe6e6; border-left: 4px solid #ff4444; padding: 12px; margin: 16px 0;">
- ๐ซ **Production Applications** - Model belum dilatih, output random
- ๐ซ **Real-world Deployment** - Perlu training & safety alignment dulu
- ๐ซ **Safety-critical Systems** - Tidak ada safety guardrails
- ๐ซ **Direct User-facing Apps** - Output tidak dapat diprediksi
- ๐ซ **Commercial Use (as-is)** - Harus dilatih terlebih dahulu
</div>
---
## ๐ Spesifikasi Model
<table>
<tr>
<td><strong>Parameter</strong></td>
<td><strong>Value</strong></td>
<td><strong>Parameter</strong></td>
<td><strong>Value</strong></td>
</tr>
<tr>
<td>Total Parameters</td>
<td><code>2,001,216</code></td>
<td>Vocab Size</td>
<td><code>4,000</code></td>
</tr>
<tr>
<td>Hidden Size</td>
<td><code>128</code></td>
<td>Intermediate Size</td>
<td><code>256</code></td>
</tr>
<tr>
<td>Num Layers</td>
<td><code>7</code></td>
<td>Attention Heads</td>
<td><code>4</code></td>
</tr>
<tr>
<td>KV Heads (GQA)</td>
<td><code>1</code></td>
<td>Head Dimension</td>
<td><code>32</code></td>
</tr>
<tr>
<td>Max Context Length</td>
<td><code>512</code></td>
<td>RoPE Base (ฮธ)</td>
<td><code>10,000</code></td>
</tr>
<tr>
<td>Model Size (FP16)</td>
<td><code>0.00 GB</code></td>
<td>Formatted Size</td>
<td><code>2.00M</code></td>
</tr>
</table>
---
### ๐ฏ Core Features
<details open>
<summary><b>๐ Klik untuk expand/collapse</b></summary>
- โ
**Grouped Query Attention (GQA)** - Efisiensi memori dan komputasi superior
- Query heads: **4**
- KV heads: **1**
- Ratio: **4:1** (hemat ~75% memory KV cache)
- **Benefit**: Inferensi lebih cepat dengan memory footprint lebih kecil
- โ
**Rotary Position Embeddings (RoPE)** - Generalisasi konteks panjang lebih baik
- Theta (ฮธ): **10,000**
- Support extrapolation untuk konteks > training length
- **Benefit**: Performa stabil pada sequence length yang belum pernah dilihat saat training
- โ
**RMSNorm** - Normalisasi lebih stabil dan ~50% lebih cepat dari LayerNorm
- Epsilon: **1e-06**
- **Benefit**: Training lebih stabil, inference lebih cepat, gradient flow lebih baik
- โ
**SwiGLU Activation** - Performa 10-15% lebih baik dari ReLU/GELU
- Intermediate size: **256** (2.0x hidden)
- **Benefit**: Kapasitas model lebih besar tanpa menambah parameter signifikan
- โ
**Flash Attention 2** - Akselerasi hingga 3x dengan memory efficiency
- Otomatis aktif jika tersedia CUDA device
- IO-aware algorithm untuk minimal HBM access
- **Benefit**: Training & inference jauh lebih cepat, support batch size lebih besar
</details>
### ๐ฅ Advanced Features
### ๐ฏ Mekanisme Attention
- โก **Flash Attention v2** - Algoritma IO-aware yang 3x lebih cepat dari attention standar
- ๐ **Grouped Query Attention (GQA)** - 4 Query heads : 1 KV heads
- Rasio kompresi: **4:1** (hemat ~75% memory KV cache)
- ๐ **xFormers Support** - Fallback memory-efficient attention
- ๐ฏ **PyTorch SDPA** - Native scaled dot product attention
### ๐ Position Encodings
- ๐ **RoPE (Rotary Position Embeddings)** - Base frequency ฮธ=10,000
- Generalisasi lebih baik untuk sequence panjang dibanding absolute PE
### ๐ Optimisasi Training
- ๐พ **Gradient Checkpointing** - Trade compute for memory (support model hingga 100B+ params)
- ๐ฏ **Mixed Precision Training** - Support FP16, BF16, dan TF32
- ๐ **Dropout Regularization**
- Hidden dropout: 0.1
- Attention dropout: 0.0
- Residual dropout: 0.1
### ๐ฆ Dukungan Quantization
- 4๏ธโฃ **4-bit Quantization** - NF4 & FP4 via bitsandbytes
- Memory reduction: ~**75%** (4GB โ 1GB)
- Accuracy loss: <2% pada kebanyakan tasks
- Support double quantization untuk kompresi maksimal
- 8๏ธโฃ **8-bit Quantization** - LLM.int8() dengan outlier handling
- Memory reduction: ~**50%** (4GB โ 2GB)
- Accuracy loss: <1%
- ๐ **Dynamic Quantization** - Runtime quantization tanpa calibration
### ๐ฌ Advanced Features
- ๐ **Automatic Mixed Precision (AMP)** - Dynamic loss scaling
- ๐ฏ **Gradient Clipping** - Stabilitas training dengan max norm clipping
- ๐ **Learning Rate Scheduling** - Support cosine, linear, warmup
- ๐ก **Smart Memory Management** - Auto cache clearing & monitoring
- ๐ **Metrics Tracking** - Real-time perplexity, loss, gradient norms
- ๐ก๏ธ **NaN/Inf Detection** - Automatic recovery dari numerical instability
---
## ๐พ Kebutuhan Memory
### Training Requirements
<table>
<tr>
<th>Configuration</th>
<th>Model Weights</th>
<th>+ Optimizer States</th>
<th>Total Training</th>
</tr>
<tr>
<td><strong>FP32 (AdamW)</strong></td>
<td>0.01 GB</td>
<td>+0.02 GB</td>
<td><strong>0.03 GB</strong></td>
</tr>
<tr>
<td><strong>Mixed Precision</strong></td>
<td>0.00 GB</td>
<td>+0.03 GB</td>
<td><strong>0.03 GB</strong></td>
</tr>
<tr>
<td><strong>+ Gradient Checkpointing</strong></td>
<td colspan="2">Menghemat ~30-50% activation memory</td>
<td><strong>~0.02 GB</strong></td>
</tr>
</table>
### Inference Requirements
<table>
<tr>
<th>Precision</th>
<th>Model Size</th>
<th>KV Cache (2K ctx)</th>
<th>Total Memory</th>
<th>Memory Saving</th>
</tr>
<tr>
<td><strong>FP16 / BF16</strong></td>
<td>0.00 GB</td>
<td>0.00 GB</td>
<td><strong>0.01 GB</strong></td>
<td>Baseline</td>
</tr>
<tr>
<td><strong>INT8</strong></td>
<td>0.00 GB</td>
<td>0.00 GB</td>
<td><strong>0.00 GB</strong></td>
<td>~50% โ</td>
</tr>
<tr>
<td><strong>INT4 (NF4)</strong></td>
<td>0.00 GB</td>
<td>0.00 GB</td>
<td><strong>0.00 GB</strong></td>
<td>~75% โ</td>
</tr>
</table>
> ๐ก **Note**: KV cache bertambah secara linear dengan panjang sequence. Untuk context 8K, kalikan nilai KV cache dengan 4.
### Performance Estimates
<table>
<tr>
<th>Metric</th>
<th>Value</th>
<th>Notes</th>
</tr>
<tr>
<td><strong>FLOPs per Token</strong></td>
<td>4,002,432</td>
<td>Forward pass only</td>
</tr>
<tr>
<td><strong>TFLOPs per Token</strong></td>
<td>0.0000</td>
<td>โ 6ร untuk backward</td>
</tr>
<tr>
<td><strong>Bandwidth (FP16)</strong></td>
<td>0.00 GB/token</td>
<td>Memory bandwidth requirement</td>
</tr>
</table>
---
### ๐ Struktur Arsitektur Lengkap
<details>
<summary><b>๐ Klik untuk lihat detail arsitektur</b></summary>
```
CacaForCausalLM (2.00M)
โ
โโ Embedding: 4,000 ร 128
โ
โโ Transformer Layers (7x)
โ โโ RMSNorm
โ โโ Attention (GQA)
โ โ โโ Q: 4 heads ร 32 dim
โ โ โโ KV: 1 heads ร 32 dim
โ โ โโ RoPE (ฮธ=10,000)
โ โ โโ Flash Attention v2
โ โโ Residual
โ โโ RMSNorm
โ โโ FFN (SwiGLU)
โ โ โโ Gate: 128 โ 256
โ โ โโ Up: 128 โ 256
โ โ โโ Down: 256 โ 128
โ โโ Residual
โ
โโ Final RMSNorm
โโ LM Head: 128 โ 4,000
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ PARAMETER BREAKDOWN:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Embeddings: 512,000 ( 25.6%)
Transformer Layers: 974,848 ( 48.7%)
โโ Attention: 286,720
โโ FFN: 688,128
Final Norm: 128 ( 0.0%)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
TOTAL: 2,001,216 (100.0%)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
```
**Key Design Decisions:**
1. **GQA over MHA**: Hemat 75% KV cache memory dengan minimal accuracy loss
2. **SwiGLU over GELU**: ~10% better performance pada language modeling
3. **RMSNorm over LayerNorm**: Lebih cepat & stabil, tanpa bias term
4. **RoPE over Learned**: Better extrapolation untuk sequence length > training
5. **No Bias in Linear**: Mengikuti modern LLM best practices (LLaMA-style)
</details>
---
## ๐ Dokumentasi
### ๐ฆ Instalasi Dependencies
```bash
# Core dependencies (REQUIRED)
pip install torch>=2.0.0 transformers>=4.35.0 accelerate safetensors
# Optional: Untuk performa maksimal
pip install flash-attn --no-build-isolation # Flash Attention 2 (3x speedup)
pip install xformers # Memory efficient attention
pip install bitsandbytes # 4/8-bit quantization
# Optional: Untuk monitoring & profiling
pip install tensorboard wandb # Training monitoring
pip install gputil psutil # Resource monitoring
```
**Compatibility Matrix:**
| Component | Version | Note |
|-----------|---------|------|
| Python | 3.8 - 3.11 | 3.11 recommended |
| PyTorch | โฅ 2.0.0 | 2.1+ untuk SDPA optimal |
| CUDA | 11.8 / 12.1 | Untuk Flash Attention |
| Transformers | โฅ 4.35.0 | Untuk AutoModel support |
### Cara Penggunaan
#### 1๏ธโฃ Basic Loading
```python
from transformers import AutoConfig, AutoModelForCausalLM, AutoTokenizer
import torch
# Load configuration
config = AutoConfig.from_pretrained(
"Lyon28/caca-2M-untrained",
trust_remote_code=True
)
# Load model (FP16 untuk efisiensi)
model = AutoModelForCausalLM.from_pretrained(
"Lyon28/caca-2M-untrained",
config=config,
trust_remote_code=True,
torch_dtype=torch.float16,
device_map="auto" # Automatic device placement
)
# Model ini UNTRAINED - butuh training dulu!
print(f"Model loaded: {model.num_parameters():,} parameters")
print("โ ๏ธ Model ini belum dilatih dan belum bisa digunakan untuk inference")
```
#### 2๏ธโฃ Quantized Loading (4-bit/8-bit)
```python
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
import torch
# 4-bit quantization config
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.bfloat16,
bnb_4bit_use_double_quant=True
)
# Load model dengan quantization
model = AutoModelForCausalLM.from_pretrained(
"Lyon28/caca-2M-untrained",
trust_remote_code=True,
quantization_config=bnb_config,
device_map="auto"
)
print(f"Memory footprint: ~0.00GB (4-bit)")
```
#### 3๏ธโฃ Training Setup
```python
from transformers import TrainingArguments, Trainer
# Training configuration
training_args = TrainingArguments(
output_dir="./output",
per_device_train_batch_size=1,
gradient_accumulation_steps=16,
learning_rate=2e-4,
max_steps=10000,
lr_scheduler_type="cosine",
warmup_steps=500,
logging_steps=10,
save_steps=500,
fp16=True, # Mixed precision
gradient_checkpointing=True, # Memory efficient
)
# Initialize trainer
trainer = Trainer(
model=model,
args=training_args,
train_dataset=train_dataset,
)
# Start training
trainer.train()
```
### Advanced Usage
#### Gradient Checkpointing (Memory Efficient)
```python
model.gradient_checkpointing_enable()
print("โ
Gradient checkpointing enabled - saves ~40% memory")
```
#### Custom Training Loop
```python
from torch.optim import AdamW
from torch.cuda.amp import autocast, GradScaler
optimizer = AdamW(model.parameters(), lr=2e-4)
scaler = GradScaler()
for batch in dataloader:
# Mixed precision forward
with autocast(dtype=torch.bfloat16):
outputs = model(**batch)
loss = outputs.loss
# Backward with gradient scaling
scaler.scale(loss).backward()
scaler.step(optimizer)
scaler.update()
optimizer.zero_grad()
```
#### Multi-GPU Training (DDP)
```python
import torch.distributed as dist
from torch.nn.parallel import DistributedDataParallel
# Initialize process group
dist.init_process_group(backend="nccl")
# Wrap model
model = DistributedDataParallel(
model,
device_ids=[local_rank],
find_unused_parameters=False
)
```
---
## โ๏ธ Konfigurasi Detail
### Full Configuration JSON
```json
{
"architectures": ["CacaForCausalLM"],
"model_type": "caca",
"vocab_size": 4000,
"hidden_size": 128,
"intermediate_size": 256,
"num_hidden_layers": 7,
"num_attention_heads": 4,
"num_key_value_heads": 1,
"head_dim": 32,
"max_position_embeddings": 512,
"rope_theta": 10000,
"rms_norm_eps": 1e-06,
"use_cache": true,
"use_qk_norm": true,
"use_flash_attn": true,
"attention_dropout": 0.0,
"hidden_dropout": 0.1,
"torch_dtype": "float16"
}
```
### Custom Configuration
```python
from transformers import AutoConfig
# Load dan modifikasi config
config = AutoConfig.from_pretrained("Lyon28/caca-2M-untrained")
# Custom modifications
config.max_position_embeddings = 16384 # Extend context
config.rope_scaling = {"type": "linear", "factor": 2.0}
config.use_flash_attn = True
config.hidden_dropout = 0.05
# Save custom config
config.save_pretrained("./custom_config")
```
---
## ๐ฌ Arsitektur
### Layer Structure
```
Input Tokens
โ
Embedding Layer (4,000 โ 128)
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Decoder Block ร 7 โ
โ โ
โ โโ RMSNorm โ
โ โโ Multi-Head Attention (GQA) โ
โ โ - Flash Attention v2 โ
โ โ - 4 Query heads, 1 KV heads โ
โ โ - RoPE position encoding โ
โ โโ Residual Connection โ
โ โ โ
โ โโ RMSNorm โ
โ โโ Feed-Forward Network (SwiGLU) โ
โ โ - Gate: 128 โ 256 โ
โ โ - Up: 128 โ 256 โ
โ โ - Down: 256 โ 128 โ
โ โโ Residual Connection โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
RMSNorm (Final)
โ
LM Head (128 โ 4,000)
โ
Output Logits
```
### Attention Mechanism (GQA)
```
Query: [4 heads ร 32 dim] = 128
Key: [1 heads ร 32 dim] = 32
Value: [1 heads ร 32 dim] = 32
Grouped Query Attention:
- Setiap 4 query heads berbagi 1 KV head
- Memory KV cache: 75% lebih kecil dari Multi-Head Attention
- Kualitas mendekati MHA, speed mendekati MQA
```
### Feed-Forward Network (SwiGLU)
```
FFN(x) = (SiLU(xW_gate) โ xW_up) W_down
Where:
- W_gate: 128 ร 256
- W_up: 128 ร 256
- W_down: 256 ร 128
- SiLU(x) = x ยท sigmoid(x)
- โ = element-wise multiplication
```
## ๐ฌ Format Chat & Prompt Engineering
### ๐ Chat Template
Model mendukung format chat standar untuk conversational AI:
```python
# Format chat template bawaan
chat_template = """
{% for message in messages %}
{% if message['role'] == 'system' %}
System: {{ message['content'] }}
{% elif message['role'] == 'user' %}
User: {{ message['content'] }}
{% elif message['role'] == 'assistant' %}
Assistant: {{ message['content'] }}
{% endif %}
{% endfor %}
{% if add_generation_prompt %}Assistant:{% endif %}
"""
# Contoh penggunaan
messages = [
{"role": "system", "content": "Kamu adalah asisten AI yang membantu dan ramah."},
{"role": "user", "content": "Jelaskan tentang fotosintesis"},
{"role": "assistant", "content": "Fotosintesis adalah proses di mana tumbuhan mengubah cahaya matahari menjadi energi kimia..."},
{"role": "user", "content": "Apa manfaatnya bagi manusia?"},
]
# Apply template
formatted = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
print(formatted)
# Output:
# System: Kamu adalah asisten AI yang membantu dan ramah.
#
# User: Jelaskan tentang fotosintesis
# Assistant: Fotosintesis adalah proses di mana tumbuhan...
# User: Apa manfaatnya bagi manusia?
# Assistant:
```
---
## ๐ฏ Use Cases
Model ini dirancang untuk berbagai aplikasi NLP setelah melalui proses training:
### Text Generation
- โ๏ธ Creative writing & storytelling
- ๐ฐ Article generation
- ๐ฌ Conversational AI
- ๐ Text completion
### Language Understanding
- ๐ Text classification
- ๐ท๏ธ Named Entity Recognition (NER)
- โ Question Answering
- ๐ Summarization
### Code Generation
- ๐ป Code completion
- ๐ Bug fixing suggestions
- ๐ Documentation generation
- ๐ Code translation
### Multilingual Tasks
- ๐ Translation (ID โ EN)
- ๐ฃ๏ธ Cross-lingual understanding
- ๐ Multilingual classification
---
## ๐ Benchmark & Evaluation
> โ ๏ธ Model belum melalui evaluasi karena status untrained
Setelah training, model akan dievaluasi pada:
### Indonesian Benchmarks
- **IndoNLU**: Comprehensive Indonesian NLU tasks
- **IndoQA**: Indonesian Question Answering
- **IndoSum**: Summarization
- **IndoNER**: Named Entity Recognition
### Multilingual Benchmarks
- **MMLU**: Massive Multitask Language Understanding
- **HellaSwag**: Common sense reasoning
- **ARC**: Science QA
- **TruthfulQA**: Truthfulness evaluation
### Generation Quality
- **Perplexity**: Language modeling quality
- **BLEU/ROUGE**: Translation & summarization
- **Human Evaluation**: Fluency, coherence, factuality
---
## ๐ ๏ธ Development & Training Tips
### Optimal Batch Size
```python
# Rule of thumb untuk 2.00M model
# GPU Memory โ Batch size per device
if gpu_memory >= 80: # A100 80GB
batch_size = 7995
gradient_accumulation = 1
elif gpu_memory >= 40: # A100 40GB
batch_size = 3997
gradient_accumulation = 1
elif gpu_memory >= 24: # RTX 3090/4090
batch_size = 1
gradient_accumulation = 1
# Effective batch size = batch_size ร gradient_accumulation ร num_gpus
```
### Learning Rate Scheduling
```python
# Recommended untuk 2.00M model
learning_rate = 0.0005 # Base LR
warmup_ratio = 0.05 # 5% of total steps
lr_scheduler = "cosine" # atau "linear"
# Learning rate scaling rule:
# LR โ sqrt(batch_size)
# Untuk batch size 256: LR = 0.0005
# Untuk batch size 512: LR = 7.07e-04
```
### Gradient Clipping
```python
# Prevent gradient explosion
max_grad_norm = 1.0 # Clip at 1.0
# Monitor gradients
from torch.nn.utils import clip_grad_norm_
grad_norm = clip_grad_norm_(model.parameters(), max_grad_norm)
if grad_norm > 10.0:
print(f"โ ๏ธ High gradient norm: {grad_norm:.2f}")
```
### Training Stability
```python
# Tips untuk stable training:
1. **Warmup**: Mulai dengan LR rendah
2. **Gradient Checkpointing**: Kurangi memory footprint
3. **Mixed Precision**: Gunakan BF16 jika tersedia (lebih stable dari FP16)
4. **Batch Size**: Start small, increase gradually
5. **Monitor**: Track loss, perplexity, gradient norms
```
---
## ๐ง Troubleshooting
### Out of Memory (OOM)
```python
# Solusi OOM saat training:
โ
1. Enable gradient checkpointing
model.gradient_checkpointing_enable()
โ
2. Reduce batch size
per_device_train_batch_size = 1
โ
3. Increase gradient accumulation
gradient_accumulation_steps = 32
โ
4. Use quantization
load_in_8bit = True # atau load_in_4bit
โ
5. Reduce sequence length
max_length = 512 # Start dengan ini
โ
6. CPU offloading (jika perlu)
device_map = "auto"
offload_folder = "offload"
```
### Slow Training
```python
# Optimasi kecepatan training:
โ
1. Flash Attention
config.use_flash_attn = True # 2-3x speedup
โ
2. Compile model (PyTorch 2.0+)
model = torch.compile(model, mode="reduce-overhead")
โ
3. DataLoader optimization
dataloader = DataLoader(
dataset,
batch_size=batch_size,
num_workers=4, # Parallel data loading
pin_memory=True, # Faster GPU transfer
prefetch_factor=2
)
โ
4. Mixed precision
use_fp16 = True # atau bf16
โ
5. Optimize communication (multi-GPU)
find_unused_parameters = False
gradient_as_bucket_view = True
```
### NaN Loss
```python
# Jika loss menjadi NaN:
โ
1. Reduce learning rate
learning_rate = learning_rate * 0.1
โ
2. Check gradient norms
clip_grad_norm_(model.parameters(), 1.0)
โ
3. Use BF16 instead of FP16
torch_dtype = torch.bfloat16 # Lebih stable
โ
4. Add epsilon to RMSNorm
rms_norm_eps = 1e-5 # Increase jika perlu
โ
5. Check data
# Pastikan tidak ada inf/nan di dataset
assert not torch.isnan(input_ids).any()
assert not torch.isinf(attention_mask).any()
```
---
### ๐ซ Prohibited Uses
<div style="background: #ffebee; border-left: 4px solid #f44336; padding: 12px; margin: 16px 0;">
Model ini **TIDAK BOLEH** digunakan untuk:
- ๐ซ **Harmful content generation** (violence, self-harm, illegal acts)
- ๐ซ **Misinformation/disinformation campaigns**
- ๐ซ **Harassment or hate speech**
- ๐ซ **Impersonation or identity theft**
- ๐ซ **Child safety violations** (CSAM, grooming, exploitation)
- ๐ซ **Privacy violations** (doxxing, stalking, surveillance abuse)
- ๐ซ **Malicious code generation** (malware, exploits, etc)
- ๐ซ **Spam or manipulation** (fake reviews, astroturfing)
- ๐ซ **Medical/legal advice** (tanpa disclaimer & expert review)
- ๐ซ **Financial fraud** (scams, market manipulation)
**Violation consequences:** Model access revocation + legal action jika applicable
</div>
---
## ๐ License & Citation
### ๐ License
<div style="background: #e8f5e9; border-left: 4px solid #4caf50; padding: 12px; margin: 16px 0;">
Model ini dirilis di bawah **Apache License 2.0**
โ
**Anda BEBAS untuk:**
- โ๏ธ Gunakan secara komersial
- โ๏ธ Modifikasi sesuka hati
- โ๏ธ Distribusi ulang
- โ๏ธ Patent use
- โ๏ธ Private use
โ ๏ธ **Dengan syarat:**
- ๐ Include license & copyright notice
- ๐ State changes yang dibuat
- ๐ Disclaimer of warranty
โ **Tanpa jaminan apapun** (use at your own risk)
</div>
**Full license text**: [Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0)
## ๐ Citation
Jika Anda menggunakan model ini dalam penelitian, mohon sitasi:
```bibtex
@misc{cacacaca2m,
author = {Lyon},
title = {Caca-caca-2M: Modern Transformer Architecture with Grouped Query Attention},
year = {2026},
publisher = {Hugging Face},
journal = {Hugging Face Model Hub},
howpublished = {\url{https://huggingface.co/Lyon28/caca-2M-untrained}},
note = {Untrained model with 2,001,216 parameters}
}
```
**APA Style:**
```
Lyon. (2026). Caca-caca-2M: Modern Transformer Architecture with Grouped
Query Attention [Untrained model]. Hugging Face.
https://huggingface.co/Lyon28/caca-2M-untrained
```
**MLA Style:**
```
Lyon. "Caca-caca-2M: Modern Transformer Architecture with Grouped Query Attention."
Hugging Face, 2026, huggingface.co/Lyon28/caca-2M-untrained.
```
---
### ๐ Acknowledgments
Model ini berdiri di pundak para raksasa! Terima kasih kepada:
<details>
<summary><b>๐๏ธ Klik untuk daftar lengkap acknowledgments</b></summary>
#### ๐๏ธ **Core Architecture**
- **LLaMA/LLaMA 2** (Meta AI, 2023) - Decoder-only architecture, RMSNorm, SwiGLU
- Paper: [LLaMA: Open and Efficient Foundation Language Models](https://arxiv.org/abs/2302.13971)
- Authors: Hugo Touvron et al.
- **GPT-3** (OpenAI, 2020) - Transformer language modeling paradigm
- **PaLM** (Google, 2022) - SwiGLU activation insights
#### ๐ฏ **Attention Mechanisms**
- **Flash Attention v2** (Tri Dao et al., Stanford, 2023)
- Paper: [FlashAttention-2: Faster Attention with Better Parallelism](https://arxiv.org/abs/2307.08691)
- 3x speedup dengan IO-aware algorithm
- **Grouped Query Attention** (Joshua Ainslie et al., Google, 2023)
- Paper: [GQA: Training Generalized Multi-Query Transformer](https://arxiv.org/abs/2305.13245)
- Memory-efficient KV cache
- **Multi-Query Attention** (Noam Shazeer, Google, 2019)
- Fast inference dengan shared K/V
- **xFormers** (Meta AI, 2022) - Memory efficient attention
- **PyTorch SDPA** (PyTorch Team, 2023) - Native attention optimization
#### ๐ **Position Encodings**
- **RoPE** (Jianlin Su et al., EleutherAI, 2021)
- Paper: [RoFormer: Enhanced Transformer with Rotary Position Embedding](https://arxiv.org/abs/2104.09864)
- Superior length extrapolation
- **ALiBI** (Ofir Press et al., 2022)
- Paper: [Train Short, Test Long: Attention with Linear Biases](https://arxiv.org/abs/2108.12409)
- Length generalization without retraining
- **YaRN** (Bowen Peng et al., 2023)
- Paper: [YaRN: Efficient Context Window Extension](https://arxiv.org/abs/2309.00071)
#### ๐ช **Long Context & Efficiency**
- **Sliding Window Attention** (Albert Gu et al., Mistral AI, 2023)
- Paper: [Mistral 7B](https://arxiv.org/abs/2310.06825)
- **StreamingLLM** (Guangxuan Xiao et al., MIT, 2023)
- Paper: [Efficient Streaming Language Models with Attention Sinks](https://arxiv.org/abs/2309.17453)
- Infinite sequence length!
- **Logit Softcapping** (Google Gemma Team, 2024)
- Paper: [Gemma: Open Models Based on Gemini](https://arxiv.org/abs/2403.08295)
#### ๐ง **Mixture of Experts**
- **Mixtral 8x7B** (Albert Jiang et al., Mistral AI, 2024)
- Paper: [Mixtral of Experts](https://arxiv.org/abs/2401.04088)
- State-of-the-art sparse MoE
- **Switch Transformers** (William Fedus et al., Google, 2021)
- Paper: [Switch Transformers: Scaling to Trillion Parameter Models](https://arxiv.org/abs/2101.03961)
- Expert scaling insights
- **GLaM** (Nan Du et al., Google, 2021) - Generalist Language Model
- **Expert Choice Routing** (Yanqi Zhou et al., Google, 2022)
- Better load balancing
#### ๐ **Training Optimizations**
- **Layer Scale** (Hugo Touvron et al., Meta, 2021)
- Paper: [Going Deeper with Image Transformers](https://arxiv.org/abs/2103.17239)
- Training stability untuk deep networks
- **Stochastic Depth** (Gao Huang et al., 2016)
- Paper: [Deep Networks with Stochastic Depth](https://arxiv.org/abs/1603.09382)
- **Mixture of Depths** (David Raposo et al., DeepMind, 2024)
- Paper: [Mixture-of-Depths: Dynamically allocating compute](https://arxiv.org/abs/2404.02258)
- Dynamic compute allocation
- **Gradient Checkpointing** (Tianqi Chen et al., 2016)
#### ๐ฆ **Quantization**
- **LLM.int8()** (Tim Dettmers et al., 2022)
- Paper: [LLM.int8(): 8-bit Matrix Multiplication for Transformers](https://arxiv.org/abs/2208.07339)
- **QLoRA** (Tim Dettmers et al., 2023)
- Paper: [QLoRA: Efficient Finetuning of Quantized LLMs](https://arxiv.org/abs/2305.14314)
- 4-bit efficient fine-tuning
- **bitsandbytes** (Tim Dettmers) - Quantization library
#### ๐จ **Multimodal**
- **Vision Transformer** (Alexey Dosovitskiy et al., Google, 2020)
- Paper: [An Image is Worth 16x16 Words](https://arxiv.org/abs/2010.11929)
- **Flamingo** (Jean-Baptiste Alayrac et al., DeepMind, 2022)
- Paper: [Flamingo: a Visual Language Model](https://arxiv.org/abs/2204.14198)
- Perceiver Resampler
- **BLIP-2** (Junnan Li et al., Salesforce, 2023)
- Paper: [BLIP-2: Bootstrapping Language-Image Pre-training](https://arxiv.org/abs/2301.12597)
- Q-Former architecture
- **Whisper** (Alec Radford et al., OpenAI, 2022) - Audio encoding
#### ๐ ๏ธ **Normalization & Activations**
- **RMSNorm** (Biao Zhang, Rico Sennrich, 2019)
- Paper: [Root Mean Square Layer Normalization](https://arxiv.org/abs/1910.07467)
- **SwiGLU** (Noam Shazeer, Google, 2020)
- Paper: [GLU Variants Improve Transformer](https://arxiv.org/abs/2002.05202)
#### ๐ง **Tools & Frameworks**
- **๐ค Hugging Face** - Transformers, Accelerate, PEFT
- Making NLP accessible to everyone
- **PyTorch** - Deep learning framework
- Facebook AI Research team
- **Safetensors** - Secure serialization
- Hugging Face team
- **DeepSpeed** - Distributed training
- Microsoft Research
- **Flash Attention Implementation** - Tri Dao & team
#### ๐ฎ๐ฉ **Indonesian NLP Community**
Special thanks to Indonesian NLP researchers & practitioners yang telah membangun foundation untuk Indonesian language AI.
</details>
---
## ๐ License
Model ini dirilis di bawah **Apache License 2.0**.
### Ketentuan Penggunaan:
- โ
**Bebas digunakan** untuk keperluan komersial dan non-komersial
- โ
**Modifikasi** diperbolehkan
- โ
**Distribusi** diperbolehkan dengan attribution
- โ ๏ธ **No Warranty** - model disediakan "as is"
- ๐ **Attribution Required** - sertakan copyright notice
Lihat [LICENSE](LICENSE) untuk detail lengkap.
---
## ๐ค Contributing
Kami sangat terbuka untuk kontribusi! Berikut cara Anda bisa berkontribusi:
### Training & Fine-tuning
- ๐ Train model ini dengan dataset Anda
- ๐ Share benchmark results
- ๐ฌ Experiment dengan hyperparameters
### Code & Architecture
- ๐ Report bugs atau issues
- ๐ก Suggest improvements
- ๐ง Submit pull requests
### Documentation
- ๐ Improve documentation
- ๐ Add translations
- โ๏ธ Write tutorials & guides
### Dataset & Evaluation
- ๐ Contribute training data
- ๐งช Create evaluation benchmarks
- ๐ฏ Share fine-tuned versions
---
## ๐ฅ Team & Acknowledgments
### Core Team
- **LyonPoy** - Architecture design & implementation
### Special Thanks
- ๐ค **Hugging Face** - Infrastructure & community
- โก **FlashAttention Team** - Efficient attention implementation
- ๐ง **Anthropic, Google, Meta** - Research inspirations
### Community
Terima kasih kepada komunitas open-source yang telah berkontribusi pada:
- Transformers library
- PyTorch framework
- Datasets & evaluation tools
---
## ๐ Contact & Support
### Community
- ๐ฌ [Discussions](https://huggingface.co/Lyon28/caca-2M-untrained/discussions) - Ask questions
- ๐ [Issues](https://github.com/lyon28/caca-transformers/issues) - Report bugs
- ๐ง Email : cacatransformers@gmail.com
---
## ๐ Star History
<div align="center">
[](https://star-history.com/#Lyon-28/caca-transformers&Date)
</div>
## ๐ Dibuat dengan โค๏ธ untuk Komunitas AI Indonesia
<img src="https://i.postimg.cc/MTSj073X/logo.png" width="200" alt="Caca Logo"/>
### **Terima kasih telah menggunakan Caca!**
Jika model ini berguna, jangan lupa โญ repository kami!
<div align="center">
<table>
<tr>
<td align="center">โญ<br/><b>Star Repo</b><br/><sub>Show your support</sub></td>
<td align="center">๐<br/><b>Share</b><br/><sub>Tell your friends</sub></td>
<td align="center">๐ฌ<br/><b>Join Discussion</b><br/><sub>Ask questions</sub></td>
<td align="center">๐ค<br/><b>Contribute</b><br/><sub>Make it better</sub></td>
</tr>
</table>
### ๐ Happy Training! ๐
**Model ini menunggu untuk dilatih dan menjadi foundation untuk aplikasi AI Anda.**
[๐ฅ Download Model](#) โข [๐ Read Docs](https://caca-transformers.ai) โข [๐ฌ Join Community](https://discord.gg/cacatransformers)
</div>
---
### ๐ Model Statistics
<img src="https://img.shields.io/badge/Parameters-2.00M-blue?style=for-the-badge" alt="Parameters"/>
<img src="https://img.shields.io/badge/Status-Untrained-orange?style=for-the-badge" alt="Status"/>
<img src="https://img.shields.io/badge/License-Apache%202.0-green?style=for-the-badge" alt="License"/>
<img src="https://img.shields.io/badge/Architecture-Transformer-purple?style=for-the-badge" alt="Architecture"/>
<img src="https://img.shields.io/badge/Type-Causal%20LM-red?style=for-the-badge" alt="Type"/>
<img src="https://img.shields.io/badge/Context-512%20tokens-cyan?style=for-the-badge" alt="Context"/>
---
### ๐จ Daily Inspiration
<div align="center">
<img src="https://quotes-caca.vercel.app/api/SsQuote" alt="Daily Quote" width="600" />
</div>
---
### ๐ Quick Stats
| Metric | Value |
|--------|-------|
| ๐ Total Parameters | 2,001,216 |
| ๐๏ธ Layers | 7 |
| ๐ฏ Attention Heads | 4 |
| ๐ Max Context | 512 tokens |
| ๐พ Size (FP16) | 0.00 GB |
| ๐พ Size (INT4) | 0.00 GB |
---
<sub>
Model ini adalah bagian dari <b>Caca Project</b> - Open source initiative untuk membangun Indonesian LLM ecosystem.<br/>
Created with ๐ป by <a href="https://huggingface.co/Lyon28">@Lyon28</a> |
Licensed under <a href="https://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a> |
Built with <a href="https://huggingface.co">๐ค HuggingFace</a>
</sub>
<br/><br/>
**๐ "Dari nol, untuk semua" ๐**
<sub>Last updated: january 2026</sub>
</div>
---
<div align="center">
<sub>Built with โค๏ธ by Caca Transformers Team</sub><br>
<sub>Powered by ๐ค Transformers โข โก PyTorch โข ๐ฅ Flash Attention</sub>
</div>
|