mirror of
https://github.com/p-e-w/heretic.git
synced 2026-12-03 18:42:57 +07:00
[GH-ISSUE #123] Bug: Double VRAM usage during refusal direction calculation when using quantization #69
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#69
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 @stepfunction83 on GitHub (Jan 29, 2026).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/123
When using bnb_4bit quantization, the VRAM used for running heretic on 12B Mistral NeMo in the first stage of the process (refusal direction calculation) is roughly double the VRAM needed for the evaluation stage of the process.
Refusal direction calculation total VRAM usage: 23.9GB
Evaluation total VRAM usage: 12.8GB
My settings are:
With 500 total bad/good prompts and 100 bad/good evaluation prompts
@p-e-w commented on GitHub (Jan 30, 2026):
Can you try a smaller model without special
max_memoryconfiguration to make this problem easier to pin down?@p-e-w commented on GitHub (Feb 8, 2026):
I am still unable to reproduce this. For a 4B model with quantization enabled, VRAM usage peaked at 2.53 GB for me.
@kalle07 commented on GitHub (Feb 18, 2026):
same on model granite-8b, 16gb VRAM
no max_memory options, only set to "bnb_4bit"
until preparing full VRAM after training starts arround 8GB
@p-e-w commented on GitHub (Apr 7, 2026):
Fixed in #239.