-
Notifications
You must be signed in to change notification settings - Fork 0
Cosmopedia v2 Agent Run Mar 20 2026
Autonomous experiment run on Cosmopedia-v2 — a synthetic textbook and blogpost dataset generated by Mixtral, sourced from the SmolLM-Corpus. The agent ran 103 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 0.35% improvement — confirming the configuration was already near-optimal for this data.
Cosmopedia-v2 Agent Run Results
| Spec | Value |
|---|---|
| Chip | Apple M5 Max |
| Unified Memory | 64 GB |
| GPU Cores | 40 |
| Backend | MLX |
| Time Budget | 5 minutes per experiment |
| Metric | Value |
|---|---|
| Total Experiments | 103 (exp0–exp102) |
| Kept | 4 (3.9%) |
| Discarded | 97 (94.2%) |
| Crashed | 2 (1.9%) |
| Best val_bpb | 0.9606 (exp102) |
| Baseline val_bpb | 0.9639 (pre-optimized) |
| Total Improvement | −0.0034 (0.35%) |
| LLM Backend | Claude Sonnet |
| Branch | autoresearch/mar19-cosmopedia-v2 |
| Exp | val_bpb | Delta | Description | Key Change |
|---|---|---|---|---|
| exp0 | 0.9639 | — | Baseline (pre-optimized: AR=32, EMBED_LR=0.4, SCALAR_LR=0.4) | Starting point |
| exp2 | 0.9625 | −0.0014 | Reduce DEVICE_BATCH_SIZE | More gradient steps |
| exp88 | 0.9621 | −0.0004 | Reduce WEIGHT_DECAY from 0.2 to 0.15 | Less regularization |
| exp98 | 0.9616 | −0.0005 | Reduce UNEMBEDDING_LR from 0.0041 to 0.0035 | Lower output LR |
| exp102 | 0.9606 | −0.0010 | Reduce UNEMBEDDING_LR from 0.0035 to 0.0033 | Further output LR reduction |
# Architecture (pre-optimized from prior runs) DEPTH = 8 ASPECT_RATIO = 32 # ↓ from 64 (prior runs) HEAD_DIM = 128 WINDOW_PATTERN = "SSSL" # Optimization (agent-tuned) MATRIX_LR = 0.0435 # ↑ from 0.04 (prior runs) EMBEDDING_LR = 0.4 # ↓ from 0.6 (prior runs) UNEMBEDDING_LR = 0.0033 # ↓ from 0.004 (exp98, exp102) SCALAR_LR = 0.4 # ↓ from 0.5 (prior runs) WEIGHT_DECAY = 0.15 # ↓ from 0.2 (exp88) ADAM_BETAS = (0.8, 0.95) # Default WARMUP_RATIO = 0.0 # Default WARMDOWN_RATIO = 0.5 # Default FINAL_LR_FRAC = 0.0 # Default # Performance # Peak memory: 15.5 GB | Steps: 543 | tok/sec: 59,234 | MFU: 18.3%
This run demonstrates what happens when the agent starts from an already well-tuned configuration. Across 103 experiments testing every parameter category, only 4 produced improvements — and all were small (largest: −0.0014 val_bpb from batch size reduction).
The 3.9% keep rate is the lowest of any run in the project, confirming the pre-optimized baseline left almost no room for improvement.
The agent spent 35 consecutive experiments (exp4–exp43, minus a few diversions) systematically sweeping MATRIX_LR from 0.0435 down to 0.028. Every single one was discarded — many came close to the best (0.9653–0.9687 vs best 0.9625) but none beat it. This is a case where the agent correctly identified a promising direction but couldn't overcome the pre-optimized baseline.
Tested MATRIX_LR values: 0.055, 0.048, 0.045, 0.0425, 0.042, 0.041, 0.04075, 0.0405, 0.04025, 0.040, 0.0395, 0.039, 0.0385, 0.038, 0.0375, 0.037, 0.0365, 0.036, 0.0355, 0.035, 0.0345, 0.034, 0.0335, 0.033, 0.0325, 0.032, 0.031, 0.030, 0.029, 0.028 — 30 values tested, 0 kept.
The meaningful improvements came late:
- exp88 (of 103): WEIGHT_DECAY 0.2→0.15 — first non-batch-size keep after 85 fruitless experiments
- exp98–102: UNEMBEDDING_LR 0.0041→0.0035→0.0033 — two consecutive keeps in the final 5 experiments
This mirrors the FineWeb-Edu pattern where UNEMBEDDING_LR produced a late breakthrough. The unembedding layer appears to be a consistently underexplored parameter across datasets.
| Category | Experiments | Keeps | Notes |
|---|---|---|---|
| MATRIX_LR | 30 | 0 | Exhaustive sweep 0.028–0.055, all discarded |
| ASPECT_RATIO | 10 | 0 | Tested AR=8,12,16,20,24,28,36,40,44,48 |
| ADAM_BETAS | 11 | 0 | β1: 0.5–0.9, β2: 0.9–0.99 |
| WEIGHT_DECAY | 12 | 1 | Optimal at 0.15 (exp88) |
| WARMDOWN_RATIO | 6 | 0 | Tested 0.1–0.4 |
| UNEMBEDDING_LR | 6 | 2 | Late breakthrough (exp98, exp102) |
| EMBEDDING_LR | 2 | 0 | 0.3, 0.35 both worse |
| SCALAR_LR | 2 | 0 | 0.3, 0.35 both worse |
| DEVICE_BATCH | 2 | 1 | First keep (exp2) |
| WINDOW_PATTERN | 4 | 0 | SSSS, SSL, SL, S all tested |
| Other | 18 | 0 | HEAD_DIM, DEPTH, WARMUP, FINAL_LR_FRAC |
The best val_bpb of 0.9606 is dramatically lower than climbmix (1.296) or FineWeb-Edu (1.342). This is expected: Cosmopedia-v2 is synthetic textbook data generated by Mixtral with consistent style, vocabulary, and structure. The model can exploit these regularities for much better compression. Real web crawl has far more entropy.
| # | val_bpb | mem_gb | tok/sec | mfu | steps | status | description |
|---|---|---|---|---|---|---|---|
| exp0 | 0.964 | 15.5 | 57,961 | 17.9% | 530 | baseline | No modifications (pre-optimized) |
| exp1 | — | — | — | — | — | crash | TOTAL_BATCH_SIZE reduction |
| exp2 | 0.963 | 14.5 | 58,294 | 18.0% | 535 | keep | DEVICE_BATCH_SIZE reduction |
| exp3 | 1.002 | 14.5 | 46,317 | 14.2% | 425 | discard | Further DEVICE_BATCH reduction |
| exp4 | 1.016 | 15.5 | 42,957 | 13.2% | 395 | discard | MATRIX_LR=0.055 |
| exp5 | 1.000 | 15.5 | 47,270 | 14.5% | 432 | discard | EMBEDDING_LR=0.5 |
| exp6 | 0.982 | 15.5 | 52,333 | 16.1% | 479 | discard | WEIGHT_DECAY=0.1 |
| exp7 | 0.985 | 15.5 | 52,561 | 16.2% | 483 | discard | WARMUP_RATIO=0.1 |
| exp8 | 0.986 | 15.5 | 52,246 | 16.1% | 479 | discard | WARMDOWN_RATIO=0.3 |
| exp9 | 1.028 | 15.5 | 40,653 | 12.4% | 371 | discard | SCALAR_LR=0.5 |
| exp10 | 1.028 | 15.5 | 39,973 | 12.2% | 366 | discard | MATRIX_LR=0.035 |
| exp11 | 1.158 | 25.0 | 19,326 | 13.2% | 178 | discard | DEPTH increase |
| exp12 | 1.046 | 15.5 | 35,904 | 10.9% | 329 | discard | UNEMBEDDING_LR=0.003 |
| exp13–43 | 0.965–1.028 | 15.5 | 40K–58K | — | — | discard | MATRIX_LR sweep (0.028–0.048) |
| exp44 | 0.969 | 15.5 | 57,000 | 16.9% | 522 | discard | WINDOW_PATTERN="SSSS" |
| exp45 | 0.963 | 15.5 | 57,980 | 18.6% | 531 | discard | WINDOW_PATTERN="SSL" |
| exp46 | 0.965 | 15.5 | 57,256 | 19.0% | 525 | discard | WINDOW_PATTERN="SL" |
| exp47 | 0.968 | 15.5 | 57,256 | 17.0% | 526 | discard | WINDOW_PATTERN="S" |
| exp48–49 | 0.968–0.969 | 15.5 | ~58K | — | — | discard | EMBEDDING_LR 0.35, 0.3 |
| exp50–51 | 0.967–0.968 | 15.5 | ~58K | — | — | discard | SCALAR_LR 0.35, 0.3 |
| exp52–53 | 0.970–0.972 | 15.5 | ~56K | — | — | discard | UNEMBEDDING_LR 0.005, 0.0045 |
| exp54–64 | 0.963–0.981 | 15.5 | 54K–59K | — | — | discard | ADAM_BETAS sweep |
| exp65–74 | 0.967–1.004 | 10–21 | 35K–107K | — | — | discard | ASPECT_RATIO 8–48 |
| exp75 | 0.973 | 15.5 | 56,572 | 17.5% | 519 | discard | WARMUP_RATIO=0.05 |
| exp76–81 | 0.968–0.985 | 15.5 | ~58K | — | — | discard | WARMDOWN sweep 0.1–0.4 |
| exp82 | 1.016 | 19.5 | 38,269 | 17.6% | 352 | discard | HEAD_DIM=112 |
| exp83–85 | 0.966–0.970 | 15.5 | ~57K | — | — | discard | FINAL_LR_FRAC 0.02–0.1 |
| exp86 | 0.965 | 15.5 | 58,941 | 18.2% | 539 | discard | WEIGHT_DECAY=0.05 |
| exp87 | — | — | — | — | — | crash | DEVICE_BATCH_SIZE increase |
| exp88 | 0.962 | 15.5 | 59,900 | 18.5% | 549 | keep | WEIGHT_DECAY=0.15 |
| exp89–97 | 0.964–0.971 | 15.5 | ~57K–59K | — | — | discard | WEIGHT_DECAY 0.08–0.18 |
| exp98 | 0.962 | 15.5 | 59,274 | 18.3% | 542 | keep | UNEMBEDDING_LR=0.0035 |
| exp99 | 0.962 | 15.5 | 59,214 | 18.2% | 542 | discard | UNEMBEDDING_LR=0.003 |
| exp100 | 0.962 | 15.5 | 58,960 | 18.2% | 541 | discard | UNEMBEDDING_LR=0.0032 |
| exp101 | 0.965 | 15.5 | 59,333 | 18.3% | 542 | discard | UNEMBEDDING_LR=0.0037 |
| exp102 | 0.961 | 15.5 | 59,234 | 18.3% | 543 | keep | UNEMBEDDING_LR=0.0033 |
-
Branch:
autoresearch/mar19-cosmopedia-v2 - Agent: Claude Sonnet (autonomous via headless runner)
- Date: March 19–20, 2026