--- license: apache-2.0 library_name: transformers language: - en tags: - text-generation - roblox - luau - coder - on-device pipeline_tag: text-generation --- # Kai 2.0 - 0.6B (Base) 🌊 ## 1. Model Introduction Kai 2.0 is an open-weight base model for Luau and Roblox code. It is the mid-sized model in the LuauCoder 2.0 family (Moana 2B, Kai 0.6B, Nalu 0.3B). It is a dense decoder with 28 layers and 643M parameters trained on 63B tokens. This is a base model with no chat template, so it continues raw text rather than following instructions. Prompt it with the start of the code you want. ## 2. Model Summary
| Architecture | Dense decoder |
| Total Parameters | 643M |
| Non-Embedding Parameters | 596M |
| Number of Layers | 28 |
| Attention-Layer Composition | 21 RoPE + 7 NoPE |
| Attention Mechanism | CCVHA + DiffAttn V2 + XSA |
| Hidden Dimension | 1408 |
| Number of Query Heads | 20 (10 computed) |
| Number of KV Heads | 2 |
| Number of Output Heads | 10 |
| Head Dimension | 128 |
| Convolution Taps | 2 depthwise + 2 per head |
| Head Postmix Rank | 2 |
| Residual Connections | Block AttnRes (7 blocks of 4 layers) |
| Feed-Forward Hidden Dimension | 3840 |
| Activation Function | SwiGLU |
| Normalization | RMSNorm, QK-Norm |
| RoPE Theta | 500,000 |
| Vocabulary Size | 32768 |
| Embeddings | Tied |
| Logit Soft Cap | ±30 |
| Modality | Text |
| Context Window | 65,536 |