Skip to content
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

huggingface_hub 0.25 causes error upon importing from mlx_lm #988

Closed
arogister opened this issue Sep 17, 2024 · 1 comment · Fixed by #990
Closed

huggingface_hub 0.25 causes error upon importing from mlx_lm #988

arogister opened this issue Sep 17, 2024 · 1 comment · Fixed by #990

Comments

@arogister
Copy link

I have noticed this error upon importing from mlx_lm. I have found out that it seems due to a breaking change in huggingface_hub 0.25, which was released today. I reverted to HF_hub version 0.24.6 and this fixes the problem.

Python 3.12.6 (main, Sep 9 2024, 21:36:32) [Clang 18.1.8 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.

from mlx_lm import load, generate
Traceback (most recent call last):
File "", line 1, in
File "/Users/arogister/Documents/mlx/.venv/lib/python3.12/site-packages/mlx_lm/init.py", line 3, in
from .utils import convert, generate, load, stream_generate
File "/Users/arogister/Documents/mlx/.venv/lib/python3.12/site-packages/mlx_lm/utils.py", line 17, in
from huggingface_hub.utils._errors import RepositoryNotFoundError
ModuleNotFoundError: No module named 'huggingface_hub.utils._errors'

@awni
Copy link
Member

awni commented Sep 17, 2024

Well I guess it's a private variable so we probably shouldn't be using that.

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 a pull request may close this issue.

2 participants