Skip to content

Fix utils package#2141

Merged
regisss merged 1 commit into
huggingface:mainfrom
HabanaAI:dev/pbielak/fix-utils
Jul 11, 2025
Merged

Fix utils package#2141
regisss merged 1 commit into
huggingface:mainfrom
HabanaAI:dev/pbielak/fix-utils

Conversation

@pbielak
Copy link
Copy Markdown
Collaborator

@pbielak pbielak commented Jul 11, 2025

What does this PR do?

A previous PR [1] introduced a new package optimum.habana.utils which created a conflict with the optimum/habana/utils.py file. This commit adds the missing utils/__init__.py file and moves the utils.py file into the utils/ module (renamed as misc.py).

[1] #1926

A previous PR [1] introduced a new package `optimum.habana.utils`
which created a conflict with the `optimum/habana/utils.py` file.
This commit adds the missing `utils/__init__.py` file and moves the
`utils.py` file into the `utils/` module (renamed as `misc.py`).

[1] huggingface#1926
@pbielak pbielak marked this pull request as ready for review July 11, 2025 13:08
@pbielak pbielak requested a review from regisss as a code owner July 11, 2025 13:08
@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

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.

Copy link
Copy Markdown
Collaborator

@regisss regisss left a comment

Choose a reason for hiding this comment

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

LGTM

@regisss regisss merged commit 15df8d2 into huggingface:main Jul 11, 2025
2 of 5 checks passed
astachowiczhabana added a commit that referenced this pull request Jul 11, 2025
Fix utils package

A previous PR [1] introduced a new package `optimum.habana.utils`
which created a conflict with the `optimum/habana/utils.py` file.
This commit adds the missing `utils/__init__.py` file and moves the
`utils.py` file into the `utils/` module (renamed as `misc.py`).

[1] #1926

Co-authored-by: Piotr Bielak <pbielak@habana.ai>
@pbielak pbielak deleted the dev/pbielak/fix-utils branch July 14, 2025 08:07
astachowiczhabana pushed a commit that referenced this pull request Sep 10, 2025
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