-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Restore default CI configuration for VAE and Siamese examples using accelerator API #1342
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
Merged
msaroufim
merged 8 commits into
pytorch:main
from
jafraustro:eromomon/accel_vae_and_siamese
Jun 15, 2025
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
620f80f
Restore default CI configuration for VAE and Siamese examples using A…
eromomon 35ed448
Update Siamese Readme for consistency with accelerator argument
eromomon 6578373
Update siamese_network/README.md
eromomon 8fac44b
Update siamese_network/README.md
eromomon ec4c3d8
Update siamese_network/main.py
eromomon ae42dc8
Update vae/main.py
eromomon 3743fa7
Improve Readme files for clearer descriptions
eromomon 3c709de
Update Readme file structure to enhance organization
eromomon 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 hidden or 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 hidden or 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 hidden or 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,7 +13,15 @@ The main.py script accepts the following optional arguments: | |
```bash | ||
--batch-size input batch size for training (default: 128) | ||
--epochs number of epochs to train (default: 10) | ||
--accel use accelerator | ||
--no-accel disables accelerator | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suggest to add a text similar to the one in siamese example after the options list. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated |
||
--seed random seed (default: 1) | ||
--log-interval how many batches to wait before logging training status | ||
``` | ||
``` | ||
|
||
If a hardware accelerator device is detected, the example will execute on the accelerator; otherwise, it will run on the CPU. | ||
|
||
To force execution on the CPU, use `--no-accel` command line argument: | ||
|
||
```bash | ||
python main.py --no-accel | ||
``` |
This file contains hidden or 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.
I advice to still change this readme a little. Issues I currently see are:
--no-accel
. That's a little weird since we actually want to use accel rather than not to :).So, I suggest to change order of the sections and give basic example first. Something like this (a sketch):
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 changes have been made according to your suggestion.