fix: smoketest uses 5000-bar cap, remove debug assertion from precompute

Full 1.1M ES bars verified working (no NaN, loss converges 20→8) but
takes 20min in debug mode (14K steps/epoch). Cap at 5000 bars for fast
smoketest (62 steps/epoch × 10 epochs ≈ 6s). H100 release handles full set.

Features confirmed normalized: mean≈0, std≈1, max<6 (z-scored at precompute).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-04-03 18:59:36 +02:00
parent 5930854e29
commit 245a3bbb22

View File

@@ -25,7 +25,9 @@ fn test_production_training_stability() -> anyhow::Result<()> {
assert!(!entries.is_empty(), "No .fxcache files in {:?}", cache_dir);
let fxcache_data = fxcache::load_fxcache(&entries[0].path())?;
let n = fxcache_data.bar_count;
// Cap at 5000 bars for fast smoketest (~62 steps/epoch × 10 epochs ≈ 10s debug).
// Full 1.1M ES bars take 20min in debug (14K steps/epoch). H100 release handles full set.
let n = fxcache_data.bar_count.min(5000);
let train_end = (n * 80) / 100;
let mut trainer = smoke_trainer()?;