Skip to content

Update utils.py #48

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update utils.py #48

wants to merge 1 commit into from

Conversation

cmcmaster1
Copy link
Contributor

The latest version of mlx-lm moves these functions to the generate.py file.

The latest version of mlx-lm moves these functions to the generate.py file.
@@ -24,8 +24,8 @@
from mlx_lm import models as lm_models
Copy link

Choose a reason for hiding this comment

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

They also moved import load to mlx.utils

So, we need to change this:

from mlx_lm import load as lm_load

to

from mlx_lm.utils import load as lm_load

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.

2 participants