Skip to content

Faster Q5_K and Q6_K on Metal #2294

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

Merged
merged 3 commits into from
Jul 20, 2023
Merged

Faster Q5_K and Q6_K on Metal #2294

merged 3 commits into from
Jul 20, 2023

Conversation

ikawrakow
Copy link
Contributor

Along the same lines as #2290. Here the speedup is not quite as large as for Q4_K, but still significant:

Model Master This PR Speedup
Q5_K_S 7B 26.2 22.8 14.9%
Q5_K_S 13B 46.1 39.3 17.4%
Q5_K_S 33B 115.5 97.0 19.1%
Q5_K_S 65B 214.6 181.1 18.5%
Q6_K 7B 25.6 24.6 4.1%
Q6_K 13B 46.1 44.3 4.1%
Q6_K 33B 116.6 111.0 5.0%

Table shows token generation time in ms/t on M2 Max with 30-core GPU. The system has 64 GB RAM and the 65B Q6_K model does not run successfully.

@ikawrakow ikawrakow requested a review from ggerganov July 20, 2023 14:10
@ikawrakow ikawrakow merged commit e782c9e into master Jul 20, 2023
@ikawrakow ikawrakow mentioned this pull request Jul 20, 2023
@j-f1 j-f1 deleted the ik/metal_faster_q6k branch July 21, 2023 12:43
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.

3 participants