Skip to content

Catch ROCM/HIP/AMD oom in should_reduce_batch_size#812

Merged
clefourrier merged 3 commits intohuggingface:mainfrom
mcleish7:rocm-oom
Jun 23, 2025
Merged

Catch ROCM/HIP/AMD oom in should_reduce_batch_size#812
clefourrier merged 3 commits intohuggingface:mainfrom
mcleish7:rocm-oom

Conversation

@mcleish7
Copy link
Copy Markdown
Contributor

The ROCM/HIP/AMD oom message is missing from should_reduce_batch_size in utils meaning that an OOM occurs during start up on AMD GPUs. Super simple fix :)

Copy link
Copy Markdown
Member

@clefourrier clefourrier left a comment

Choose a reason for hiding this comment

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

hi, thanks for change, lgtm

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown
Collaborator

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@clefourrier
Copy link
Copy Markdown
Member

Hi, can you fix the code style?

@mcleish7
Copy link
Copy Markdown
Contributor Author

Should be formatted right now

@clefourrier
Copy link
Copy Markdown
Member

Perf, thanks!

@clefourrier clefourrier merged commit 95ec669 into huggingface:main Jun 23, 2025
4 checks passed
@NathanHB NathanHB added the bug label Sep 15, 2025
NathanHB pushed a commit that referenced this pull request Sep 19, 2025
* Catch ROCM/HIP oom in should_reduce_batch_size

* fix formatting

---------

Co-authored-by: Clémentine Fourrier <22726840+clefourrier@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants