forked from ashleve/lightning-hydra-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support for logging with Aim (ashleve#534) * Update template to Lightning 2.0 (ashleve#548) * Update pre-commit hooks (ashleve#549) * Refactor utils (ashleve#541) * Add option for pytorch 2.0 model compilation (ashleve#550) * Update `README.md` (ashleve#551) --------- Co-authored-by: Mattie Tesfaldet <[email protected]> Co-authored-by: Johnny <[email protected]>
- Loading branch information
1 parent
adc6afe
commit df6a17f
Showing
30 changed files
with
287 additions
and
244 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,3 +149,6 @@ configs/local/default.yaml | |
/data/ | ||
/logs/ | ||
.env | ||
|
||
# Aim logging | ||
.aim |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# https://pytorch-lightning.readthedocs.io/en/latest/api/pytorch_lightning.callbacks.RichModelSummary.html | ||
# https://pytorch-lightning.readthedocs.io/en/latest/api/lightning.callbacks.RichModelSummary.html | ||
|
||
# Generates a summary of all layers in a LightningModule with rich text formatting. | ||
# Look at the above link for more detailed information. | ||
model_summary: | ||
_target_: pytorch_lightning.callbacks.RichModelSummary | ||
_target_: lightning.pytorch.callbacks.RichModelSummary | ||
max_depth: 1 # the maximum depth of layer nesting that the summary will include |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# https://pytorch-lightning.readthedocs.io/en/latest/api/pytorch_lightning.callbacks.RichProgressBar.html | ||
# https://pytorch-lightning.readthedocs.io/en/latest/api/lightning.callbacks.RichProgressBar.html | ||
|
||
# Create a progress bar with rich text formatting. | ||
# Look at the above link for more detailed information. | ||
rich_progress_bar: | ||
_target_: pytorch_lightning.callbacks.RichProgressBar | ||
_target_: lightning.pytorch.callbacks.RichProgressBar |
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 |
---|---|---|
|
@@ -36,3 +36,5 @@ logger: | |
wandb: | ||
tags: ${tags} | ||
group: "mnist" | ||
aim: | ||
experiment: "mnist" |
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,28 @@ | ||
# https://aimstack.io/ | ||
|
||
# example usage in lightning module: | ||
# https://github.com/aimhubio/aim/blob/main/examples/pytorch_lightning_track.py | ||
|
||
# open the Aim UI with the following command (run in the folder containing the `.aim` folder): | ||
# `aim up` | ||
|
||
aim: | ||
_target_: aim.pytorch_lightning.AimLogger | ||
repo: ${paths.root_dir} # .aim folder will be created here | ||
# repo: "aim://ip_address:port" # can instead provide IP address pointing to Aim remote tracking server which manages the repo, see https://aimstack.readthedocs.io/en/latest/using/remote_tracking.html# | ||
|
||
# aim allows to group runs under experiment name | ||
experiment: null # any string, set to "default" if not specified | ||
|
||
train_metric_prefix: "train/" | ||
val_metric_prefix: "val/" | ||
test_metric_prefix: "test/" | ||
|
||
# sets the tracking interval in seconds for system usage metrics (CPU, GPU, memory, etc.) | ||
system_tracking_interval: 10 # set to null to disable system metrics tracking | ||
|
||
# enable/disable logging of system params such as installed packages, git info, env vars, etc. | ||
log_system_params: true | ||
|
||
# enable/disable tracking console logs (default value is true) | ||
capture_terminal_logs: false # set to false to avoid infinite console log loop issue https://github.com/aimhubio/aim/issues/2550 |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# csv logger built in lightning | ||
|
||
csv: | ||
_target_: pytorch_lightning.loggers.csv_logs.CSVLogger | ||
_target_: lightning.pytorch.loggers.csv_logs.CSVLogger | ||
save_dir: "${paths.output_dir}" | ||
name: "csv/" | ||
prefix: "" |
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
Oops, something went wrong.