-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] Future structure #13265
[RFC] Future structure #13265
Conversation
Codecov Report
@@ Coverage Diff @@
## master #13265 +/- ##
========================================
- Coverage 89% 87% -1%
========================================
Files 217 221 +4
Lines 18322 19014 +692
========================================
+ Hits 16282 16620 +338
- Misses 2040 2394 +354 |
@@ -11,6 +11,7 @@ trigger: | |||
include: | |||
- "master" | |||
- "release/*" | |||
- "future/*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be removed before merge, right?
- bash: | | ||
pip install -e . -r requirements/strategies.txt | ||
pip list | ||
displayName: 'Install package' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not necessary
@@ -86,8 +90,9 @@ jobs: | |||
python -m coverage report | |||
python -m coverage xml | |||
python -m coverage html | |||
python -m codecov --token=$(CODECOV_TOKEN) --commit=$(Build.SourceVersion) --flags=gpu,pytest --name="GPU-coverage" --env=linux,azure | |||
python -m codecov --token=$(CODECOV_TOKEN) --commit=$(Build.SourceVersion) --flags=gpu,unittest --name="GPU-coverage" --env=linux,azure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
python -m codecov --token=$(CODECOV_TOKEN) --commit=$(Build.SourceVersion) --flags=gpu,unittest --name="GPU-coverage" --env=linux,azure | |
python -m codecov --token=$(CODECOV_TOKEN) --commit=$(Build.SourceVersion) --flags=gpu,pytest --name="GPU-coverage" --env=linux,azure |
bash pl_examples/run_examples.sh --trainer.accelerator=gpu --trainer.devices=1 | ||
bash pl_examples/run_examples.sh --trainer.accelerator=gpu --trainer.devices=2 --trainer.strategy=ddp | ||
bash pl_examples/run_examples.sh --trainer.accelerator=gpu --trainer.devices=2 --trainer.strategy=ddp --trainer.precision=16 | ||
bash run_ddp_examples.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep the test here with the other standalone tests
bash pl_examples/run_examples.sh --trainer.accelerator=gpu --trainer.devices=2 --trainer.strategy=ddp | ||
bash pl_examples/run_examples.sh --trainer.accelerator=gpu --trainer.devices=2 --trainer.strategy=ddp --trainer.precision=16 | ||
bash run_ddp_examples.sh | ||
bash run_pl_examples.sh --trainer.accelerator=gpu --trainer.devices=1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This script should be examples/pytorch/run_examples.sh
pip install -e . | ||
pip install --requirement requirements/devel.txt | ||
pip install --requirement requirements/strategies.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pip install -e . | |
pip install --requirement requirements/devel.txt | |
pip install --requirement requirements/strategies.txt | |
pip install -e .[strategies] | |
pip install --requirement requirements/devel.txt |
displayName: 'HPU precision test' | ||
|
||
- bash: | | ||
export PYTHONPATH="${PYTHONPATH}:$(pwd)" | ||
python "pl_examples/hpu_examples/simple_mnist/mnist.py" | ||
python "pl_hpu/mnist_sample.py" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The structure here should be examples/pytorch/hpu
python -m coverage run --source pytorch_lightning -m pytest tests -vv --junitxml=$(Build.StagingDirectory)/test-results.xml --durations=50 | ||
cd src | ||
python -m pytest pytorch_lightning | ||
displayName: 'DocTests' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't add doctesting to these accelerator jobs as it complicates the pipeline for contributors
/docs/source/index.rst @williamfalcon | ||
/docs/source/levels @williamfalcon @RobertLaurella | ||
/docs/source/expertise_levels @williamfalcon @RobertLaurella | ||
/docs/source-PL/conf.py @borda @awaelchli @carmocca |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this -
separator instead of
docs/pytorch_lightning/source/...
@Borda is there anything left to do here? Can we close this? |
shall be fine, but would like to check it, run some diff that it is minimal... 🐰 |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you need further help see our docs: https://pytorch-lightning.readthedocs.io/en/latest/generated/CONTRIBUTING.html#pull-request or ask the assistance of a core contributor here or on Slack. Thank you for your contributions. |
What does this PR do?
it is just PoC, and it follows the latest PyPA project structure - https://github.com/pypa/sampleproject
it is said that using src is better; it does not accidentally use modules that are not installed...
so with this new structure, we would have
NOTE:
git rebase master
as it uses here way resolverrebase & merge
for traceability and simple resolving potential conflictsDoes your PR introduce any breaking changes? If yes, please list them.
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃
cc @carmocca @akihironitta @Borda @tchaton @justusschock @awaelchli