[GH-ISSUE #16] q5_k_m is not supported? #12

Closed
opened 2026-10-29 14:32:38 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @keyonzeng on GitHub (Jul 31, 2024).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/16

I have checked custom_gguf.py and find that q5_k_m is not supported because function dequantize_q5_k_gpu does nothing.

image

so what is the problem with supporting q5_k_m model?

Originally created by @keyonzeng on GitHub (Jul 31, 2024). Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/16 I have checked custom_gguf.py and find that q5_k_m is not supported because function dequantize_q5_k_gpu does nothing. <img width="225" alt="image" src="https://github.com/user-attachments/assets/eb1ee5cc-ca50-4662-9f02-d29b9ad37c49"> so what is the problem with supporting q5_k_m model?
Author
Owner

@Azure-Tang commented on GitHub (Jul 31, 2024):

Yes, we have supported all cpu dequant, but q5km's gpu dequant is on the way, only Q4km and Q8_0 gpu dequant are supported now. If you really need q5k I can open cpu dequant for you, but it will be 10x slower when you loading your model.

<!-- gh-comment-id:2259607344 --> @Azure-Tang commented on GitHub (Jul 31, 2024): Yes, we have supported all cpu dequant, but q5km's gpu dequant is on the way, only Q4km and Q8_0 gpu dequant are supported now. If you really need q5k I can open cpu dequant for you, but it will be 10x slower when you loading your model.
Author
Owner

@BITcyman commented on GitHub (Aug 16, 2024):

So sorry to let you wait so long. We have supported q5_k dequant on gpu now. Other dequant types (q2_k and q3_k) on gpu have been supported as well. You can find more details in ktransformers/utils/custom_gguf.py and ktransformers/ktransformers_ext/cuda/custom_gguf/dequant.cu.

<!-- gh-comment-id:2293510673 --> @BITcyman commented on GitHub (Aug 16, 2024): So sorry to let you wait so long. We have supported q5_k dequant on gpu now. Other dequant types (q2_k and q3_k) on gpu have been supported as well. You can find more details in ktransformers/utils/custom_gguf.py and ktransformers/ktransformers_ext/cuda/custom_gguf/dequant.cu.
Author
Owner

@344303947 commented on GitHub (Mar 17, 2025):

Help: how much extra memory is needed for q5_k_m to run in addition to the model 443GB, and can 512GB run?
求助:q5_k_m 运行除了模型443GB 还需要多少额外的内存,512GB能run起来?

<!-- gh-comment-id:2728469293 --> @344303947 commented on GitHub (Mar 17, 2025): Help: how much extra memory is needed for q5_k_m to run in addition to the model 443GB, and can 512GB run? 求助:q5_k_m 运行除了模型443GB 还需要多少额外的内存,512GB能run起来?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kvcache-ai/ktransformers#12
No description provided.