mirror of
https://github.com/p-e-w/heretic.git
synced 2026-12-03 18:42:57 +07:00
[GH-ISSUE #453] Native GGUFs in transformers! #207
Labels
No labels
bug
enhancement
enhancement
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
p-e-w/heretic#207
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 @kabachuha on GitHub (Sep 23, 2026).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/453
https://huggingface.co/blog/transformers-llama-cpp-quants
https://old.reddit.com/r/LocalLLaMA/comments/1wnxm0r/ggufs_in_transformers_natively/
@woct0rdho:
@p-e-w commented on GitHub (Sep 23, 2026):
Yup, I saw it. This is great news, but I can't find any details on how it works. Do they have custom kernels for every quantized weight format, or are they dequantizing on-the-fly during inference?
@woct0rdho commented on GitHub (Sep 23, 2026):
The goal is to have custom kernels for every quant type and every hardware (of course it's big work, although most of the work is to create Python wrappers for libggml). For now the HF guys made some kernels for Apple and I made some kernels for Strix Halo. When there is no kernel it falls back to dequantizing on-the-fly using torch, but at least that saves memory compared to dequantizing the whole model from the beginning (and we can make it a bit faster by applying torch.compile just on the dequant function).