Skip to content

use device agnostic torch.OutOfMemoryError from pytorch 2.5.0#3475

Merged
SunMarc merged 1 commit intohuggingface:mainfrom
yao-matrix:oom_newapi
Apr 2, 2025
Merged

use device agnostic torch.OutOfMemoryError from pytorch 2.5.0#3475
SunMarc merged 1 commit intohuggingface:mainfrom
yao-matrix:oom_newapi

Conversation

@yao-matrix
Copy link
Contributor

From PyTorch 2.5.0, we don't need platform-dependent OutOfMemoryError API, there is a unified one torch.OutOfMemoryError.

Signed-off-by: YAO Matrix <matrix.yao@intel.com>
@yao-matrix
Copy link
Contributor Author

@SunMarc @muellerzr , pls help review, thx.

Copy link
Member

@SunMarc SunMarc left a comment

Choose a reason for hiding this comment

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

Thanks !

@HuggingFaceDocBuilderDev

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.

@SunMarc SunMarc merged commit 3cf5e4c into huggingface:main Apr 2, 2025
25 checks passed
@yao-matrix yao-matrix deleted the oom_newapi branch April 2, 2025 23:26
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.

3 participants