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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fastmlx/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

from mlx_lm.sample_utils import make_sampler
from mlx_lm.tokenizer_utils import TokenizerWrapper
from mlx_lm.utils import generate_step
from mlx_lm.utils import stream_generate as lm_stream_generate
from mlx_lm.generate import generate_step
from mlx_lm.generate import stream_generate as lm_stream_generate
from mlx_vlm import load as vlm_load
from mlx_vlm import models as vlm_models
from mlx_vlm.utils import load_image_processor
Expand Down
Loading