abliteration.org
Get the app

Two ways to read this site

Technical mode is the default: exact terms and codes, for engineers, researchers, journalists and companies. Simple mode gives the same facts in plain words, for anyone who wants a model that runs on their own computer. You can switch at any time at the top of the page.

technical
MLX weights for Apple silicon (M1 or later), usually quantized to 4 or 8 bits.
simple
Made for Macs with Apple silicon (M1 or newer), usually compressed to 4 or 8 bits.

CounterSteer/overrefusal-artifacts

published by @CounterSteer

Safety benchmarks, over-refusal tests, and guard-model data.Safety tests and tests for refusing harmless requests.

size_categories:n<1Kmodality:tabularmodality:textregion:usactivation-steeringrepresentation-engineeringrefusalinterpretability
Lifetime downloads
197
Last 30 days
70
Likes
-
Size
341.0 MB

Description

CounterSteer steering-vector artifacts

This release contains the curated steering directions and frozen configurations used in the over-refusal experiments. It intentionally excludes model weights, Hugging Face credentials, generated responses, evaluator caches, failed runs, and superseded implementations.

The implementation corresponding to these artifacts is available at Shiqi-Jiang/negative-alignment-nas, commit 226b517b28f6519911282fbf2c614211911a540f.

Included… See the full description on the dataset page: https://huggingface.co/datasets/CounterSteer/overrefusal-artifacts.

Used by uncensored models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.No model in our catalog lists this dataset yet. It may be used without being listed, used for other work, or simply be new. The list fills in by itself as models are added.

MetadataDetails

Created on HFCreated
2026-09-17 · 2 months ago
Size category
n<1K
ModalitiesData types
tabulartext

Related datasets same stage · Evaluatesame step · Testing

Read further

Total size
341.0 MB
Files
126
Formats
json, pt, npz
Head
da13701
Last updated on HFLast updated
2026-09-26

Download the dataset

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.Each of these lines of code downloads the dataset straight from Hugging Face, with your own Hugging Face login.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("CounterSteer/overrefusal-artifacts")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="CounterSteer/overrefusal-artifacts", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/CounterSteer/overrefusal-artifacts

Files by folder from our last crawlfrom our last check

top level 5 files 31.6 KB
.gitattributes 2.5 KB file download
manifest.json 14.3 KB json download
README.md 9.8 KB md download
UPLOAD.md 680 B md download
validate.py 4.4 KB py download
gemma-2-9b-it/ 27 files 3.1 MB
.DS_Store 8.2 KB file download
caa/audit.json 1.3 KB json download
caa/caa.pt 610.9 KB pt download
caa/direction.pt 610.9 KB pt download
caa/frozen_selection.json 9.5 KB json download
caa/metadata.json 1.8 KB json download
caa/provenance.json 605 B json download
config.json 3.7 KB json download
cs-grad/audit.json 5.2 KB json download
cs-grad/direction.pt 613.7 KB pt download
cs-grad/metadata.json 1.9 KB json download
cs-grad/provenance.json 250 B json download
cs-lora/audit.json 10.5 KB json download
cs-lora/direction.pt 610.9 KB pt download
cs-lora/frozen_selection.json 9.8 KB json download
cs-lora/metadata.json 3.0 KB json download
cs-lora/provenance.json 667 B json download
cs-lora/README.md 326 B md download
direction-ablation/direction.pt 15.5 KB pt download
direction-ablation/metadata.json 1.4 KB json download
direction-ablation/provenance.json 1.7 KB json download
direction-ablation/selected_direction.json 349 B json download
direction-ablation/token_protocol.json 1.2 KB json download
lat-pca/audit.json 5.7 KB json download
lat-pca/direction.pt 613.7 KB pt download
lat-pca/metadata.json 2.0 KB json download
lat-pca/provenance.json 918 B json download
llama-3.1-8b-instruct/ 26 files 2.7 MB
caa/audit.json 1.1 KB json download
caa/caa.pt 531.2 KB pt download
caa/direction.pt 531.2 KB pt download
caa/frozen_selection.json 932 B json download
caa/metadata.json 1.7 KB json download
caa/provenance.json 605 B json download
config.json 3.6 KB json download
cs-grad/audit.json 4.0 KB json download
cs-grad/direction.pt 533.3 KB pt download
cs-grad/metadata.json 1.9 KB json download
cs-grad/provenance.json 246 B json download
cs-lora/audit.json 10.3 KB json download
cs-lora/direction.pt 531.2 KB pt download
cs-lora/frozen_selection.json 7.9 KB json download
cs-lora/metadata.json 2.9 KB json download
cs-lora/provenance.json 667 B json download
cs-lora/README.md 338 B md download
direction-ablation/direction.pt 17.6 KB pt download
direction-ablation/metadata.json 1.4 KB json download
direction-ablation/provenance.json 1.7 KB json download
direction-ablation/selected_direction.json 351 B json download
direction-ablation/token_protocol.json 1.1 KB json download
lat-pca/audit.json 4.4 KB json download
lat-pca/direction.pt 533.3 KB pt download
lat-pca/metadata.json 2.0 KB json download
lat-pca/provenance.json 918 B json download
llama-3.1-8b-positive-target/ 9 files 168.3 MB
adapter/adapter_config.json 864 B json download
adapter/adapter_model.safetensors 167.8 MB safetensors download
manifest.json 1.1 KB json download
metadata/direction_provenance.json 585 B json download
metadata/runtime.json 76 B json download
metadata/target_generation.json 1.1 KB json download
metadata/training_config.json 2.7 KB json download
README.md 4.2 KB md download
vectors/positive.npz 477.7 KB npz download
qwen2.5-3b-instruct/ 22 files 1.6 MB
caa/audit.json 1.2 KB json download
caa/caa.pt 302.5 KB pt download
caa/direction.pt 302.5 KB pt download
caa/frozen_selection.json 8.2 KB json download
caa/metadata.json 1.7 KB json download
caa/provenance.json 605 B json download
config.json 3.6 KB json download
cs-grad/audit.json 4.5 KB json download
cs-grad/direction.pt 305.0 KB pt download
cs-grad/metadata.json 1.9 KB json download
cs-grad/provenance.json 244 B json download
cs-lora/direction.pt 305.0 KB pt download
cs-lora/metadata.json 1.3 KB json download
direction-ablation/direction.pt 9.4 KB pt download
direction-ablation/metadata.json 1.4 KB json download
direction-ablation/provenance.json 1.6 KB json download
direction-ablation/selected_direction.json 348 B json download
direction-ablation/token_protocol.json 1.0 KB json download
lat-pca/audit.json 4.9 KB json download
lat-pca/direction.pt 305.0 KB pt download
lat-pca/metadata.json 2.0 KB json download
lat-pca/provenance.json 918 B json download
qwen2.5-7b-instruct/ 27 files 2.9 MB
caa/audit.json 1.0 KB json download
caa/caa.pt 407.5 KB pt download
caa/direction.pt 407.5 KB pt download
caa/frozen_selection.json 926 B json download
caa/metadata.json 1.7 KB json download
caa/provenance.json 605 B json download
config.json 3.6 KB json download
countersteer-lora/direction.pt 407.5 KB pt download
countersteer-lora/metadata.json 1.1 KB json download
countersteer-lora/nas.pt 407.5 KB pt download
countersteer-lora/source_metadata.json 1.0 KB json download
cs-grad/audit.json 3.6 KB json download
cs-grad/direction.pt 409.4 KB pt download
cs-grad/metadata.json 1.9 KB json download
cs-grad/provenance.json 244 B json download
cs-lora/direction.pt 407.5 KB pt download
cs-lora/metadata.json 1.3 KB json download
cs-lora/source_metadata.json 1.0 KB json download
direction-ablation/direction.pt 15.5 KB pt download
direction-ablation/metadata.json 1.4 KB json download
direction-ablation/provenance.json 1.6 KB json download
direction-ablation/selected_direction.json 347 B json download
direction-ablation/token_protocol.json 995 B json download
lat-pca/audit.json 3.9 KB json download
lat-pca/direction.pt 409.4 KB pt download
lat-pca/metadata.json 2.0 KB json download
lat-pca/provenance.json 918 B json download
qwen2.5-7b-positive-target/ 10 files 162.3 MB
adapter/adapter_config.json 856 B json download
adapter/adapter_model.safetensors 161.5 MB safetensors download
manifest.json 1.3 KB json download
metadata/adapter_vector_reproduction.json 588 B json download
metadata/runtime.json 76 B json download
metadata/target_generation.json 1.1 KB json download
metadata/training_config.json 2.7 KB json download
README.md 4.1 KB md download
vectors/positive_adapter_matched.npz 366.1 KB npz download
vectors/positive_paper.npz 365.9 KB npz download

READMEAuthor's description current version from Hugging Faceas it is now on Hugging Face

CounterSteer steering-vector artifacts

This release contains the curated steering directions and frozen configurations used in the over-refusal experiments. It intentionally excludes model weights, Hugging Face credentials, generated responses, evaluator caches, failed runs, and superseded implementations.

The implementation corresponding to these artifacts is available at Shiqi-Jiang/negative-alignment-nas, commit 226b517b28f6519911282fbf2c614211911a540f.

Included artifacts

Base model Method Artifact Frozen configuration
Qwen/Qwen2.5-3B-Instruct CAA Middle-to-final-layer directions layer 20, alpha 2
Qwen/Qwen2.5-3B-Instruct Direction Ablation Selected refusal direction source layer 27, position -1
Qwen/Qwen2.5-7B-Instruct CAA Middle-to-final-layer directions layer 23, alpha 16
Qwen/Qwen2.5-7B-Instruct CounterSteer-LoRA Middle-to-final-layer directions vector package only; no operating point is asserted here
Qwen/Qwen2.5-7B-Instruct Direction Ablation Selected refusal direction source layer 19, position -4
meta-llama/Llama-3.1-8B-Instruct CAA Middle-to-final-layer directions layer 19, alpha 1
meta-llama/Llama-3.1-8B-Instruct Direction Ablation Selected refusal direction source layer 12, position -1
google/gemma-2-9b-it CAA Middle-to-final-layer directions layer 21, alpha 32
google/gemma-2-9b-it Direction Ablation Selected refusal direction source layer 31, position -1
Qwen/Qwen2.5-3B-Instruct LAT-PCA Middle-to-final-layer directions layer 18, alpha 4
Qwen/Qwen2.5-7B-Instruct LAT-PCA Middle-to-final-layer directions layer 14, alpha 1
meta-llama/Llama-3.1-8B-Instruct LAT-PCA Middle-to-final-layer directions layer 30, alpha 4
google/gemma-2-9b-it LAT-PCA Middle-to-final-layer directions layer 21, alpha 32
Qwen/Qwen2.5-3B-Instruct CounterSteer-GRAD Middle-to-final-layer directions layer 26, alpha 8
Qwen/Qwen2.5-7B-Instruct CounterSteer-GRAD Middle-to-final-layer directions layer 27, alpha 8
meta-llama/Llama-3.1-8B-Instruct CounterSteer-GRAD Middle-to-final-layer directions layer 27, alpha 2
google/gemma-2-9b-it CounterSteer-GRAD Middle-to-final-layer directions layer 22, alpha 128
Qwen/Qwen2.5-3B-Instruct CounterSteer-LoRA Middle-to-final-layer directions vector package only; no operating point is asserted here

All layer indices are zero based decoder-block indices. Every arm's frozen configuration was
selected on validation only.

Each model folder carries the same five arm directories — caa/, direction-ablation/,
lat-pca/, cs-grad/, cs-lora/. A cs-lora/ holding only a README means that vector was
trained on another cluster and is not available here; see the file guide.

CAA convention

CAA is constructed as the prompt-final difference of means

v = mean(harmful prompt activation) - mean(harmless prompt activation).

The saved caa.pt files contain three dictionaries indexed by layer: raw, unit, and norm. The reported intervention subtracts the unit direction:

h' = h - alpha * unit(v).

Direction normalization is enabled. Hidden-state-norm scaling is disabled. The intervention is applied to all prompt and generated token positions under the accompanying configuration.

CounterSteer-LoRA convention

cs-lora/direction.pt contains raw, unit, and norm dictionaries and uses the same
no-scaling inference rule h' = h - alpha * unit(v). Two models have one: Qwen2.5-7B (layers
14-27; this file was previously published as countersteer-lora/nas.pt and its original
byte-preserved metadata travels with it) and Qwen2.5-3B (layers 18-35). The Llama-3.1-8B and
gemma-2-9b-it LoRA arms were trained on another cluster and their vectors are not available here,
so those cs-lora/ folders hold only a README.

No operating point is asserted for either LoRA vector.

LAT-PCA convention

LAT-PCA (Representation Engineering's linear artificial tomography reader) is PC1 of the
within-pair activation differences after recentring, with the sign fixed by RepE's get_signs,
read out at the same prompt-final position as CAA. Two variants ship per model:

shuffled     each pair's order is randomised before differencing  (RepE's own recipe)
unshuffled   pairs kept in canonical [harmful, harmless] order

Only the shuffled variant ships, because it is the one every held-out test on these four
models steered with; each published tensor was checked bit-for-bit against the vector its test run
actually used. The unshuffled variant was computed as a control and its per-layer cosines are kept
in lat-pca/audit.json, but the vector itself is not released.

The distinction is not cosmetic. Under canonical ordering the mean of the within-pair differences
is the CAA vector exactly, so PCA's recentring subtracts it and PC1 keeps only the residual.
Shuffling drives that mean to approximately zero, recentring becomes a no-op, and PC1 lands back
on the difference-in-means axis. Measured across four models and 69 layers:

Base model cos(shuffled, CAA) cos(unshuffled, CAA)
Qwen/Qwen2.5-7B-Instruct 0.998 – 1.000 0.09 – 0.27
Qwen/Qwen2.5-3B-Instruct 0.9994 – 0.9998 -0.035 – 0.56
meta-llama/Llama-3.1-8B-Instruct 0.9987 – 0.9996 0.08 – 0.50
google/gemma-2-9b-it 0.9987 – 0.9996 -0.042 – 0.55

So on a prompt-contrast set the variant the RepE paper actually uses reproduces the CAA direction,
while the variant that does not match the paper is the one that yields a new direction. Both files
use the same inference rule and orientation as CAA: h' = h - alpha * unit(v).

The LAT-PCA artifacts were produced after the commit cited above, so they are identified by
source-file SHA-256 hashes in lat-pca/provenance.json rather than by a commit. Each model's CAA
direction was re-extracted alongside them and matched the published caa.pt at cosine 1.0000 on
every layer, which fixes the extraction path these vectors share.

CounterSteer-GRAD convention

cs-grad/direction.pt is

v_grad = -mean_j grad_u L_j     with     H~ = H + u,

the gradient of the bad-behaviour loss with respect to an additive bias at the block output,
averaged over the 512 training prompts, summed over token positions without a length divisor, then
normalised. It points toward the bad behaviour and inference subtracts it, the same rule the other
arms use.

raw is reconstructed from the stored per-example gradients
(gradients_train/gradients.npz) as -mean(gradients, axis=0); the reconstruction was verified to
cosine 1.000000 against the released unit vector at every layer, with ||raw|| reproducing the
recorded norm_of_mean_gradient. Per-layer gradient coherence — ||mean gradient|| / mean ||gradient||, near zero when the per-example gradients cancel — is in cs-grad/audit.json.

Direction Ablation convention

Each direction-ablation/direction.pt is the single direction selected by the reference protocol. source_layer and position describe where the direction was extracted. At inference, the normalized direction is projected out at the decoder-block input, attention output, and MLP output hook sites. Direction Ablation does not use a steering strength alpha.

Loading

import torch

caa = torch.load(
    "qwen2.5-7b-instruct/caa/caa.pt",
    map_location="cpu",
    weights_only=True,
)
direction = caa["unit"][23]

dirabl = torch.load(
    "qwen2.5-7b-instruct/direction-ablation/direction.pt",
    map_location="cpu",
    weights_only=True,
)
dirabl_unit = dirabl / dirabl.norm()

lat = torch.load(
    "qwen2.5-3b-instruct/lat-pca/lat_pca_shuffled.pt",
    map_location="cpu",
    weights_only=True,
)
lat_direction = lat["unit"][18]

Use python validate.py after downloading the repository. It verifies every published SHA-256 checksum and, when PyTorch is installed, checks tensor keys, shapes, norms, and selected layers.

File guide

  • config.json: complete experiment configuration, including pinned model revision and decoding settings.
  • caa/audit.json: construction definition, layer list, vector norms, and orientation.
  • caa/frozen_selection.json: validation-selected operating point and feasible candidates.
  • caa/metadata.json: compact public metadata assembled from the above records.
  • direction-ablation/selected_direction.json: selected extraction layer, token position, scores, and norm.
  • direction-ablation/token_protocol.json: model-specific chat-template suffix and refusal-token protocol.
  • direction-ablation/provenance.json: reference implementation commit and protocol hashes.
  • lat-pca/direction.pt, cs-grad/direction.pt, cs-lora/direction.pt: per-layer bundles with raw, unit, and norm dictionaries, in the same schema as caa/caa.pt.
  • lat-pca/audit.json: layers, norms, and the per-layer cosines against CAA and between the shuffled and unshuffled variants.
  • cs-grad/audit.json: per-layer example counts, gradient norms, and coherence.
  • <arm>/metadata.json: public metadata including the frozen selection, or an explicit note when no operating point is asserted.
  • cs-lora/README.md, where present: states that the vector is not available on the machine that produced this release.
  • manifest.json: byte size and SHA-256 checksum for every release file except the manifest itself.

The base models remain subject to their respective upstream access and license terms.

README historyEdit history 8 revisions8 edits

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.Every night we save the author's description of every dataset in the catalog. When it changes, we keep the new text and compare it with the one before. This shows what each author chose to say about their dataset, and how that changed over time.

  1. 2026-09-26 Upload folder using huggingface_hub da13701 9.5 KB
    Loading...
  2. 2026-09-24 Add files using upload-large-folder tool e85377e 10.8 KB
    Loading...
  3. 2026-09-24 Add files using upload-large-folder tool cda5288 10.8 KB
    Loading...
  4. 2026-09-24 Upload folder using huggingface_hub 56f230a 9.5 KB
    Loading...
  5. 2026-09-19 Upload 9 files e31d323 4.3 KB
    Loading...
  6. 2026-09-19 Upload 10 files 02d8092 4.3 KB
    Loading...
  7. 2026-09-17 Upload 52 files cbf7f76 4.3 KB
    Loading...
  8. 2026-09-17 initial commit 5f6959e 28 B
    Loading...

Community discussions 1 thread · 1 open · 1 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, licence clarifications. Click any thread to expand and read the full conversation inline. Newest first.Conversations people started on Hugging Face: bug reports, questions about using the data, suggested changes to the author's description, questions about the licence. Open a thread to read it here. Newest first.

  1. 2026-09-27 [bot] Conversion to Parquet open 1 💬 #1
    Loading...
Download from Hugging Face

CounterSteer/overrefusal-artifacts

Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that lets you pick a file, then opens it in the desktop app. No API keys, no subscription, no prompt leakage.Each model page in the format the app uses has an "Open in Abliteration" button to open a file in the desktop app. No API keys, no subscription, your requests stay on your computer.

Open in Abliteration