Lyon28 / caca-500M-untrained

huggingface.co
Total runs: 13
24-hour runs: -2
7-day runs: -3
30-day runs: -6
Model's Last Updated: July 19 2026
text-generation

Introduction of caca-500M-untrained

Model Details of caca-500M-untrained

caca-AI
Daily Quote

๐Ÿš€ CACA-500M - Untrained Model

Size : 654.4M parameters Status : ๐ŸŸก Untrained (random weights)

Status License Python PyTorch

Model Transformer Canggih dengan Fitur-Fitur Modern

Dokumentasi โ€ข Instalasi โ€ข Penggunaan โ€ข Arsitektur


๐Ÿ“‹ Deskripsi

Caca adalah arsitektur Large Language Model (LLM) modern yang menggabungkan teknik-teknik terkini dalam deep learning. Model ini didesain dengan fleksibilitas tinggi dan mendukung berbagai fitur advanced seperti Mixture of Experts, Multimodal Processing, dan optimisasi performa tingkat lanjut.

โš ๏ธ PENTING : Ini adalah model yang belum dilatih (untrained). Model ini hanya berisi arsitektur dan bobot acak. Anda perlu melatih model ini terlebih dahulu sebelum digunakan untuk inferensi.

โœจ Fitur Utama
๐ŸŽฏ Core Features
  • โœ… Grouped Query Attention (GQA) - Efisiensi memori dan komputasi lebih baik
  • โœ… Flash Attention - Akselerasi hingga 3x lebih cepat
  • โœ… Rotary Position Embeddings (RoPE) - Generalisasi panjang konteks lebih baik
  • โœ… RMSNorm - Normalisasi lebih stabil dan cepat
  • โœ… SwiGLU Activation - Performa lebih baik dari ReLU/GELU
๐Ÿ”ฅ Advanced Features
  • ๐Ÿง  Mixture of Experts (MoE) - Skalabilitas model dengan efisiensi tinggi
  • ๐ŸชŸ Sliding Window Attention - Efisiensi untuk konteks panjang
  • ๐ŸŒŠ Attention Sink (StreamingLLM) - Inferensi stream untuk konteks unlimited
  • ๐ŸŽจ Multimodal Support - Vision + Audio processing
  • ๐Ÿ“Š Mixture of Depths - Dynamic compute allocation per token
  • โšก Cross Attention - Untuk encoder-decoder tasks
๐Ÿ› ๏ธ Optimization Features
  • ๐Ÿ’พ KV Cache - Generasi lebih cepat
  • ๐Ÿ”ง Gradient Checkpointing - Training model besar dengan memory terbatas
  • ๐Ÿ“ฆ 4-bit/8-bit Quantization - Deploy model besar di hardware terbatas
  • ๐ŸŽฏ Layer Scale & Stochastic Depth - Training stability yang lebih baik
๐Ÿ“Š Spesifikasi Model
Parameter Value
Parameters 654,448,128 (654.4M)
Hidden Size 1,280
Layers 26
Attention Heads 20
KV Heads 4 (GQA)
Vocab Size 32,000
Context Length 8,192
Architecture Decoder-only
โœจ Features
  • โšก Flash Attention : 3x faster inference
๐Ÿ”ง Instalasi
Requirements
# Requirements dasar
pip install torch>=2.0.0
pip install transformers>=4.35.0
pip install accelerate
pip install safetensors

# Optional (untuk performa maksimal)
pip install flash-attn  # Flash Attention
pip install xformers    # Memory efficient attention
pip install bitsandbytes  # Quantization
๐Ÿ’ป Penggunaan
1. Load Model (Untrained)
from transformers import AutoModelForCausalLM, AutoConfig
import torch

# Load configuration
config = AutoConfig.from_pretrained("Lyon28/caca-500M-untrained")
print(f"Hidden size: {config.hidden_size}")
print(f"Num layers: {config.num_hidden_layers}")

# Load model
model = AutoModelForCausalLM.from_pretrained(
    "Lyon28/caca-500M-untrained",
    torch_dtype=torch.bfloat16,
    device_map="auto"
)

# Cek jumlah parameter
total_params = sum(p.numel() for p in model.parameters())
print(f"Total parameters: {total_params:,}")
2. Kustomisasi Konfigurasi
from transformers import AutoConfig, AutoModelForCausalLM

# Load base config
config = AutoConfig.from_pretrained("Lyon28/caca-500M-untrained")

# Modifikasi config
config.use_moe = True  # Aktifkan MoE
config.num_experts = 16  # 16 experts
config.sliding_window = 1024  # Sliding window attention
config.use_flash_attn = True  # Flash attention

# Create model dengan config custom
model = AutoModelForCausalLM.from_config(config)
3. Training (Contoh Sederhana)
from transformers import Trainer, TrainingArguments
from datasets import load_dataset

# Load dataset
dataset = load_dataset("your-dataset")

# Training arguments
training_args = TrainingArguments(
    output_dir="./caca-finetuned",
    num_train_epochs=3,
    per_device_train_batch_size=4,
    gradient_accumulation_steps=8,
    learning_rate=2e-4,
    bf16=True,
    gradient_checkpointing=True,
    logging_steps=10,
    save_steps=500,
)

# Trainer
trainer = Trainer(
    model=model,
    args=training_args,
    train_dataset=dataset["train"],
    eval_dataset=dataset["validation"],
)

# Train!
trainer.train()
๐Ÿ—๏ธ Arsitektur Detail
Struktur Model
CacaForCausalLM
โ”œโ”€โ”€ CacaModel
โ”‚   โ”œโ”€โ”€ Embedding Layer (32,000 vocab)
โ”‚   โ”œโ”€โ”€ 26x CacaDecoderLayer
โ”‚   โ”‚   โ”œโ”€โ”€ Self Attention (GQA)
โ”‚   โ”‚   โ”œโ”€โ”€ [Optional] Cross Attention
โ”‚   โ”‚   โ”œโ”€โ”€ MLP / MoE
โ”‚   โ”‚   โ””โ”€โ”€ Residual Connections
โ”‚   โ””โ”€โ”€ Final LayerNorm
โ””โ”€โ”€ LM Head
Grouped Query Attention (GQA)
Q heads: 20
KV heads: 4
Ratio: 5:1

Benefits:
- 75% smaller KV cache
- 1.5-2x faster inference
- Nearly identical quality to MHA
๐ŸŽฏ Use Cases
1. Text Generation
  • Chatbot dan conversational AI
  • Content generation (artikel, cerita, kode)
  • Text summarization
  • Translation
2. Multimodal Tasks (jika diaktifkan)
  • Image captioning
  • Visual question answering (VQA)
  • Audio transcription + understanding
3. Long Context Tasks
  • Document understanding
  • Code completion dengan repository context
  • Long-form content analysis
โš ๏ธ Limitations
  1. Untrained Model : Model ini belum dilatih, output adalah random
  2. Resource Intensive : Training membutuhkan GPU dengan memory besar
  3. No Tokenizer : Anda perlu prepare tokenizer sendiri
  4. Experimental : Beberapa fitur masih dalam tahap eksperimen
๐Ÿ“Œ Citation

Jika Anda menggunakan arsitektur Caca dalam penelitian atau project, kami sangat menghargai jika Anda cite:

@misc{caca2025,
  author = {Lyon},
  title = {Caca: Modern Transformer Architecture with GQA, RoPE, and SwiGLU},
  year = {2025},
  publisher = {Hugging Face},
  howpublished = {\url{https://huggingface.co/Lyon28/caca-500m}},
  note = {Apache License 2.0}
}
๐Ÿ“„ License

Apache License 2.0

๐Ÿ™ Acknowledgments

Terinspirasi dari:

  • LLaMA (Meta): Base architecture
  • Mistral : Sliding Window Attention
  • Mixtral : Mixture of Experts
  • Flash Attention : Efficient attention

Dibuat dengan โค๏ธ untuk komunitas AI Indonesia

โญ Star jika bermanfaat!

Runs of Lyon28 caca-500M-untrained on huggingface.co

13
Total runs
-2
24-hour runs
-3
3-day runs
-3
7-day runs
-6
30-day runs

More Information About caca-500M-untrained huggingface.co Model

More caca-500M-untrained license Visit here:

https://choosealicense.com/licenses/apache-2.0

caca-500M-untrained huggingface.co

caca-500M-untrained huggingface.co is an AI model on huggingface.co that provides caca-500M-untrained's model effect (), which can be used instantly with this Lyon28 caca-500M-untrained model. huggingface.co supports a free trial of the caca-500M-untrained model, and also provides paid use of the caca-500M-untrained. Support call caca-500M-untrained model through api, including Node.js, Python, http.

caca-500M-untrained huggingface.co Url

https://huggingface.co/Lyon28/caca-500M-untrained

Lyon28 caca-500M-untrained online free

caca-500M-untrained huggingface.co is an online trial and call api platform, which integrates caca-500M-untrained's modeling effects, including api services, and provides a free online trial of caca-500M-untrained, you can try caca-500M-untrained online for free by clicking the link below.

Lyon28 caca-500M-untrained online free url in huggingface.co:

https://huggingface.co/Lyon28/caca-500M-untrained

caca-500M-untrained install

caca-500M-untrained is an open source model from GitHub that offers a free installation service, and any user can find caca-500M-untrained on GitHub to install. At the same time, huggingface.co provides the effect of caca-500M-untrained install, users can directly use caca-500M-untrained installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

caca-500M-untrained install url in huggingface.co:

https://huggingface.co/Lyon28/caca-500M-untrained

Url of caca-500M-untrained

caca-500M-untrained huggingface.co Url

Provider of caca-500M-untrained huggingface.co

Lyon28
ORGANIZATIONS

Other API from Lyon28

huggingface.co

Total runs: 449
Run Growth: 449
Growth Rate: 100.00%
Updated:December 11 2025
huggingface.co

Total runs: 255
Run Growth: 255
Growth Rate: 100.00%
Updated:December 11 2025
huggingface.co

Total runs: 202
Run Growth: 202
Growth Rate: 100.00%
Updated:December 11 2025
huggingface.co

Total runs: 125
Run Growth: 125
Growth Rate: 100.00%
Updated:December 09 2025
huggingface.co

Total runs: 123
Run Growth: 123
Growth Rate: 100.00%
Updated:December 09 2025
huggingface.co

Total runs: 40
Run Growth: 40
Growth Rate: 100.00%
Updated:December 09 2025
huggingface.co

Total runs: 27
Run Growth: 27
Growth Rate: 100.00%
Updated:December 09 2025
huggingface.co

Total runs: 8
Run Growth: 0
Growth Rate: 0.00%
Updated:July 08 2025
huggingface.co

Total runs: 7
Run Growth: -2
Growth Rate: -28.57%
Updated:July 11 2025
huggingface.co

Total runs: 6
Run Growth: -10
Growth Rate: -166.67%
Updated:August 14 2025
huggingface.co

Total runs: 6
Run Growth: -7
Growth Rate: -116.67%
Updated:August 12 2025
huggingface.co

Total runs: 6
Run Growth: 3
Growth Rate: 50.00%
Updated:July 01 2025
huggingface.co

Total runs: 5
Run Growth: 5
Growth Rate: 100.00%
Updated:May 19 2025
huggingface.co

Total runs: 5
Run Growth: 2
Growth Rate: 40.00%
Updated:January 06 2026
huggingface.co

Total runs: 2
Run Growth: 2
Growth Rate: 100.00%
Updated:May 19 2025
huggingface.co

Total runs: 1
Run Growth: -2
Growth Rate: -200.00%
Updated:June 28 2025
huggingface.co

Total runs: 1
Run Growth: -2
Growth Rate: -200.00%
Updated:July 01 2025
huggingface.co

Total runs: 1
Run Growth: 1
Growth Rate: 100.00%
Updated:May 19 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 05 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 26 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 03 2025