Skip to content

use importlib machinery to check for habana plugin#1910

Merged
matthewdouglas merged 3 commits intobitsandbytes-foundation:mainfrom
scw:gaudi-import-fix
Apr 3, 2026
Merged

use importlib machinery to check for habana plugin#1910
matthewdouglas merged 3 commits intobitsandbytes-foundation:mainfrom
scw:gaudi-import-fix

Conversation

@scw
Copy link
Copy Markdown
Contributor

@scw scw commented Apr 3, 2026

Not all environments have pip, and even fewer have grep (e.g. Windows platforms), and the shell command is relatively costly for larger environments. Instead, use the stdlib infrastructure with importlib to identify the version of habana-torch-plugin if it is installed.

Not all environments have pip, and even fewer have grep (e.g. Windows
platforms), and the shell command is relatively costly for
larger environments. Instead, use the stdlib infrastructure with
`importlib` to identify the version of `habana-torch-plugin` if it is
installed.
@matthewdouglas matthewdouglas added this to the v0.50.0 milestone Apr 3, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

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
Member

@matthewdouglas matthewdouglas left a comment

Choose a reason for hiding this comment

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

LGTM, except for one minor nit. Thanks!

@matthewdouglas matthewdouglas merged commit 4986b43 into bitsandbytes-foundation:main Apr 3, 2026
91 checks passed
@scw
Copy link
Copy Markdown
Contributor Author

scw commented Apr 3, 2026

Thanks for the quick turnaround on the PR!

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.

2 participants