Downloads · 30 days
416
83% of all-time downloads
grimjim/Mistral-7B-Instruct-v0.2-8bit-abliterated-layer18
Mistral-7B-Instruct-v0.2-8bit-abliterated-layer18 is a text generation model from grimjim. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model was abliterated by computing a refusal vector an 8-bit bitsandbytes quant, and then applying the vector to the full weight model. Abliteration was performed locally using a CUDA GPU, the VRAM memory consump…
Downloads · 30 days
416
83% of all-time downloads
All-time downloads
501
Public
Parameters
7.2B
14.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors14.5 GB · 100%
From the Hugging Face model README
This model was abliterated by computing a refusal vector an 8-bit bitsandbytes quant, and then applying the vector to the full weight model. Abliteration was performed locally using a CUDA GPU, the VRAM memory consumption appeared to be constrained to be under 12GB.
Layer 18 was selected for derivation of the refusal direction, as measurements of the refusal direction magnitude, signal-to-noise ratio, and angle between the means of the "harmful" and "harmless" directions suggested that intervention based on this layer would be relatively efficient and effective.
No additional fine-tuning was performed on these weights. Repair is required for proper use.
The code used can be found on Github at https://github.com/jim-plus/llm-abliteration.
(My prior attempt relied on default values within the codebase, which turned out to be less effective than this intervention.)