Files
lerobot/tests/utils
CarolinePascal ca6d764107 fix(autocast): gate autocast on AMP-capable devices
Add get_safe_autocast_context helper that only enters torch.autocast on
devices supporting AMP (cuda, xpu, cpu) and falls back to a no-op on mps
and unknown backends. Route the previously unconditional/underspecified
autocasts (vla_jepa, groot, molmoact2, lerobot_eval) through it so
autocast can be requested unconditionally without breaking on unsupported
devices.
2026-07-03 11:22:33 +02:00
..
2026-05-12 15:49:54 +02:00