Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -2,23 +2,36 @@
|
|
| 2 |
language: en
|
| 3 |
tags:
|
| 4 |
- tiny
|
| 5 |
-
-
|
| 6 |
-
-
|
| 7 |
-
-
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
# Lumia Tiny (
|
| 11 |
|
| 12 |
-
Custom PyTorch
|
| 13 |
|
| 14 |
## Architecture
|
| 15 |
-
-
|
| 16 |
-
-
|
| 17 |
-
-
|
| 18 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
## Usage
|
| 21 |
```python
|
| 22 |
-
from
|
| 23 |
-
model =
|
| 24 |
```
|
|
|
|
| 2 |
language: en
|
| 3 |
tags:
|
| 4 |
- tiny
|
| 5 |
+
- pct-v3
|
| 6 |
+
- rpw
|
| 7 |
+
- gpp
|
| 8 |
+
- vcr
|
| 9 |
---
|
| 10 |
|
| 11 |
+
# Lumia Tiny (PCT-V3)
|
| 12 |
|
| 13 |
+
Custom PyTorch LM ~969K params. Arsitektur dari first principles.
|
| 14 |
|
| 15 |
## Architecture
|
| 16 |
+
- **RPW** — Relative Positional Warp (learned Fourier additive bias)
|
| 17 |
+
- **GQA** — 8 query / 4 KV heads
|
| 18 |
+
- **GPP** — Gated Principal Projection (96-dim bottleneck)
|
| 19 |
+
- **VCR** — Variance-Controlled Residual (R² gating)
|
| 20 |
+
- **ECI** — Entropy-Calibrated Initialization
|
| 21 |
+
- Vocab: 4096, RMSNorm, tied embeddings, 6 layers
|
| 22 |
+
|
| 23 |
+
## Files
|
| 24 |
+
| File | Description |
|
| 25 |
+
|---|---|
|
| 26 |
+
| `model_tiny.py` | Arsitektur PCT-V3 (RPW, GQA, GPP, VCR, TinyModel) |
|
| 27 |
+
| `train_tiny.py` | Training loop (IterableDataset, cosine LR, checkpoint) |
|
| 28 |
+
| `train_tiny.yaml` | Konfigurasi training (LR 3e-4, batch 8, GA 4, 50k steps) |
|
| 29 |
+
| `config.json` | HF config auto-map untuk TinyModel |
|
| 30 |
+
| `tokenizer.json` | BPE tokenizer 4096 vocab |
|
| 31 |
+
| `gen_tokenizer.py` | Generator tokenizer |
|
| 32 |
|
| 33 |
## Usage
|
| 34 |
```python
|
| 35 |
+
from model_tiny import create_model
|
| 36 |
+
model = create_model() # PCT-V3 defaults
|
| 37 |
```
|