Eclectic-Sheep / sheeprl

Distributed Reinforcement Learning accelerated by Lightning Fabric
https://eclecticsheep.ai
Apache License 2.0
300 stars 29 forks source link

Feature/single entry point #100

Closed belerico closed 11 months ago

belerico commented 11 months ago

Summary

This PR solves #97 by adding a single entrypoint so that one can run any experiment simply with python sheeprl.py exp=... fabric=.... Now the @register_algorithm(decoupled: bool)-decorated entrypoint will always receive the Fabric object and the hydra cfg to be used later in the specific implementation.

With these changes there's no more the need to run an experiment with lightning run model sheeprl.py ..., instead if one wants to modify the Fabric parameters then he/she can override them through the cli with python sheeprl.py ecp=... fabric.devices=2 fabric.accelerator=gpu fabric.num_nodes=2 or modify them directly in the configs under sheeprl/configs/fabric/.

Type of Change

Please select the one relevant option below:

Checklist

Please confirm that the following tasks have been completed:

Thank you for your contribution! Once you have filled out this template, please ensure that you have assigned the appropriate reviewers and that all tests have passed.