mirror of
https://github.com/p-e-w/heretic.git
synced 2026-12-03 18:42:57 +07:00
[GH-ISSUE #125] load in 4bit support #71
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#71
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 @SicariusSicariiStuff on GitHub (Feb 1, 2026).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/125
currently it would load an already quantized model, but it would be immensely helpful to have a flag like -4-bit to load a full precision model in 4 bits, using the 4bit for computing refusals, and saving back into fp16\bf16
@p-e-w commented on GitHub (Feb 2, 2026):
This is already supported. Check out the
quantizationoption in the config. It uses a LoRA adapter for abliteration, and when optimization is finished, the adapter is applied to the full precision model for export.@SicariusSicariiStuff commented on GitHub (Feb 3, 2026):
i did, but even when using config.default.toml (renaming to config.toml) i get:
@MagicalAlchemist commented on GitHub (Feb 4, 2026):
Install via
pip install git+https://github.com/p-e-w/heretic.gitinstead original onep̶i̶p̶ ̶i̶n̶s̶t̶a̶l̶l̶ ̶-̶U̶ ̶h̶e̶r̶e̶t̶i̶c̶-̶l̶l̶m@p-e-w commented on GitHub (Feb 8, 2026):
As indicated by @MagicalAlchemist, quantization currently requires installing Heretic from master (though I intend to make a new release in the next few days).