Mlx-lm import hangs even though it is installed

Hi all, my code was working fine until last night and I fine-tuned a model, but now even mlx-lm import is hanging. I have reinstalled mlx-lm but it is still hanging, even from the python interpreter

from mlx_lm import generate, load
hangs

Even though mlx and mlx-lm are installed

mlx==0.21.1
mlx-lm==0.20.5

mlx_lm from the terminal gives the error

command not found: mlx_lm

1 Like

This was resolved by deleting the repository and recloning from git, then generating the environment afresh. It is likely some dependencies got corrupted.