Add support for using custom Environments and Strategies ⚡ #608
Add support for using custom Environments and Strategies ⚡ #608amorehead wants to merge 11 commits into
Environments and Strategies ⚡ #608Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #608 +/- ##
==========================================
- Coverage 83.24% 78.60% -4.65%
==========================================
Files 11 12 +1
Lines 376 430 +54
==========================================
+ Hits 313 338 +25
- Misses 63 92 +29 ☔ View full report in Codecov by Sentry. |
|
@amorehead Can you explain your rationale behind adding these additional configs? Super curious to know your thought process. Is it related to PyTorch Lighting's use of a "strategy" defined here: https://lightning.ai/docs/pytorch/stable/extensions/strategy.html? And some example strategies:
|
|
Hey, @gil2rok. Yes, Lightning's |
Because this pull request has not been accepted, how did you use these advanced strategies? Did you just manually add them the PyTorch Lightning trainer arguments? |
| callbacks=callbacks, | ||
| logger=logger, | ||
| plugins=plugins, | ||
| strategy=strategy, |
There was a problem hiding this comment.
As you can see here, now one can specify an optional strategy for Lightning to use e.g., via OmegaConf YAML config files.
|
@ashleve, may I ask for you to review these changes when you get a chance? I've been using them in my own forked projects for a couple years now, and I think the community would benefit from having them be available by default. |
|
+1 to add this feature. Would be very helpful IMO. Cool work @amorehead!!
…On Sat, Apr 19, 2025 at 7:41 PM Alex Morehead ***@***.***> wrote:
@ashleve <https://github.com/ashleve>, may I ask for you to review these
changes when you get a chance? I've been using them in my own forked
projects for a couple years now, and I think the community would benefit
from having them be available by default.
—
Reply to this email directly, view it on GitHub
<#608 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIZ4NS6UTLZW76PPRZMNE5L22J4FLAVCNFSM6AAAAAB3OXKDR6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMJWG43TOMJSGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
*amorehead* left a comment (ashleve/lightning-hydra-template#608)
<#608 (comment)>
@ashleve <https://github.com/ashleve>, may I ask for you to review these
changes when you get a chance? I've been using them in my own forked
projects for a couple years now, and I think the community would benefit
from having them be available by default.
—
Reply to this email directly, view it on GitHub
<#608 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIZ4NS6UTLZW76PPRZMNE5L22J4FLAVCNFSM6AAAAAB3OXKDR6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMJWG43TOMJSGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
Hi, @ashleve. Are you open to making me a collaborator of this GitHub repository so I can help manage some of its pending pull requests (such as this one)? |
|
@ashleve +1 for the above. Would love to have another maintainer (if they're willing) and to get this amazing feature into this template! |


What does this PR do?
Adds the ability for one to employ custom (e.g., Lightning Fabric)
Environments(e.g.,SlurmEnvironment) andStrategies(e.g.,DeepSpeedStrategy) during model training or evaluation.Before submitting
pytestcommand?pre-commit run -acommand?Did you have fun?
Make sure you had fun coding 🙃 ⚡