This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 212
GPU CI Improvements #992
Merged
Merged
GPU CI Improvements #992
Changes from 16 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
4546310
Fix default backbone weights. Make GPU CI run always
ethanwharris 990bb9b
Update CHANGELOG.md
ethanwharris 7bbf5c7
trigger
ethanwharris bdaef33
trigger
ethanwharris 1f066d2
Merge branch 'master' into bugfix/backbone_freezing
ethanwharris 13e1d3e
Fixes
ethanwharris eaf9654
Debug
ethanwharris 202c753
Revert to bert medium
ethanwharris 17c6ab6
drop install all
ethanwharris 52d6950
Fix l2l test
ethanwharris 588a4fc
Update GPU CI
ethanwharris deea4b7
Fix
ethanwharris f5e4fa2
Freeze
ethanwharris 39afa14
Freeze
ethanwharris 7e8b3b0
Try something
ethanwharris 0b50930
Fix
ethanwharris 3587198
Fixes
ethanwharris 4c6bcfa
Try fix
ethanwharris 445c91c
Merge branch 'master' into bugfix/backbone_freezing
ethanwharris 654d9b6
Debug
ethanwharris 096f7fd
Reduce memory footprint
ethanwharris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
trigger: | ||
branches: | ||
include: ["master"] | ||
pr: | ||
branches: | ||
include: ["master"] | ||
autoCancel: true | ||
drafts: true | ||
|
||
jobs: | ||
- template: testing-template.yml | ||
parameters: | ||
configs: | ||
- "image" | ||
- "text" | ||
- "tabular" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
jobs: | ||
- ${{ each config in parameters.configs }}: | ||
- job: | ||
displayName: ${{config}} | ||
# how long to run the job before automatically cancelling | ||
timeoutInMinutes: 45 | ||
# how much time to give 'run always even if cancelled tasks' before stopping them | ||
cancelTimeoutInMinutes: 2 | ||
|
||
pool: azure-gpus-spot | ||
# this need to have installed docker in the base image... | ||
container: | ||
# base ML image: mcr.microsoft.com/azureml/openmpi3.1.2-cuda10.2-cudnn8-ubuntu18.04 | ||
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.9-torch1.8" | ||
# image: "pytorch/pytorch:1.8.1-cuda11.0-cudnn8-runtime" | ||
options: "-it --rm --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=all --shm-size=32g" | ||
|
||
workspace: | ||
clean: all | ||
steps: | ||
|
||
- bash: | | ||
lspci | egrep 'VGA|3D' | ||
whereis nvidia | ||
nvidia-smi | ||
python --version | ||
pip --version | ||
pip list | ||
df -kh /dev/shm | ||
displayName: 'Image info & NVIDIA' | ||
|
||
- bash: | | ||
python -c "import torch ; mgpu = torch.cuda.device_count() ; assert mgpu >= 2, f'GPU: {mgpu}'" | ||
displayName: 'Sanity check' | ||
|
||
- bash: | | ||
# python -m pip install "pip==20.1" | ||
pip install '.[${{config}}]' | ||
pip install '.[test]' --upgrade-strategy only-if-needed | ||
pip list | ||
displayName: 'Install dependencies' | ||
|
||
- bash: | | ||
python -m coverage run --source flash -m pytest flash tests/examples/test_scripts.py -v --junitxml=$(Build.StagingDirectory)/test-results.xml --durations=30 | ||
displayName: 'Testing' | ||
|
||
- bash: | | ||
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 | ||
ls -l | ||
displayName: 'Statistics' | ||
|
||
- task: PublishTestResults@2 | ||
displayName: 'Publish test results' | ||
inputs: | ||
testResultsFiles: '$(Build.StagingDirectory)/test-results.xml' | ||
testRunTitle: '$(Agent.OS) - $(Build.DefinitionName) - Python $(python.version)' | ||
condition: succeededOrFailed() | ||
|
||
- task: PublishCodeCoverageResults@1 | ||
displayName: 'Publish coverage report' | ||
inputs: | ||
codeCoverageTool: 'cobertura' | ||
summaryFileLocation: 'coverage.xml' | ||
reportDirectory: '$(Build.SourcesDirectory)/htmlcov' | ||
testRunTitle: '$(Agent.OS) - $(Build.BuildNumber)[$(Agent.JobName)] - Python $(python.version)' | ||
condition: succeededOrFailed() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
neat !