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

Updated mlx-lm kvcache creation #1260

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

cmcmaster1
Copy link

@cmcmaster1 cmcmaster1 commented Nov 11, 2024

Updated to match the latest version of mlx-lm (and updated requirements to mlx-lm>=0.19.2)
Also wrote a short test file.

See this commit in mlx-lm where the KVCache was updated: ml-explore/mlx-examples#1015

This fixes #1225

@scampion
Copy link
Contributor

I confirm, it fix #1225

@ulfaslaktccc
Copy link

I confirm, it fix #1225

Same, I had the same problem, and this small update was an immediate fix.

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.

AttributeError: 'Model' object has no attribute 'n_kv_heads' - Using MLX
3 participants