Skip to content

Conversation

vivekgoe
Copy link
Contributor

Fixes following failure for HPU/Gaudi tests,
ImportError: cannot import name '_reverse_4bit_compress_format' from 'bitsandbytes.utils' (/usr/local/lib/python3.10/dist-packages/bitsandbytes/utils.py)

Fix is to define this function within backends/hpu/ops.py. This function is needed to maintain backward compatibility with older Gaudi SW releases.

@matthewdouglas matthewdouglas added this to the v0.48.0 milestone Sep 18, 2025
matthewdouglas
matthewdouglas previously approved these changes Sep 18, 2025
Copy link
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, thanks! If you don't mind, there's just a small lint issue. Will merge after that's fixed!

Copy link

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.

@vivekgoe vivekgoe force-pushed the reverse_4bit_compress branch from db0b5b6 to a7259df Compare September 19, 2025 03:58
@vivekgoe
Copy link
Contributor Author

@matthewdouglas Thanks for quick review. I have fixed the lint error now.

@matthewdouglas matthewdouglas merged commit 2adcb7a into bitsandbytes-foundation:main Sep 19, 2025
47 checks passed
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