Open amorehead opened 1 year ago
Attention: 29 lines
in your changes are missing coverage. Please review.
Comparison is base (
bddbc24
) 83.24% compared to head (27fd562
) 78.60%.
Files | Patch % | Lines |
---|---|---|
src/__init__.py | 37.50% | 10 Missing :warning: |
src/train.py | 60.86% | 9 Missing :warning: |
src/eval.py | 50.00% | 8 Missing :warning: |
src/models/mnist_module.py | 50.00% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@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 strategy
class is what I had in mind here. I wanted to make it possible with this template to use any arbitrary (e.g., advanced) training strategy such as DeepSpeed with only a few lines of code changes.
Hey, @gil2rok. Yes, Lightning's
strategy
class is what I had in mind here. I wanted to make it possible with this template to use any arbitrary (e.g., advanced) training strategy such as DeepSpeed with only a few lines of code changes.
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?
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
pytest
command?pre-commit run -a
command?Did you have fun?
Make sure you had fun coding 🙃 :zap: