mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #87] are marline and q4k totally equivalent? #44
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Eutenacity on GitHub (Sep 13, 2024).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/87
sorry i am not familiar with quantization. i found you transfer q4k into fp32 and then quantize to 4 bit with marline. so i am curious whether marline and q4k are totally equivalent? dose this kind of transfer affect accuracy
@Azure-Tang commented on GitHub (Sep 14, 2024):
This approach will inevitably result in some loss of precision, but I believe it won’t have a significant impact, especially since we’re already using Q4 quantization.
@Eutenacity commented on GitHub (Sep 19, 2024):
ggml also provide fast matmul cuda kernel. Why not use it which is exactly fit with q4_k, q4_m and so on.
@Azure-Tang commented on GitHub (Sep 23, 2024):
The challenge is that GGML’s matrix multiplication is deeply intertwined with its memory allocation system, making it difficult to extract and reuse separately.
@Eutenacity commented on GitHub (Oct 7, 2024):
I try to use ggml matmul in the pytorch. I put my code in the https://github.com/Eutenacity/python-ggml-matmul
I hope this can help.
But I can not use PyTorch cudaprah to capture the matmul.
@Azure-Tang commented on GitHub (Oct 8, 2024):
Not being able to use cudagraph significantly slows down the generation speed. Let’s see if we can figure this out.
GLIBCXX_3.4.30 not found和CUDA error: no kernel image is available for execution on the device#193