mirror of
https://github.com/p-e-w/heretic.git
synced 2026-12-03 18:42:57 +07:00
[PR #52] [MERGED] Implement Magnitude-Preserving Orthogonal Ablation #256
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#256
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?
📋 Pull Request Information
Original PR: https://github.com/p-e-w/heretic/pull/52
Author: @spikymoth
Created: 11/26/2025
Status: ✅ Merged
Merged: 2/2/2026
Merged by: @p-e-w
Base:
master← Head:implement-mpoa📝 Commits (8)
d6bdbf9feat: add support for winsorizing the residuals36e49d5feat: implement magnitude-preserving orthogonal ablation97f8e7bprefer 'good' and 'bad' over 'harmless' and 'harmful'1cc01fdclarify how winsorization is applied1a3cb54store and reuse full peft_configfeb617eremove unneeded cast0d19e16make LoRA rank configurable for full normalization3ddc9e8explain why the singular values are split across the components📊 Changes
4 files changed (+147 additions, -23 deletions)
View changed files
📝
config.default.toml(+21 -0)📝
src/heretic/config.py(+44 -0)📝
src/heretic/main.py(+16 -5)📝
src/heretic/model.py(+66 -18)📄 Description
That is, https://huggingface.co/blog/grimjim/projected-abliteration and https://huggingface.co/blog/grimjim/norm-preserving-biprojected-abliteration with the updated name from https://huggingface.co/posts/grimjim/803126534676334 :)
Marking this as a draft mostly because I don't know the timeline for https://github.com/p-e-w/heretic/pull/43 - either this will need to be rebased on that, or that on this. But the code changes here are relatively small, so I think either direction should be simple enough.
A few notes:
Additional caveats:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.