-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Open
Labels
BenchmarksIssues related to Memory regressions in tests and scriptsIssues related to Memory regressions in tests and scriptsHelp wantedExtra attention is needed, help appreciatedExtra attention is needed, help appreciatedTestsRelated to testsRelated to testsWIPLabel your PR/Issue with WIP for some long outstanding Issues/PRs that are work in progressLabel your PR/Issue with WIP for some long outstanding Issues/PRs that are work in progress
Description
- this can run on GPU only and be marked
@slow
- check how much memory bart is using at
__init__
- assert that it doesn't use more than 110% of that.
- check how much memory bart uses on a single forward pass. (optionally test this in fp16).
- assert that it doesn't use more than 110% of that.
- check how much memory bart uses on a single forward and backward pass.
- assert that it doesn't use more than 110% of that.
Bonus:
- add similar asserts for timing!
- let the test run and check memory on CPU (make sure that if pytest is run with
-n -8
the test still passes! - add a test to
test_modeling_common.py
to make it easy for all models to test this. - add a test to
test_modeling_common_tf.py
to make it easy for all TF models to test this.
The benchmarking utilities may help.
It may also help to use torch.cuda.max_memory...
@patrickvonplaten may have further thoughts!
Metadata
Metadata
Assignees
Labels
BenchmarksIssues related to Memory regressions in tests and scriptsIssues related to Memory regressions in tests and scriptsHelp wantedExtra attention is needed, help appreciatedExtra attention is needed, help appreciatedTestsRelated to testsRelated to testsWIPLabel your PR/Issue with WIP for some long outstanding Issues/PRs that are work in progressLabel your PR/Issue with WIP for some long outstanding Issues/PRs that are work in progress