Example code not working

#1
by karmiq - opened

Hello, when I try the example code listed on the page, I'm getting an error.

First, the mlx-examples/llms/hf_llm folder is not found. There's a mlx-examples/llms/mlx_lm folder, but when I run the command:

python generate.py --model mlx-community/multilingual-e5-small-mlx --prompt "My name is"

I'm getting an error:

Traceback (most recent call last):
  File "/.../.../mlx-examples/llms/mlx_lm/generate.py", line 6, in <module>
    from .utils import generate_step, load
ImportError: attempted relative import with no known parent package

Can you please give some advice about how to use the model?

Sign up or log in to comment