Files
foxhunt/crates
jgrusewski 727308b891 feat(bf16): Phase 1 kernel rewrite — experience, ppo, backtest native BF16
4 critical kernel files rewritten (623 float→bf16):
- experience_kernels.cu: portfolio_states, out_rewards, out_dones,
  q_values all __nv_bfloat16*. Trade physics interop via scoped
  float temporaries at call boundary.
- ppo_experience_kernel.cu: actor/critic forward, softmax, GAE,
  curiosity, barrier, diversity all native bf16.
- backtest_env_kernel.cu: portfolio state, rewards, returns all bf16.
- backtest_gather_kernel.cu: states_out and all feature locals bf16.

Fix actions staging: i32 actions need size_of::<i32>() not bf16 size.

1722/1722 unit tests pass. Smoke test progresses past experience
collection (was ILLEGAL_ADDRESS, now reaches fused training step).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 14:46:36 +01:00
..