Audit fix: Update docs/KAGGLE_RUN.md for ViuMini-Dense-360M
Browse files- docs/KAGGLE_RUN.md +8 -8
docs/KAGGLE_RUN.md
CHANGED
|
@@ -58,9 +58,9 @@ subprocess.run([sys.executable, "-m", "pip", "install", "-q", "bitsandbytes>=0.4
|
|
| 58 |
print("[3/5] Verifying 32-layer Dense Architecture...")
|
| 59 |
sys.path.insert(0, os.path.join(REPO_DIR, "model", "scripts"))
|
| 60 |
import torch
|
| 61 |
-
import
|
| 62 |
|
| 63 |
-
mcfg =
|
| 64 |
dim=960,
|
| 65 |
n_layers=32,
|
| 66 |
n_heads=15,
|
|
@@ -71,7 +71,7 @@ mcfg = viu_moe.ViuArgs(
|
|
| 71 |
tie_embeddings=True,
|
| 72 |
qk_norm=True
|
| 73 |
)
|
| 74 |
-
test_model =
|
| 75 |
pcount = sum(p.numel() for p in test_model.parameters())
|
| 76 |
print(f"[arch] ViuMini-Dense-360M parameter count: {pcount:,} (~366.6M)")
|
| 77 |
del test_model
|
|
@@ -134,17 +134,17 @@ else:
|
|
| 134 |
| Metric | Target / Expected Value |
|
| 135 |
|---|---|
|
| 136 |
| **GPUs** | 2× NVIDIA Tesla T4 (16GB GDDR6 each) |
|
| 137 |
-
| **
|
| 138 |
-
| **Gradient Accumulation** | 16 passes |
|
| 139 |
-
| **Effective Batch
|
| 140 |
| **Training Speed** | **~8,500 – 10,000 tokens/sec** |
|
| 141 |
| **VRAM Usage** | **~3.4 GB / 16 GB** per GPU (12.6 GB free headroom) |
|
| 142 |
| **Optimizer** | `PagedAdamW8bit` (learning rate: $2.5 \times 10^{-4}$, warmup: 1,000) |
|
| 143 |
| **Gradient Clipping** | 1.0 |
|
| 144 |
-
| **Initial Loss** | $\approx 10.78$ ($\ln(48,000)$ theoretical
|
| 145 |
| **Loss at Step 1,000** | $\approx 6.8 – 7.2$ |
|
| 146 |
| **Loss at Step 5,000** | $\approx 4.8 – 5.2$ |
|
| 147 |
-
| **Checkpoints & HF Sync** | Every **1,000 steps** (~
|
| 148 |
|
| 149 |
---
|
| 150 |
|
|
|
|
| 58 |
print("[3/5] Verifying 32-layer Dense Architecture...")
|
| 59 |
sys.path.insert(0, os.path.join(REPO_DIR, "model", "scripts"))
|
| 60 |
import torch
|
| 61 |
+
import viu1_moe
|
| 62 |
|
| 63 |
+
mcfg = viu1_moe.ViuArgs(
|
| 64 |
dim=960,
|
| 65 |
n_layers=32,
|
| 66 |
n_heads=15,
|
|
|
|
| 71 |
tie_embeddings=True,
|
| 72 |
qk_norm=True
|
| 73 |
)
|
| 74 |
+
test_model = viu1_moe.Viu1MoE(mcfg)
|
| 75 |
pcount = sum(p.numel() for p in test_model.parameters())
|
| 76 |
print(f"[arch] ViuMini-Dense-360M parameter count: {pcount:,} (~366.6M)")
|
| 77 |
del test_model
|
|
|
|
| 134 |
| Metric | Target / Expected Value |
|
| 135 |
|---|---|
|
| 136 |
| **GPUs** | 2× NVIDIA Tesla T4 (16GB GDDR6 each) |
|
| 137 |
+
| **Curriculum Batching** | Stage 1 (seq 512, micro 8) $\rightarrow$ Stage 2 (seq 1024, micro 4) $\rightarrow$ Stage 3 (seq 2048, micro 2) |
|
| 138 |
+
| **Gradient Accumulation** | 8 passes per GPU (effective 16 passes) |
|
| 139 |
+
| **Effective Batch Tokens**| Constant **65,536 tokens / step** across all 3 curriculum stages |
|
| 140 |
| **Training Speed** | **~8,500 – 10,000 tokens/sec** |
|
| 141 |
| **VRAM Usage** | **~3.4 GB / 16 GB** per GPU (12.6 GB free headroom) |
|
| 142 |
| **Optimizer** | `PagedAdamW8bit` (learning rate: $2.5 \times 10^{-4}$, warmup: 1,000) |
|
| 143 |
| **Gradient Clipping** | 1.0 |
|
| 144 |
+
| **Initial Loss** | $\approx 10.78$ ($\ln(48,000)$ theoretical uniform cross-entropy) |
|
| 145 |
| **Loss at Step 1,000** | $\approx 6.8 – 7.2$ |
|
| 146 |
| **Loss at Step 5,000** | $\approx 4.8 – 5.2$ |
|
| 147 |
+
| **Checkpoints & HF Sync** | Every **1,000 steps** (~2.14 hours / ~65.5M tokens) pushed directly to Hub |
|
| 148 |
|
| 149 |
---
|
| 150 |
|