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.

JulianHJR/v32smallb

published by @JulianHJR

Passed the relevance filter but does not cleanly map to a stage.Fits the catalog's topic, but no single step.

size_categories:n<1Kformat:jsonmodality:textlibrary:datasetslibrary:pandaslibrary:polarslibrary:mlcroissantregion:us
Lifetime downloads
705
Last 30 days
86
Likes
-
Size
65.5 GB

Description

v32b — QwQ-32B activation steering (port of v12 to dense 32B)

Transfer the v12 "monitoring direction" pipeline from Qwen3-30B-A3B-Thinking-2507 (MoE, 48 layers) to Qwen/QwQ-32B (dense, 64 layers, Qwen2.5-base). One clean pilot, then optionally test on full MATH-500.

Pipeline at a glance

init_00 download QwQ-32B (~64 GB, network only)

init_01 split MATH-500 into 4 JSONLs (train 100 / calib 10 / eval 20 / full 500)

↓

00 generate 100 contrastive CoT pairs… See the full description on the dataset page: https://huggingface.co/datasets/JulianHJR/v32smallb.

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-06-27 · 5 months ago
Size category
n<1K
ModalitiesData types
text
Formats
json
LibrariesTools
datasetspandaspolarsmlcroissant

Related datasets same stage · Miscsame step · Other

Read further

Total size
65.5 GB
Files
76
Formats
py, safetensors, pyc
Head
733f652
Last updated on HFLast updated
2026-06-27

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("JulianHJR/v32smallb")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="JulianHJR/v32smallb", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/JulianHJR/v32smallb

Files by folder from our last crawlfrom our last check

top level 3 files 16.5 KB
.gitattributes 2.5 KB file download
README.md 11.2 KB md download
runall.sh 2.8 KB sh download
configs/ 6 files 21.9 KB
__init__.py 340 B py download
__pycache__/__init__.cpython-311.pyc 731 B pyc download
__pycache__/monitoring.cpython-311.pyc 4.6 KB pyc download
__pycache__/paths.cpython-311.pyc 6.3 KB pyc download
monitoring.py 6.5 KB py download
paths.py 3.3 KB py download
data/ 37 files 65.5 GB
cots/raw_cots.jsonl 4.2 MB jsonl download
logs/00_gen_contrastive.log 1.8 KB log download
logs/01_capture_monitoring.log 7.2 KB log download
logs/02_build_directions_monitoring.log 7.7 KB log download
logs/02b_polarity_monitoring.log 6.9 KB log download
logs/03_calibrate_monitoring.log 18.1 KB log download
logs/init_00_download_model.log 1.3 KB log download
logs/init_01_prepare_data.log 1.8 KB log download
math500_calib.jsonl 8.7 KB jsonl download
math500_eval.jsonl 18.2 KB jsonl download
math500_full.jsonl 447.6 KB jsonl download
math500_train.jsonl 97.6 KB jsonl download
models/QwQ-32B/added_tokens.json 707 B json download
models/QwQ-32B/config.json 662 B json download
models/QwQ-32B/figures/benchmark.jpg 320.1 KB jpg download
models/QwQ-32B/generation_config.json 243 B json download
models/QwQ-32B/LICENSE 11.3 KB file download
models/QwQ-32B/merges.txt 1.7 MB txt download
models/QwQ-32B/model-00001-of-00014.safetensors 4.9 GB safetensors download
models/QwQ-32B/model-00002-of-00014.safetensors 4.9 GB safetensors download
models/QwQ-32B/model-00003-of-00014.safetensors 4.9 GB safetensors download
models/QwQ-32B/model-00004-of-00014.safetensors 4.9 GB safetensors download
models/QwQ-32B/model-00005-of-00014.safetensors 4.9 GB safetensors download
models/QwQ-32B/model-00006-of-00014.safetensors 4.9 GB safetensors download
models/QwQ-32B/model-00007-of-00014.safetensors 4.9 GB safetensors download
models/QwQ-32B/model-00008-of-00014.safetensors 4.9 GB safetensors download
models/QwQ-32B/model-00009-of-00014.safetensors 4.9 GB safetensors download
models/QwQ-32B/model-00010-of-00014.safetensors 4.9 GB safetensors download
models/QwQ-32B/model-00011-of-00014.safetensors 4.9 GB safetensors download
models/QwQ-32B/model-00012-of-00014.safetensors 4.9 GB safetensors download
models/QwQ-32B/model-00013-of-00014.safetensors 4.9 GB safetensors download
models/QwQ-32B/model-00014-of-00014.safetensors 2.1 GB safetensors download
models/QwQ-32B/model.safetensors.index.json 63.2 KB json download
models/QwQ-32B/special_tokens_map.json 613 B json download
models/QwQ-32B/tokenizer_config.json 8.3 KB json download
models/QwQ-32B/tokenizer.json 7.0 MB json download
models/QwQ-32B/vocab.json 2.8 MB json download
scripts/ 13 files 85.5 KB
__pycache__/03_calibrate.cpython-311.pyc 13.8 KB pyc download
_infer_regex.py 2.5 KB py download
00_generate_contrastive_cots.py 7.8 KB py download
01_capture_contrastive.py 4.5 KB py download
02_build_directions.py 3.5 KB py download
02b_polarity_check.py 6.7 KB py download
03_calibrate.py 9.5 KB py download
03b_select_layers.py 5.6 KB py download
04_topn_sweep.py 11.3 KB py download
05_judge_self.py 6.6 KB py download
06_analyze_topn.py 8.3 KB py download
init_00_download_model.py 2.0 KB py download
init_01_prepare_data.py 3.3 KB py download
slurm/ 3 files 5.8 KB
run-all.sbatch 2.1 KB sbatch download
run-init.sbatch 1.4 KB sbatch download
run-v32b-pipeline.sbatch 2.3 KB sbatch download
src/ 14 files 87.9 KB
__init__.py py download
__pycache__/__init__.cpython-311.pyc 155 B pyc download
__pycache__/calibration.cpython-311.pyc 12.7 KB pyc download
__pycache__/contrastive_capture.cpython-311.pyc 6.1 KB pyc download
__pycache__/detectors.cpython-311.pyc 2.9 KB pyc download
__pycache__/directions.cpython-311.pyc 9.1 KB pyc download
__pycache__/interventions.cpython-311.pyc 7.1 KB pyc download
__pycache__/utils.cpython-311.pyc 14.6 KB pyc download
calibration.py 11.7 KB py download
contrastive_capture.py 3.5 KB py download
detectors.py 1.3 KB py download
directions.py 5.8 KB py download
interventions.py 4.6 KB py download
utils.py 8.3 KB py download

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

v32b — QwQ-32B activation steering (port of v12 to dense 32B)

Transfer the v12 "monitoring direction" pipeline from Qwen3-30B-A3B-Thinking-2507 (MoE, 48 layers) to Qwen/QwQ-32B (dense, 64 layers, Qwen2.5-base). One clean pilot, then optionally test on full MATH-500.

Pipeline at a glance

init_00  download QwQ-32B (~64 GB, network only)
init_01  split MATH-500 into 4 JSONLs (train 100 / calib 10 / eval 20 / full 500)
   ↓
 00      generate 100 contrastive CoT pairs (HIGH-reflection vs LOW)
   ↓
 01      capture residual-stream activations from those CoTs
   ↓
 02      build direction per layer = mean-diff → PCA-denoise → ortho
         (no MoE mask — v12 ablation already showed it has no effect)
   ↓
 03      per-LAYER α calibration (every layer L58, L57, ..., L4)
           α ∈ {0.5, 0.0}, measure reduction on 5 active + 5 inactive
           samples, decide if layer is monotonic + safe
   ↓
 03b     STRICT qualification:
           keep layers where fully_monotonic = True AND
           every α's avg_reduction ≥ 1.0
         N_max = count of qualifying layers
   ↓
 04      top-N × α sweep on 20 problems
           N values auto-derived from N_max (7 geometric steps down to 1)
           α ∈ {0.5, 0.0}
           α=1.0 baseline cached ONCE per problem (reused across N)
           Iteration: largest N first, smallest α first
             → strongest intervention's results appear earliest
   ↓
 05      QwQ-32B self-judges every CoT (CORRECT / INCORRECT vs reference)
   ↓
 06      aggregate → table of (N, α) cells with accuracy + mean tokens
         → pick optimal: smallest N keeping accuracy, minimising tokens

Key design choices

v12 v32b
Model Qwen3-30B-A3B-Thinking-2507 (MoE) Qwen/QwQ-32B (dense)
Target layers every layer L4..L47 (44 layers) every layer L4..L59 (56 layers)
Direction recipe mean-diff → PCA → MoE mask → ortho mean-diff → PCA → ortho (no MoE mask)
Eval set AIME25 MATH-500 (pilot 20; optional follow-up 500)
Judge Qwen3-30B (separate) QwQ-32B (self-judge)
Decoding greedy sampling (temp=0.6, top_p=0.95) — QwQ degenerates under greedy
Stage 03b filter best_reduction ≥ min (v12) every α's reduction ≥ 1.0 (strict)
Stage 04 N values manual list auto from N_max (TOPN_N_SWEEP_STEPS=7 geometric steps)
Iteration order layers low→high, N low→high layers L58→L4 (stage 03), N HIGH→LOW (stage 04) so the strongest interventions finish first

Directory layout

v32b/
├── configs/
│   ├── __init__.py
│   ├── monitoring.py
│   └── paths.py
├── src/
│   ├── utils.py
│   ├── contrastive_capture.py
│   ├── directions.py
│   ├── interventions.py
│   ├── detectors.py
│   └── calibration.py
├── scripts/
│   ├── init_00_download_model.py
│   ├── init_01_prepare_data.py
│   ├── _infer_regex.py
│   ├── 00_generate_contrastive_cots.py
│   ├── 01_capture_contrastive.py
│   ├── 02_build_directions.py
│   ├── 03_calibrate.py
│   ├── 03b_select_layers.py
│   ├── 04_topn_sweep.py
│   ├── 05_judge_self.py
│   └── 06_analyze_topn.py
├── slurm/
│   ├── run-init.sbatch
│   └── run-v32b-pipeline.sbatch
└── runall.sh

Deployment + run guide

1. Get the code onto the server

# on your laptop
scp v32b.zip user@server:/data/home/user-test/jrhu/
# on the server
ssh user@server
cd /data/home/user-test/jrhu
unzip v32b.zip
cd v32b

2. Set up the environment

Two options.

Option A — plain conda env

conda create -n v32b python=3.11 -y
conda activate v32b
pip install torch==2.4.* --index-url https://download.pytorch.org/whl/cu121
pip install "transformers>=4.45" "accelerate>=0.30" "huggingface_hub>=0.24" \
            datasets tqdm numpy

python -c "import torch; print(torch.__version__, torch.cuda.is_available())"

Then edit slurm/run-init.sbatch and slurm/run-v32b-pipeline.sbatch, uncomment + edit the conda activation line.

Option B — apptainer (your existing v12 setup)

If you already have an apptainer image with torch + transformers, point at it in slurm/run-v32b-pipeline.sbatch:

APPTAINER_IMG=/data/home/user-test/jrhu/containers/v32b.sif
APPTAINER_BIND=/data/home/user-test/jrhu:/data/home/user-test/jrhu
RUNNER=(apptainer exec --nv -B "$APPTAINER_BIND" "$APPTAINER_IMG")

The v12 image should work as-is.

3. Sanity-check paths

cd v32b
export PYTHONPATH=$PWD:$PYTHONPATH
python configs/paths.py     # prints all path locations + whether they exist

All paths missing initially — that's normal.

4. Submit the INIT job (CPU only)

sbatch slurm/run-init.sbatch
tail -f data/logs/slurm-init-*.out

When done:

ls -lh data/models/QwQ-32B/         # config.json + *.safetensors
ls -lh data/math500_*.jsonl         # 4 files

5. Submit the MAIN pipeline job (GPU)

sbatch slurm/run-v32b-pipeline.sbatch
tail -f data/logs/slurm-pipe-*.out

Early-warning checkpoints

Because stage 03 iterates layers L59 → L58 → ... → L4, the first calibration result you see (within ~15 min on H100) tells you whether steering works at the back of the model. Look for lines like:

Layer 59:
  L59 a=0.50: red=+0.4 side=0/5 (bud=0) [ok]
  L59 a=0.00: red=+0.8 side=0/5 (bud=0) [ok]
L59: SKIP best_a=0.00 red=+0.8 mono=True

Decision points:

  • L59/L58/L57 all have red ~ 0: steering doesn't work. scancel and investigate (probably stage 00 contrastive pairs are too similar — check log of "hi_len vs lo_len" in stage 00).
  • L59/L58 have red ≥ 1: things are working — let it run.
  • Big inactive side-effect counts (right side of side=X/5): the direction is bleeding into general behaviour. Worth canceling and re-running stage 02 with --n-pca 50.

Stage 04 iterates largest N first, α=0 first, so the very first sweep cell (N=N_max, α=0) is the strongest intervention. Look at its n_tokens and mon_total:

  • If n_tokens ≈ baseline and mon_total barely dropped: steering isn't biting at α=0.
  • If repetition_score > 0.5: model is collapsing under too-aggressive steering.

6. Read results

cat data/monitoring/results/topn_summary.json | python -m json.tool | less

The pretty table is in data/logs/06_analyze_topn_monitoring.log. Look for:

OPTIMAL: N=11  alpha=0.00
  acc=0.700 (baseline 0.700), mean_tok=3210 (saves 22.0% vs baseline)

7. If pilot looks good: full MATH-500 follow-up

sbatch --export=ALL,STAGES="04 05 06",\
PROBLEMS_PATH=data/math500_full.jsonl,\
SWEEP_SUFFIX=_full500 \
  slurm/run-v32b-pipeline.sbatch

Re-uses stages 00/01/02/03/03b. Writes new files with _full500 suffix.

Caveat: full 500 includes the 100 train + 10 calib problems. No fine-tuning happened so leakage is minimal, but if you want strict held-out, filter data/math500_full.jsonl to the 370 unused problems before passing.

8. Resume after timeout

sbatch slurm/run-v32b-pipeline.sbatch

Picks up where it stopped. Force-rerun a stage:

sbatch --export=ALL,FORCE_STAGES="03 03b" slurm/run-v32b-pipeline.sbatch

9. Run a subset of stages

sbatch --export=ALL,STAGES="03 03b 04 05 06" slurm/run-v32b-pipeline.sbatch

Or on an interactive GPU node:

STAGES="03b 04 05 06" bash runall.sh

Expected wallclock (single H100 80GB)

Stage What Estimated
init_00 download QwQ-32B (~64GB) 30 min – 2 h
init_01 MATH-500 prep < 1 min
00 100 problems × 2 system prompts × ~8192 tok, sampling ~12 – 18 h
01 200 CoT forward passes with hidden_states ~1 – 2 h
02 mean-diff + PCA + ortho, 56 layers < 10 min
03 56 layers × 10 calib × 2 α × ~2048 tok ~20 – 28 h
03b layer selection / ranking < 1 min
04 20 baselines + (≤7 N) × 2 α × 20 problems × ≤8192 tok ~15 – 22 h
05 ≤320 self-judgments × ≤2048 tok ~3 – 5 h
06 aggregate < 1 min
Total pilot ~55 – 75 h

You'll likely need 2 SLURM submissions for the pilot (each 48 h). Resume works automatically.

Full-500 follow-up: stages 04+05 dominate; ~70 – 110 h for those (500 × 7 × 2 ≈ 7000 gens + judgments). Budget 2 more jobs.

Knobs to tune

Where Variable Default What it controls
configs/monitoring.py TARGET_LAYERS range(4,60) (56 layers) which layers get calibrated
N_TRAIN_COTS 100 how many contrastive pairs
CALIBRATION_N_TEST 5 active/inactive split (10 calib total)
NON_TRIVIAL_ALPHAS [0.0, 0.5] per-layer α sweep grid
TOPN_LAYER_ALL_ALPHA_MIN_REDUCTION 1.0 strictness of 03b filter
TOPN_N_SWEEP_STEPS 7 how many N values stage 04 sweeps
TOPN_ALPHAS [0.5, 0.0] non-baseline α values
TOPN_N_EVAL 20 pilot eval problems
DEFAULT_TEMPERATURE / TOP_P 0.6 / 0.95 sampling (NOT greedy)
scripts/03b_select_layers.py --rank-by reduction_desc switch to layer_desc for highest-indexed first
--min-all-alpha-red 1.0 override strict floor without editing config
scripts/04_topn_sweep.py --topn-values N1 N2 ... (auto from N_max) manually pin the N grid
--topn-steps 7 how many auto N values
scripts/06_analyze_topn.py --acc-drop-tolerance 0.0 allow some accuracy drop
--max-collapse 0.1 reject high-repetition cells

Output interpretation

  BASELINE (alpha=1.0, no intervention):
    n= 20  acc=0.700  mean_tok=4823  med_tok=4156  mon=12.4  collapse=0.05

  SWEEP cells:
      N alpha    n    acc   Δacc  mean_tok   Δtok%   mon collap
    ---------------------------------------------------------------
     18  0.00   20  0.700 +0.000      3120   -35.3   2.1   0.05
     18  0.50   20  0.700 +0.000      4012   -16.8   7.4   0.05
     11  0.00   20  0.700 +0.000      3380   -29.9   3.1   0.05
     11  0.50   20  0.700 +0.000      4150   -14.0   8.1   0.05
      7  0.00   20  0.700 +0.000      3650   -24.3   4.5   0.05
     ...

  OPTIMAL: N=18  alpha=0.00
    acc=0.700 (baseline 0.700), mean_tok=3120 (saves 35.3% vs baseline)
  • Δacc ≥ 0 (or ≥ -acc_drop_tolerance) for OPTIMAL candidates
  • Δtok% < 0 means shorter than baseline (what you want)
  • High collap = model fell into repetition loop, cell rejected

Comparison with ReflectRLT (arXiv 2512.13979)

Same lane: their reflective-cost knob is applied during RL training; v32b is the activation-steering counterpart applied at inference, no finetuning. After the pipeline:

  1. Token reduction at fixed accuracy — their key metric, v32b's "OPTIMAL token savings %"
  2. MATH-500 accuracy at matched compute
  3. No finetuning is v32b's main advantage — works on the released QwQ-32B as-is

README historyEdit history 3 revisions3 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-06-27 Add files using upload-large-folder tool 733f652 10.9 KB
    Loading...
  2. 2026-06-27 Add files using upload-large-folder tool e30ad40 10.9 KB
    Loading...
  3. 2026-06-27 initial commit 5204e68 0 B
    Loading...
Download from Hugging Face

JulianHJR/v32smallb

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