文件
Evo-RL/src/lerobot/rl
MrBlue0632 c1b2795640 feat(logging): add swanlab backend for training runs (#17)
* feat(logging): add swanlab backend + evo1 stage2 optimizations

- Add SwanLab logging support (auto-selects when SWANLAB_API_KEY is set)
- Add stage2 training optimizations: tensor fastpath, gradient checkpointing
- Document stage2 config override behavior and runnable value-model alternative

Cherry-picked from: bfdc28c, bcecabb

* refactor(logging): separate SwanLabLogger from WandBLogger

- Restore WandBLogger to its original clean form with all comments
- Add SwanLabLogger as a separate class with the same interface
- Add make_logger() factory function to select backend based on
  SWANLAB_API_KEY environment variable
- Move evo1 stage2 runtime logging from lerobot_train.py into
  EVO1Policy.__init__ where it belongs
- Add ImportError handling for swanlab dependency

* fix(logging): gracefully fall back to WandB when swanlab is not installed

If SWANLAB_API_KEY is set but the swanlab package is not installed,
make_logger() now logs a warning and falls back to WandBLogger instead
of crashing with an ImportError at training startup.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Elvinyk <223015152@link.cuhk.edu.cn>
Co-authored-by: MrBlue0632 <2028207642@qq.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 10:31:40 +08:00
..