Skip to content

Avoid GPT-2 daily CI job OOM (in TF tests)#24106

Merged
ydshieh merged 2 commits intomainfrom
fix_gpt2_daily_ci_oom
Jun 8, 2023
Merged

Avoid GPT-2 daily CI job OOM (in TF tests)#24106
ydshieh merged 2 commits intomainfrom
fix_gpt2_daily_ci_oom

Conversation

@ydshieh
Copy link
Copy Markdown
Collaborator

@ydshieh ydshieh commented Jun 8, 2023

What does this PR do?

Clear (as much as possible) GPU memory usage allocated by torch, so the TF tests (GPT-2) get more room and make @Rocketknight1 's life easier 😆.

Some (TF) tests get OOM after #23234.

Note, the changes in this PR are in torch test files instead of TF test files! This is similar to #16881, which has more details mentioned.

Running manually and all gpt2 tests pass now.

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

HuggingFaceDocBuilderDev commented Jun 8, 2023

The documentation is not available anymore as the PR was closed or merged.

Copy link
Copy Markdown
Contributor

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks for working on this!

@ydshieh ydshieh merged commit 2e2088f into main Jun 8, 2023
@ydshieh ydshieh deleted the fix_gpt2_daily_ci_oom branch June 8, 2023 16:21
@ydshieh ydshieh mentioned this pull request Jun 8, 2023
novice03 pushed a commit to novice03/transformers that referenced this pull request Jun 23, 2023
* fix

* fix

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants