jgrusewski
12fdd18223
refactor: remove entire CPU training path — 5,307 lines of dead code
Deleted:
- DQN::compute_loss_internal (280 lines) — old Candle forward+loss
- DQN::train_step (55 lines) — old Candle training step
- DQN::compute_gradients (47 lines) — old gradient accumulation
- ComputeLossResult struct — only used by deleted functions
- RegimeConditionalDQN::train_step (65 lines) — old dispatch
- RegimeConditionalDQN::train_step_gpu_regime (100 lines) — old GPU path
- RegimeConditionalDQN::compute_gradients_gpu (130 lines) — old regime gradients
- RegimeConditionalDQN::compute_gradients (92 lines) — old dispatch
- DQNAgentType::train_step dispatch — dead
- DQNAgentType::compute_gradients dispatch — dead
- GpuDqnTrainer::upload_batch (71 lines) — old CPU→GPU upload
- train_step.rs (500 lines) — entire module including ensure_fused_ctx
- dqn_benchmark.rs — used old train_step
- examples.rs — used old train_step
- validation/adapters.rs (289 lines) — used old train_step
- dqn/trainable_adapter.rs — used old train_step
- gpu_smoketest.rs — tested old train_step
- Gradient accumulation path in training_loop.rs (144 lines)
- IQN d_h_s2().clone() → raw pointer (zero alloc)
- Causal intervention format! string alloc removed
- Dead HER relabel functions (320 lines)
Kept:
- ensure_fused_ctx logic inlined into training_loop.rs
- set_noise_sigma_scale re-added to RegimeConditionalDQN
Fixed:
- GpuReplayBuffer max_batch_size wired from batch_size parameter
(was hardcoded 1024, blocking batch_size=8192)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 09:06:23 +02:00
..
2026-03-10 15:49:40 +01:00
2026-03-11 22:00:13 +01:00
2026-03-13 11:51:58 +01:00
2026-03-14 19:41:40 +01:00
2026-03-16 16:11:48 +01:00
2026-03-16 21:01:28 +01:00
2026-03-17 22:27:56 +01:00
2026-03-17 15:13:04 +01:00
2026-03-18 19:36:41 +01:00
2026-03-18 07:26:56 +01:00
2026-03-18 13:31:35 +01:00
2026-03-21 10:26:11 +01:00
2026-03-21 11:23:09 +01:00
2026-03-21 15:33:00 +01:00
2026-03-21 16:29:32 +01:00
2026-03-21 23:22:58 +01:00
2026-03-22 20:35:57 +01:00
2026-03-22 00:39:34 +01:00
2026-03-23 09:03:19 +01:00
2026-03-23 20:42:08 +01:00
2026-03-24 21:48:38 +01:00
2026-03-24 23:57:04 +01:00
2026-03-24 22:00:45 +01:00
2026-03-24 23:57:04 +01:00
2026-03-25 19:43:26 +01:00
2026-03-25 09:01:12 +01:00
2026-03-25 23:58:30 +01:00
2026-03-25 01:49:53 +01:00
2026-03-25 23:02:39 +01:00
2026-03-26 00:43:58 +01:00
2026-03-26 01:06:28 +01:00
2026-03-27 23:39:43 +01:00
2026-03-27 19:52:44 +01:00
2026-03-27 20:42:37 +01:00
2026-03-27 19:52:44 +01:00
2026-03-27 19:52:44 +01:00
2026-03-27 07:56:50 +01:00
2026-03-27 00:47:34 +01:00
2026-03-27 08:16:51 +01:00
2026-03-29 20:23:51 +02:00
2026-03-29 23:24:10 +02:00
2026-03-29 23:32:12 +02:00
2026-03-31 01:35:04 +02:00
2026-03-30 12:38:33 +02:00
2026-04-02 09:06:23 +02:00
2026-03-31 23:35:47 +02:00
2026-03-31 10:56:20 +02:00
2026-04-01 21:41:21 +02:00
2026-04-02 09:06:23 +02:00