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

mlx_lm support for Bloom models #1187

Open
psambit9791 opened this issue Jan 2, 2025 · 1 comment
Open

mlx_lm support for Bloom models #1187

psambit9791 opened this issue Jan 2, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@psambit9791
Copy link

Thanks for building the mlx_lm library - it is absolutely great to work with this.

I was trying to work with this huggingface model: bigscience/bloom-560m (Link: https://huggingface.co/bigscience/bloom-560m) and while trying to convert using the mlx_lm.convert() command, I encountered this error:

Traceback (most recent call last):
  File "<path>/venv/lib/python3.10/site-packages/mlx_lm/utils.py", line 123, in _get_classes
    arch = importlib.import_module(f"mlx_lm.models.{model_type}")
  File "<path>/.pyenv/versions/3.10.13/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'mlx_lm.models.bloom'

Is there any plan to add support for bloom models?

@awni
Copy link
Member

awni commented Jan 2, 2025

It's not exactly on the roadmap.. but we would be happy to accept it as a contribution.

@awni awni added the enhancement New feature or request label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants