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

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Updated mlx-lm kvcache creation #1260

merged 1 commit into from
Nov 27, 2024

Conversation

cmcmaster1
Copy link
Contributor

@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.

@rlouf
Copy link
Member

rlouf commented Nov 27, 2024

Thank you for your contribution. Really appreciate you adding tests!

@rlouf
Copy link
Member

rlouf commented Nov 27, 2024

The tests fail for unrelated reasons. I fixed the styling issue and force-pushed on your branch

@rlouf rlouf merged commit 7cdaeac into dottxt-ai:main Nov 27, 2024
6 of 7 checks passed
@rlouf
Copy link
Member

rlouf commented Nov 27, 2024

Thank for contributing!

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
4 participants