8000 FIX: Package checks for torchao, EETQ by BenjaminBossan · Pull Request #2320 · huggingface/peft · GitHub
[go: up one dir, main page]

Skip to content

FIX: Package checks for torchao, EETQ #2320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

BenjaminBossan
Copy link
Member
@BenjaminBossan BenjaminBossan commented Jan 10, 2025

Torchao

Under some unknown circumstances, it can happen that even though importlib.util.find_spec("torchao") is not None, importlib_metadata.version("torchao") still fails. This error is now caught, same as in diffusers. The error was noticed in the diffusers CI.

EETQ

This is basically a revert of #2226. That PR had to add a check to the EETQ import as EETQ was broken for some time with latest transformers (see NetEase-FuXi/EETQ#34 for context) but that has been fixed.

Torchao

Under some unknown circumstances, it can happen that even though
importlib.util.find_spec("torchao") is not None,
importlib_metadata.version("torchao") still fails. This error is now
caught. This error was noticed in the diffusers CI.

EETQ

This is basically a revert of huggingface#2226. That PR had to add a check to the
EETQ import as EETQ was broken for some time with latest
transformers (see NetEase-FuXi/EETQ#34 for
context) but that has been fixed.
@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.

Copy link
Member
@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

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

Thanks a lot, Ben!

@BenjaminBossan
Copy link
Member Author

The one failing CI run is independent of this PR and fixed via #2314.

@BenjaminBossan BenjaminBossan merged commit b345a6e into huggingface:main Jan 10, 2025
13 of 14 checks passed
@BenjaminBossan BenjaminBossan deleted the import-check-fixes-torchao-eetq branch January 10, 2025 15:33
Guy-Bilitski pushed a commit to Guy-Bilitski/peft that referenced this pull request May 13, 2025
Torchao

Under some unknown circumstances, it can happen that even though
importlib.util.find_spec("torchao") is not None,
importlib_metadata.version("torchao") still fails. This error is now
caught. This error was noticed in the diffusers CI.

EETQ

This is basically a revert of huggingface#2226. That PR had to add a check to the
EETQ import as EETQ was broken for some time with latest
transformers (see NetEase-FuXi/EETQ#34 for
context) but that has been fixed.
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
0