Add quirks.py for GPU/platform-specific quirks; disable CuDNN benchmarking on ROCm#2558
Merged
asumagic merged 6 commits intospeechbrain:developfrom Oct 22, 2024
Merged
Add quirks.py for GPU/platform-specific quirks; disable CuDNN benchmarking on ROCm#2558asumagic merged 6 commits intospeechbrain:developfrom
quirks.py for GPU/platform-specific quirks; disable CuDNN benchmarking on ROCm#2558asumagic merged 6 commits intospeechbrain:developfrom
Conversation
d6c7226 to
15c91f8
Compare
15c91f8 to
cf2507a
Compare
Collaborator
Author
|
BTW heads up @Adel-Moumen since this is moving the |
Collaborator
|
LGTM. Before merging, you need to add a proper documentation as it's seems to be something that the user should be aware of. |
Collaborator
Author
Where do you suggest that documentation to be/what do you suggest that it covers? |
Collaborator
|
In |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What does this PR do?
Fixes #2552
The code should be fairly well documented. The idea is that SpeechBrain now would take a more structured/documented approach to overriding PyTorch's global configuration.
So-called "quirks" represent an individual configuration change, and it may be unconditional or depend on hardware. The user is notified by an info log when quirks are applied.
This adds a quirk to disable CuDNN benchmarking on ROCm as it degrades performance for a majority of cases in SpeechBrain.
Quirks can be explicitly opted out from by setting an environment variable,
SB_DISABLE_QUIRKS.Example:
Before submitting
PR review
Reviewer checklist