trinity.explorer package
Submodules
- trinity.explorer.explorer module
Explorer
Explorer.__init__()
Explorer.setup_weight_sync_group()
Explorer.prepare()
Explorer.get_weight()
Explorer.explore()
Explorer.explore_step()
Explorer.need_sync()
Explorer.need_eval()
Explorer.eval()
Explorer.benchmark()
Explorer.save_checkpoint()
Explorer.sync_weight()
Explorer.shutdown()
Explorer.is_alive()
Explorer.get_actor()
- trinity.explorer.scheduler module
- trinity.explorer.workflow_runner module
Module contents
- class trinity.explorer.Explorer(config: Config)[source]
Bases:
object
Responsible for exploring the taskset.
- async setup_weight_sync_group(master_address: str, master_port: int, state_dict_meta: List | None = None)[source]
- async get_weight(name: str) Tensor [source]
Get the weight of the loaded model (For checkpoint weights update).
- async explore() str [source]
- The timeline of the exploration process:
- <——————————— one period ————————————-> |
- explorer | <—————- step_1 ————–> | |
- | <—————- step_2 ————–> | |… || <—————- step_n —————> | || <———————- eval ——————–> | <– sync –> |
|--------------------------------------------------------------------------------------|
trainer | <– idle –> | <– step_1 –> | <– step_2 –> | … | <– step_n –> | <– sync –> |