mirror of
https://github.com/p-e-w/heretic.git
synced 2026-12-03 20:44:21 +07:00
[GH-ISSUE #153] Very low GPU utilization / tps when using GLM architecture #93
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#93
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 (Feb 14, 2026).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/153
Hello!
I'm using heretic on a GLM-Air 106b A12 derivative using a single H100. The model is being quantized to 4bit bnb to fit into the card. Despite it fitting successfully with a spare space for the batches, the token generation in batch size search is around 1-2, (and not really improving with batch size increase). This is a very low result, the model fits fully into the GPU, no RAM impact in nvtop.
The nvtop GPU utilization is around 16%, which is suspicious.
When I'm using smaller models on my PC (56 VRAM) even for LLaMA 70b the speed is ~10+ tps and the generations are fast.
Do you know what might be the cause?
@kabachuha commented on GitHub (Feb 14, 2026):
Also, enable_thinking argument is probably needed, because in Qwen it defaults to False, and in GLM to True, so it thinks by default, which is worse for refusal count computation, I suppose
https://github.com/p-e-w/heretic/pull/50
Similar to this issue
@red40maxxer commented on GitHub (Feb 17, 2026):
Does GLM not use
<think></think>for COT? It should be detected and suppressed automatically, what does the common prefix detection step say when you do a run?@kabachuha commented on GitHub (Feb 18, 2026):
@red40maxxer Yes, after opening the issue I read over the code and noticed the prefix detection. Thanks for the reminder.
The low speed is to be addressed though
When quantized to Q4 GLM Air has 20+ tokens on my PC (dual GPU), even with RAM offload enabled.
The test is on a single H100 where GLM Air fits fully and has ~1 t/s which is insanely low
@p-e-w commented on GitHub (Apr 7, 2026):
We do inference with Transformers, so this is most likely an upstream issue.