fix: training profile must not override GPU profile batch_size

dqn-production.toml batch_size=8192 was overriding GPU profile batch_size=64
on RTX 3050 via apply_to(), causing OOM/hang. GPU profile is the sole
authority for batch_size — training profile controls learning params only.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-04-02 23:42:12 +02:00
parent b60bd030b0
commit 833cc07d0e
2 changed files with 3 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
# RTX 3050 Ti (4GB VRAM) -- minimal footprint
[training]
batch_size = 128
batch_size = 64
num_atoms = 11
buffer_size = 0 # 0 = auto from VRAM
hidden_dim_base = 256

View File

@@ -670,9 +670,8 @@ impl DqnTrainingProfile {
if let Some(v) = t.epochs {
hp.epochs = v;
}
if let Some(v) = t.batch_size {
hp.batch_size = v;
}
// batch_size: NOT applied from training profile.
// GPU profile (config/gpu/*.toml) is the sole authority for batch_size.
if let Some(v) = t.learning_rate {
hp.learning_rate = v;
}