-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into newmetric/logauc
- Loading branch information
Showing
245 changed files
with
3,715 additions
and
1,440 deletions.
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
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,56 @@ | ||
trigger: | ||
tags: | ||
include: | ||
- "*" | ||
# run every month to sanitatize dev environment | ||
schedules: | ||
- cron: "0 0 1 * *" | ||
displayName: Monthly nuke caches | ||
branches: | ||
include: | ||
- master | ||
# run on PR changing only this file | ||
pr: | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
include: | ||
- .azure/gpu-nuke-cache.yml | ||
|
||
jobs: | ||
- job: nuke_caches | ||
# how long to run the job before automatically cancelling | ||
timeoutInMinutes: "10" | ||
# how much time to give 'run always even if cancelled tasks' before stopping them | ||
cancelTimeoutInMinutes: "2" | ||
|
||
pool: "lit-rtx-3090" | ||
|
||
variables: | ||
# these two caches assume to run repetitively on the same set of machines | ||
# see: https://github.com/microsoft/azure-pipelines-agent/issues/4113#issuecomment-1439241481 | ||
TORCH_HOME: "/var/tmp/torch" | ||
TRANSFORMERS_CACHE: "/var/tmp/hf/transformers" | ||
HF_HOME: "/var/tmp/hf/home" | ||
HF_HUB_CACHE: "/var/tmp/hf/hub" | ||
PIP_CACHE_DIR: "/var/tmp/pip" | ||
CACHED_REFERENCES: "/var/tmp/cached-references.zip" | ||
|
||
container: | ||
image: "ubuntu:22.04" | ||
options: "-v /var/tmp:/var/tmp" | ||
|
||
steps: | ||
- bash: | | ||
set -ex | ||
rm -rf $(TORCH_HOME) | ||
rm -rf $(TRANSFORMERS_CACHE) | ||
rm -rf $(HF_HOME) | ||
rm -rf $(HF_HUB_CACHE) | ||
rm -rf $(PIP_CACHE_DIR) | ||
rm -rf $(CACHED_REFERENCES) | ||
displayName: "delete all caches" | ||
- bash: | | ||
ls -lh /var/tmp | ||
displayName: "show tmp/ folder" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,19 +13,19 @@ concurrency: | |
|
||
jobs: | ||
check-code: | ||
uses: Lightning-AI/utilities/.github/workflows/[email protected].3.post0 | ||
uses: Lightning-AI/utilities/.github/workflows/[email protected].7 | ||
with: | ||
actions-ref: v0.11.3.post0 | ||
actions-ref: v0.11.7 | ||
extra-typing: "typing" | ||
|
||
check-schema: | ||
uses: Lightning-AI/utilities/.github/workflows/[email protected].3.post0 | ||
uses: Lightning-AI/utilities/.github/workflows/[email protected].7 | ||
|
||
check-package: | ||
if: github.event.pull_request.draft == false | ||
uses: Lightning-AI/utilities/.github/workflows/[email protected].3.post0 | ||
uses: Lightning-AI/utilities/.github/workflows/[email protected].7 | ||
with: | ||
actions-ref: v0.11.3.post0 | ||
actions-ref: v0.11.7 | ||
artifact-name: dist-packages-${{ github.sha }} | ||
import-name: "torchmetrics" | ||
testing-matrix: | | ||
|
@@ -35,7 +35,7 @@ jobs: | |
} | ||
check-md-links: | ||
uses: Lightning-AI/utilities/.github/workflows/[email protected].3.post0 | ||
uses: Lightning-AI/utilities/.github/workflows/[email protected].7 | ||
with: | ||
base-branch: master | ||
config-file: ".github/markdown-links-config.json" |
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
Oops, something went wrong.