1
0
Fork 0
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

Closed
opened 2026-11-01 04:17:27 +07:00 by bsakaguchi · 4 comments
Owner

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?

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?
Author
Owner

@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

<!-- gh-comment-id:3901767600 --> @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
Author
Owner

@red40maxxer commented on GitHub (Feb 17, 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

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?

<!-- gh-comment-id:3917572465 --> @red40maxxer commented on GitHub (Feb 17, 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 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?
Author
Owner

@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

<!-- gh-comment-id:3919475579 --> @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
Author
Owner

@p-e-w commented on GitHub (Apr 7, 2026):

We do inference with Transformers, so this is most likely an upstream issue.

<!-- gh-comment-id:4199154690 --> @p-e-w commented on GitHub (Apr 7, 2026): We do inference with Transformers, so this is most likely an upstream issue.
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
p-e-w/heretic#93
No description provided.