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

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

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

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

@p-e-w commented on GitHub (Feb 2, 2026):

This is already supported. Check out the quantization option 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.

<!-- gh-comment-id:3834697346 --> @p-e-w commented on GitHub (Feb 2, 2026): This is already supported. Check out the `quantization` option 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.
Author
Owner

@SicariusSicariiStuff commented on GitHub (Feb 3, 2026):

i did, but even when using config.default.toml (renaming to config.toml) i get:

Configuration contains 7 errors:
quantization: Extra inputs are not permitted
orthogonalize_direction: Extra inputs are not permitted
row_normalization: Extra inputs are not permitted
full_normalization_lora_rank: Extra inputs are not permitted
print_responses: Extra inputs are not permitted
kl_divergence_target: Extra inputs are not permitted
winsorization_quantile: Extra inputs are not permitted
<!-- gh-comment-id:3838567562 --> @SicariusSicariiStuff commented on GitHub (Feb 3, 2026): i did, but even when using config.default.toml (renaming to config.toml) i get: ``` Configuration contains 7 errors: quantization: Extra inputs are not permitted orthogonalize_direction: Extra inputs are not permitted row_normalization: Extra inputs are not permitted full_normalization_lora_rank: Extra inputs are not permitted print_responses: Extra inputs are not permitted kl_divergence_target: Extra inputs are not permitted winsorization_quantile: Extra inputs are not permitted ```
Author
Owner

@MagicalAlchemist commented on GitHub (Feb 4, 2026):

Install via pip install git+https://github.com/p-e-w/heretic.git instead original onep̶i̶p̶ ̶i̶n̶s̶t̶a̶l̶l̶ ̶-̶U̶ ̶h̶e̶r̶e̶t̶i̶c̶-̶l̶l̶m

<!-- gh-comment-id:3848555549 --> @MagicalAlchemist commented on GitHub (Feb 4, 2026): Install via `pip install git+https://github.com/p-e-w/heretic.git` instead original one`p̶i̶p̶ ̶i̶n̶s̶t̶a̶l̶l̶ ̶-̶U̶ ̶h̶e̶r̶e̶t̶i̶c̶-̶l̶l̶m`
Author
Owner

@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).

<!-- gh-comment-id:3866035678 --> @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).
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#71
No description provided.