Skip to content

Navigation Menu

Sign in
Sign up

SlimPajama Agent Run Mar 20 2026

Dave Graham edited this page Mar 20, 2026 · 1 revision

SlimPajama Autonomous Agent Run — Mar 20, 2026 (M5 Max)

Overview

Autonomous experiment run on SlimPajama — a deduplicated, cleaned version of RedPajama (627B tokens from CommonCrawl, C4, GitHub, Wikipedia, Books, ArXiv, StackExchange). The agent ran 101 experiments on the Apple M5 Max (64 GB).

Starting from a pre-optimized baseline (AR=32, EMBEDDING_LR=0.4, SCALAR_LR=0.4 from prior branch runs), the agent found only 1.0% improvement — all from reducing DEVICE_BATCH_SIZE to maximize gradient steps. 97 subsequent hyperparameter experiments were all discarded.

Hardware

Spec Value
Chip Apple M5 Max
Unified Memory 64 GB
GPU Cores 40
Backend MLX
Time Budget 5 minutes per experiment

Summary Statistics

Metric Value
Total Experiments 101 (exp0–exp100)
Kept 3 (3.0%)
Discarded 97 (96.0%)
Crashed 0 (0.0%)
Best val_bpb 1.5259 (exp3)
Baseline val_bpb 1.5413 (pre-optimized)
Total Improvement −0.0154 (1.0%)
LLM Backend Claude Sonnet
Branch autoresearch/mar20-slimpajama

Cumulative Improvements (Kept Experiments)

Exp val_bpb Delta Description Key Change
exp0 1.5413 Baseline (pre-optimized: AR=32, EMBED_LR=0.4, SCALAR_LR=0.4) Starting point
exp1 1.5374 −0.0039 Decrease DEVICE_BATCH_SIZE to 4 More gradient steps
exp2 1.5268 −0.0106 Decrease DEVICE_BATCH_SIZE to 2 Even more steps
exp3 1.5259 −0.0009 Decrease DEVICE_BATCH_SIZE to 1 Maximum gradient steps

Best Configuration

×ばつ throughput DEPTH = 8 # Standard depth for M5 Max # Optimization (unchanged from pre-optimized baseline) MATRIX_LR = 0.0435 EMBEDDING_LR = 0.4 UNEMBEDDING_LR = 0.0033 SCALAR_LR = 0.4 WEIGHT_DECAY = 0.15 WARMDOWN_RATIO = 0.5 # Key finding DEVICE_BATCH_SIZE = 1 # Only change that mattered # Performance # mem: 13.7 GB | tok/sec: 54,593 | MFU: 16.9% | steps: 501">
# Architecture (pre-optimized from prior runs)
ASPECT_RATIO = 32 # Half model width, ×ばつ throughput
DEPTH = 8 # Standard depth for M5 Max
# Optimization (unchanged from pre-optimized baseline)
MATRIX_LR = 0.0435
EMBEDDING_LR = 0.4
UNEMBEDDING_LR = 0.0033
SCALAR_LR = 0.4
WEIGHT_DECAY = 0.15
WARMDOWN_RATIO = 0.5
# Key finding
DEVICE_BATCH_SIZE = 1 # Only change that mattered
# Performance
# mem: 13.7 GB | tok/sec: 54,593 | MFU: 16.9% | steps: 501

Analysis

Batch Size is the Only Lever

This is the cleanest result of any dataset run. The agent found the optimal configuration in just 3 experiments — all DEVICE_BATCH_SIZE reductions — then spent 97 more experiments confirming nothing else improves performance.

Experiment Phase Experiments Outcome
Batch size sweep (exp1–3) 3 All 3 kept
Learning rates (exp4–7, 12–14, 17–18, 22–23, 37–44, 48–56, 58–69, 73–77, 80, 83) 48 All discarded
Weight decay (exp8, 24, 28, 84–95) 15 All discarded
Schedule params (exp9–10, 16, 33, 47, 96) 6 All discarded
Architecture (exp11, 15, 19–21, 26–27, 32, 51, 57, 71) 10 All discarded
Adam betas (exp14, 30, 97–100) 5 All discarded

Near-Misses That Didn't Clear the Bar

Several experiments came close to but couldn't beat exp3's 1.5259:

Exp val_bpb Change Gap from best
exp75 1.5309 MATRIX_LR → 0.04352 +0.0050
exp84 1.5304 WEIGHT_DECAY → 0.12 +0.0045
exp89 1.5289 WEIGHT_DECAY → 0.135 +0.0030
exp88 1.5313 WEIGHT_DECAY → 0.14 +0.0054
exp58 1.5332 MATRIX_LR → 0.0438 +0.0073

Weight decay around 0.135 and MATRIX_LR around 0.04352 showed tantalizing signal but couldn't overcome the noise floor.

EMBEDDING_LR: The Curious Climb

The agent systematically swept EMBEDDING_LR from 0.3 to 1.0:

EMBEDDING_LR val_bpb vs baseline
0.30 1.5478 worse
0.39 1.5354 worse
0.40 1.5259 best (default)
0.42 1.5486 worse
0.50 1.5959 much worse
0.60 1.5363 worse
0.65 1.5441 worse
0.70 1.5370 worse
0.75 1.5733 worse
0.80 1.5342 close
0.85 1.5964 worse
0.90 1.5423 worse
1.00 1.5705 much worse

The current 0.4 is at the exact optimum. Higher values showed a non-monotonic pattern with a curious secondary dip around 0.8 — interesting but not actionable.

MATRIX_LR Micro-Optimization (Again)

Like Cosmopedia-v2, the agent fell into fine-grained MATRIX_LR search, testing 0.041–0.05 plus ultra-fine steps around 0.0431–0.04354:

  • 20+ experiments on MATRIX_LR perturbations
  • Best near-miss: exp75 at 0.04352 (1.5309) — 0.3% worse than baseline
  • The parameter is at a sharp local optimum at 0.0435

Zero Crashes

SlimPajama is the only dataset to complete a full run with zero crashes. The agent never attempted extreme configurations that would cause OOM or NaN — the pre-optimized baseline's stability may have discouraged risky experiments.

Comparison to Other Datasets

SlimPajama's best configuration is identical to Cosmopedia-v2's optimal config:

Parameter SlimPajama Cosmopedia-v2 Climbmix FineWeb-Edu
ASPECT_RATIO 32 32 32 32
MATRIX_LR 0.0435 0.0435 0.0435 0.053
EMBEDDING_LR 0.4 0.4 0.4 0.59
SCALAR_LR 0.4 0.4 0.4 0.3
UNEMBEDDING_LR 0.0033 0.0033 0.0041 0.003
WEIGHT_DECAY 0.15 0.15 0.2 0.12
WARMDOWN_RATIO 0.5 0.5 0.5 0.47

Three out of four datasets converge to the exact same configuration. Only FineWeb-Edu diverges. This strongly suggests the shared config is hardware-optimal, not dataset-optimal.

Full Experiment Log

All 101 experiments (click to expand)
Exp val_bpb Status Description
exp0 1.5413 baseline Baseline (no modifications)
exp1 1.5374 keep Decrease DEVICE_BATCH_SIZE to 4
exp2 1.5268 keep Decrease DEVICE_BATCH_SIZE to 2
exp3 1.5259 keep Decrease DEVICE_BATCH_SIZE to 1
exp4 1.5265 discard Increase MATRIX_LR to 0.05
exp5 1.5570 discard Decrease MATRIX_LR to 0.04
exp6 1.5385 discard Increase SCALAR_LR to 0.5
exp7 1.5401 discard Decrease EMBEDDING_LR to 0.35
exp8 1.5436 discard Decrease WEIGHT_DECAY to 0.1
exp9 1.5536 discard Increase WARMUP_RATIO to 0.05
exp10 1.5476 discard Increase WARMDOWN_RATIO to 0.6
exp11 1.6017 discard Increase DEPTH
exp12 1.5460 discard Increase EMBEDDING_LR to 0.45
exp13 1.5436 discard Decrease UNEMBEDDING_LR to 0.003
exp14 1.5421 discard Increase ADAM_BETAS to (0.85, 0.95)
exp15 1.6087 discard Increase ASPECT_RATIO to 64
exp16 1.5417 discard Decrease WARMDOWN_RATIO to 0.4
exp17 1.5394 discard Decrease SCALAR_LR to 0.35
exp18 1.5460 discard Increase MATRIX_LR to 0.047
exp19 1.5653 discard Decrease ASPECT_RATIO to 16
exp20 1.6108 discard Decrease HEAD_DIM to 96
exp21 1.5447 discard WINDOW_PATTERN → "SSLL"
exp22 1.5399 discard Decrease MATRIX_LR to 0.042
exp23 1.5524 discard Increase UNEMBEDDING_LR to 0.004
exp24 1.5546 discard Decrease WEIGHT_DECAY to 0.05
exp25 1.5701 discard Decrease UNEMBEDDING_LR to 0.0025
exp26 1.5696 discard Increase HEAD_DIM to 160
exp27 1.5593 discard WINDOW_PATTERN → "SSL"
exp28 1.5496 discard Increase WEIGHT_DECAY to 0.2
exp29 1.5654 discard Decrease MATRIX_LR to 0.041
exp30 1.5533 discard Decrease ADAM_BETAS to (0.75, 0.95)
exp31 1.5496 discard Decrease MATRIX_LR to 0.043
exp32 1.5429 discard WINDOW_PATTERN → "SSSS"
exp33 1.5400 discard Increase FINAL_LR_FRAC to 0.05
exp34 1.5658 discard Decrease MATRIX_LR to 0.044
exp35 1.5807 discard Decrease MATRIX_LR to 0.0425
exp36 1.5772 discard Increase MATRIX_LR to 0.045
exp37 1.5363 discard Increase EMBEDDING_LR to 0.6
exp38 1.5478 discard Decrease EMBEDDING_LR to 0.3
exp39 1.5486 discard Decrease SCALAR_LR to 0.3
exp40 1.5488 discard Increase SCALAR_LR to 0.45
exp41 1.5370 discard Increase EMBEDDING_LR to 0.7
exp42 1.5342 discard Increase EMBEDDING_LR to 0.8
exp43 1.5423 discard Increase EMBEDDING_LR to 0.9
exp44 1.5705 discard Increase EMBEDDING_LR to 1.0
exp45 1.6018 discard Increase UNEMBEDDING_LR to 0.0035
exp46 1.6421 discard Increase SCALAR_LR to 0.6
exp47 1.5945 discard Decrease WARMDOWN_RATIO to 0.3
exp48 1.5959 discard Increase EMBEDDING_LR to 0.5
exp49 1.5972 discard Increase MATRIX_LR to 0.046
exp50 1.5964 discard Increase EMBEDDING_LR to 0.85
exp51 1.6081 discard WINDOW_PATTERN → "SLSL"
exp52 1.5733 discard Increase EMBEDDING_LR to 0.75
exp53 1.5626 discard Increase UNEMBEDDING_LR to 0.0032
exp54 1.5441 discard Increase EMBEDDING_LR to 0.65
exp55 1.5517 discard Increase EMBEDDING_LR to 0.55
exp56 1.5512 discard Increase UNEMBEDDING_LR to 0.0031
exp57 1.5466 discard WINDOW_PATTERN → "LLSS"
exp58 1.5332 discard Increase MATRIX_LR to 0.0438
exp59 1.5477 discard Increase MATRIX_LR to 0.0439
exp60 1.5702 discard Increase MATRIX_LR to 0.0437
exp61 1.5561 discard Increase MATRIX_LR to 0.0436
exp62 1.5455 discard Decrease MATRIX_LR to 0.0433
exp63 1.5377 discard Decrease MATRIX_LR to 0.0434
exp64 1.5385 discard Decrease MATRIX_LR to 0.0432
exp65 1.5433 discard Decrease MATRIX_LR to 0.0431
exp66 1.5564 discard Increase UNEMBEDDING_LR to 0.0034
exp67 1.5491 discard Decrease MATRIX_LR to 0.043
exp68 1.5507 discard Decrease UNEMBEDDING_LR to 0.0029
exp69 1.5486 discard Increase EMBEDDING_LR to 0.42
exp70 1.5807 discard Decrease UNEMBEDDING_LR to 0.0028
exp71 1.5639 discard Add MLP_RATIO = 3
exp72 1.5659 discard Decrease UNEMBEDDING_LR to 0.0027
exp73 1.5449 discard Increase MATRIX_LR to 0.04365
exp74 1.5392 discard Decrease MATRIX_LR to 0.04355
exp75 1.5309 discard Decrease MATRIX_LR to 0.04352
exp76 1.5373 discard Decrease MATRIX_LR to 0.04351
exp77 1.5369 discard Decrease MATRIX_LR to 0.04353
exp78 1.5424 discard Decrease MATRIX_LR to 0.04349
exp79 1.5419 discard Decrease MATRIX_LR to 0.04354
exp80 1.5524 discard Increase EMBEDDING_LR to 0.41
exp81 1.5880 discard Decrease UNEMBEDDING_LR to 0.0026
exp82 1.5475 discard Decrease EMBEDDING_LR to 0.38
exp83 1.5354 discard Decrease EMBEDDING_LR to 0.39
exp84 1.5304 discard Decrease WEIGHT_DECAY to 0.12
exp85 1.5327 discard Decrease WEIGHT_DECAY to 0.11
exp86 1.5394 discard Decrease WEIGHT_DECAY to 0.13
exp87 1.5384 discard Increase WEIGHT_DECAY to 0.16
exp88 1.5313 discard Decrease WEIGHT_DECAY to 0.14
exp89 1.5289 discard Decrease WEIGHT_DECAY to 0.135
exp90 1.5358 discard Decrease WEIGHT_DECAY to 0.13
exp91 1.5747 discard Decrease WEIGHT_DECAY to 0.125
exp92 1.5889 discard WEIGHT_DECAY=0.13 + WARMUP_RATIO=0.01
exp93 1.5608 discard Decrease WEIGHT_DECAY to 0.138
exp94 1.5593 discard Decrease WEIGHT_DECAY to 0.137
exp95 1.5590 discard Decrease WEIGHT_DECAY to 0.136
exp96 1.5685 discard Increase WARMUP_RATIO to 0.005
exp97 1.5512 discard Increase ADAM_BETAS to (0.8, 0.96)
exp98 1.5317 discard Increase ADAM_BETAS to (0.82, 0.95)
exp99 1.5427 discard Increase ADAM_BETAS to (0.81, 0.95)
exp100 1.5673 discard Increase ADAM_BETAS to (0.83, 0.95)

See also: Cross-Dataset Comparison | Cosmopedia-v2 (Mar 20) | Climbmix (Mar 19) | FineWeb-Edu (Mar 17)

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /