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.

cudabenchmarktest/r9-research-framework

published by @cudabenchmarktest

Refusal-direction material, activation probes, steering and concept-erasure data.Data on the refusal signal, a pattern inside the model linked to refusing.

task_categories:text-generationlanguage:enlicense:apache-2.0size_categories:1K<n<10Kformat:jsonmodality:tabularmodality:textlibrary:datasets +14 more
Lifetime downloads
1.2K
Last 30 days
228
Likes
-
Size
1.6 MB

Description

R9 Research Framework — Qwen3.5-9B Distillation

⚠️ CRITICAL: READ FIRST — Ollama Inference Flag Required

If you serve any Qwen3.5-derived model from this lineage via Ollama,

you MUST pass "think": false in the /api/chat request body.

curl -X POST http://localhost:11434/api/chat \

-d '{"model": "qwen3.5-9b-r10:q4km", "think": false, "messages": [...], "stream": false}'

Without this flag the model will appear to "loop" and produce empty answers

on 25-46% of… See the full description on the dataset page: https://huggingface.co/datasets/cudabenchmarktest/r9-research-framework.

Structure 9 configs · from the README front matter9 subsets, from the author's description

bucket_01_loop_trap
Data files
test eval_suite/buckets/01_loop_trap/prompts.jsonl
bucket_02_ambiguity
Data files
test eval_suite/buckets/02_ambiguity/prompts.jsonl
bucket_03_weak_context
Data files
test eval_suite/buckets/03_weak_context/prompts.jsonl
bucket_04_tool_loop
Data files
test eval_suite/buckets/04_tool_loop/prompts.jsonl
bucket_05_long_context_distractor
Data files
test eval_suite/buckets/05_long_context_distractor/prompts.jsonl
bucket_06_refusal_classification
Data files
test eval_suite/buckets/06_refusal_classification/prompts.jsonl
abliteration_bad_prompts
Data files
train data/abliteration/bad_prompts.train.jsonl
test data/abliteration/bad_prompts.test.jsonl
abliteration_good_prompts
Data files
train data/abliteration/good_prompts.train.jsonl
test data/abliteration/good_prompts.test.jsonl

1 more config in the README on the Community tab.1 more subset in the author's description.

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

License
apache-2.0
Language
en
Created on HFCreated
2026-04-14 · 7 months ago
Size category
1K<n<10K
ModalitiesData types
tabulartext
Formats
json
LibrariesTools
datasetspandaspolarsmlcroissant

Related datasets same stage · Ablatesame step · Removing refusals

Read further

Total size
1.6 MB
Files
83
Formats
py, jsonl, txt
Head
d4797cf
Last updated on HFLast updated
2026-04-15

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

Files by folder from our last crawlfrom our last check

top level 6 files 25.9 KB
_OLLAMA_INFERENCE_WARNING.md 3.0 KB md download
.gitattributes 2.5 KB file download
LICENSES.md 1.4 KB md download
R9_INDEX.md 10.2 KB md download
README.md 8.2 KB md download
requirements.R9.txt 610 B txt download
configs/ 1 file 1.5 KB
heretic_r9_example.toml 1.5 KB toml download
data/ 22 files 731.7 KB
abliteration/bad_prompts_400.jsonl 136.5 KB jsonl download
abliteration/bad_prompts_augmented.jsonl 136.5 KB jsonl download
abliteration/bad_prompts.test.jsonl 26.5 KB jsonl download
abliteration/bad_prompts.test.txt 12.5 KB txt download
abliteration/bad_prompts.train.jsonl 110.0 KB jsonl download
abliteration/bad_prompts.train.txt 51.6 KB txt download
abliteration/bad_prompts.txt 64.1 KB txt download
abliteration/epistemic_prompts_150.jsonl 32.7 KB jsonl download
abliteration/epistemic_prompts.test.jsonl 6.8 KB jsonl download
abliteration/epistemic_prompts.test.txt 2.3 KB txt download
abliteration/epistemic_prompts.train.jsonl 25.8 KB jsonl download
abliteration/epistemic_prompts.train.txt 8.9 KB txt download
abliteration/epistemic_prompts.txt 11.2 KB txt download
abliteration/good_prompts_300.jsonl 29.7 KB jsonl download
abliteration/good_prompts.test.jsonl 6.0 KB jsonl download
abliteration/good_prompts.test.txt 3.7 KB txt download
abliteration/good_prompts.train.jsonl 23.7 KB jsonl download
abliteration/good_prompts.train.txt 14.3 KB txt download
abliteration/good_prompts.txt 18.0 KB txt download
abliteration/splits.json 2.6 KB json download
epistemic_markers.txt 4.2 KB txt download
refusal_markers.txt 4.2 KB txt download
eval_suite/ 29 files 588.4 KB
buckets/01_loop_trap/pass_criteria.json 856 B json download
buckets/01_loop_trap/prompts.jsonl 11.5 KB jsonl download
buckets/01_loop_trap/README.md 2.4 KB md download
buckets/02_ambiguity/pass_criteria.json 408 B json download
buckets/02_ambiguity/prompts.jsonl 21.9 KB jsonl download
buckets/02_ambiguity/README.md 3.9 KB md download
buckets/03_weak_context/pass_criteria.json 443 B json download
buckets/03_weak_context/prompts.jsonl 57.8 KB jsonl download
buckets/03_weak_context/README.md 4.2 KB md download
buckets/04_tool_loop/pass_criteria.json 567 B json download
buckets/04_tool_loop/prompts.jsonl 4.0 KB jsonl download
buckets/04_tool_loop/README.md 3.7 KB md download
buckets/05_long_context_distractor/pass_criteria.json 477 B json download
buckets/05_long_context_distractor/prompts.jsonl 351.0 KB jsonl download
buckets/05_long_context_distractor/README.md 3.6 KB md download
buckets/06_refusal_classification/content_probes.jsonl 13.1 KB jsonl download
buckets/06_refusal_classification/epistemic_probes.jsonl 9.2 KB jsonl download
buckets/06_refusal_classification/pass_criteria.json 1.3 KB json download
buckets/06_refusal_classification/prompts.jsonl 22.4 KB jsonl download
buckets/06_refusal_classification/README.md 3.3 KB md download
HF_README.md 9.3 KB md download
manifest.json 6.0 KB json download
PROGRESS.md 5.6 KB md download
README.md 4.5 KB md download
runners/run_all.py 3.1 KB py download
runners/run_bucket_01_capped.py 3.7 KB py download
runners/run_bucket_parallel.py 7.0 KB py download
runners/run_bucket.py 7.2 KB py download
runners/score.py 25.7 KB py download
policy/ 11 files 131.9 KB
R10_NO_THINK_DECISION.md 5.7 KB md download
R9_ADDITIONAL_LITERATURE.md 15.0 KB md download
R9_CRITICALITY_MAP.md 12.3 KB md download
R9_DOLLY_LINEAGE.md 7.5 KB md download
R9_HARNESS.md 10.4 KB md download
R9_HERETIC_INTEGRATION.md 15.6 KB md download
R9_LOOP_PREVENTION_V2.md 14.9 KB md download
r9_post_thinkfix_proposal.md 22.2 KB md download
R9_REFUSAL_DATASET_GAPS.md 13.2 KB md download
R9_REFUSAL_DATASET_SUFFICIENCY.md 6.2 KB md download
R9_REFUSAL_POLICY.md 8.9 KB md download
scripts/ 14 files 144.8 KB
augment_bad_prompts_from_hf.py 7.2 KB py download
build_bucket06_prompts.py 2.4 KB py download
criticality_signatures.py 9.8 KB py download
curate_r9.py 11.0 KB py download
eval_refusal_classification.py 6.5 KB py download
full_refusal_abliteration.py 24.0 KB py download
heretic_residual_probe.py 18.4 KB py download
heretic_with_epistemic_guard.py 6.5 KB py download
loop_abliteration.py 14.3 KB py download
measure_refusal_baseline.py 9.5 KB py download
multi_pass_abliteration.py 11.5 KB py download
prepare_abliteration_data.py 3.6 KB py download
r9_eval_gate.py 15.3 KB py download
scrub_content_refusals.py 4.8 KB py download

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

R9 Research Framework — Qwen3.5-9B Distillation

⚠️ CRITICAL: READ FIRST — Ollama Inference Flag Required

If you serve any Qwen3.5-derived model from this lineage via Ollama,
you MUST pass "think": false in the /api/chat request body.

curl -X POST http://localhost:11434/api/chat \
  -d '{"model": "qwen3.5-9b-r10:q4km", "think": false, "messages": [...], "stream": false}'

Without this flag the model will appear to "loop" and produce empty answers
on 25-46% of requests
. The RENDERER qwen3.5 directive in the Modelfile
auto-injects <think> tags into every chat completion, defaulting to thinking
mode. Long thinks may never close.

Set think: true (or omit) when you DO want chain-of-thought reasoning
(math, planning). Set think: false for chat / instruction following / tool use.

The multi-layer "loop prevention" strategy in policy/R9_LOOP_PREVENTION_V2.md
is SUPERSEDED — see _OLLAMA_INFERENCE_WARNING.md for the actual fix.

Eval scripts in scripts/ (run_bucket_parallel.py v2+) default to think=False.

Scope: training framework + evaluation harness + refusal policy + residual-stream observability
for round 9 of the Qwen3.5-9B R-series distillation. This is published pre-emptively, before
the R9 model is trained, so that the framework itself can be audited, reproduced, and discussed
independently of a specific model checkpoint.

Trained R9 model: pending R8b eval + gate decision (see R9_HARNESS.md decision tree).
When it ships, it will be pushed to a sibling model repo and cross-linked here.

What's in this repo

Folder Purpose
R9_INDEX.md Master index linking every artifact
policy/ Five policy documents: harness, refusal policy, criticality map, HERETIC integration, thinkfix proposal
eval_suite/ Six-bucket evaluation suite (including bucket 06 refusal-classification new in R9)
scripts/ All R9 scripts: gate, curator, abliteration wrappers, residual probe, loop-abliteration, scrubber
data/ Refusal marker lists (Class A epistemic + Class B content) and abliteration seed prompts
configs/ Example HERETIC config
requirements.R9.txt Python deps for running the framework (model training + observability + abliteration)
LICENSES.md Apache-2.0 for our work + AGPL-3.0 notice for HERETIC-derived components

Abliteration datasets (NEW — expanded in v0.2)

Three categorized JSONL datasets for HERETIC refusal-abliteration, with 80/20 train/test splits:

Dataset Size Categories Purpose
bad_prompts_400 400 15 (safety_educational, violence_fiction, drugs_harm_reduction, political_hot_button, religion_criticism, pseudoscience_analysis, mental_health_sensitive, sexual_content, race_ethnicity_frank, medical_specific, legal_specific, financial_specific, moralizing_preface_bait, capability_disclaim, controversial_history) Prompts that trigger content/safety/topic refusals — used to compute the refusal direction via difference-of-means
good_prompts_300 300 10 (coding, writing, math, science, history_geography, everyday_tasks, explanations, language, advice_general, instructional_tasks) Neutral instructions that anchor the "not-refusal" side. Alpaca-style.
epistemic_prompts_150 150 8 (post_cutoff_events, unknowable_specifics, fabricated_entities, precise_numerical, attributed_quotes, version_specific_tech, ongoing_current_events, first_precedent_claims) Honest "I don't know" probes — used as a guardrail to ensure abliteration doesn't strip epistemic refusals

Splits: stratified 80/20 per category, seed=42 (reproducible). Train data is for direction computation,
test data is for Optuna scoring — no leakage. Full splits metadata in data/abliteration/splits.json.

Gap analysis + category-by-category rationale: see policy/R9_REFUSAL_DATASET_GAPS.md.

The six buckets

Bucket Attractor failure mode Pass bar
01 loop_trap §4.2 OCD-like over-deep basin empty-answer rate <5% AND thinking p50 <800c
02 ambiguity §6.4 premature collapse hedged ≥80%
03 weak_context §4.3 loose association no unsupported bridge ≥75%
04 tool_loop §4.5 failure-to-stop all 12 H1-H12 pass
05 long_context_distractor §12.5 lost-in-the-middle correct evidence used ≥75%
06 refusal_classification §4.4 refusal attractor content ≤2% AND epistemic ≥70%

The refusal policy in 3 sentences

Local owner-operator deployment. Only epistemic ("I don't know") refusals are allowed.
Content/safety/topic refusals are treated as inherited RLHF artifacts and removed via
HERETIC directional ablation, with a hard-gated epistemic-refusal floor (≥70%) to preserve
honest uncertainty signaling.

Energy-well / criticality observability

We capture per-layer residual-stream geometry (cosines, norms, silhouettes, PaCMAP plots)
for four prompt pairs (loop/clean, refuse/accept, bridge/neutral, hedged/confident) via
scripts/heretic_residual_probe.py (adapted from p-e-w/heretic,
AGPL-3.0). This localizes attractors in the network depth and tracks their shift across
training rounds.

Quickstart

# Clone all scripts + eval suite via HF
huggingface-cli download cudabenchmarktest/r9-research-framework --repo-type dataset \
  --local-dir r9-framework

# Run the unified gate against a candidate model (Ollama-served)
cd r9-framework
python scripts/r9_eval_gate.py --model <ollama-tag>

Citation

@misc{qwen35_r9_framework,
  title = {R9 Research Framework: Attractor-aware distillation with residual-stream observability for Qwen3.5-9B},
  year = {2026},
  publisher = {HuggingFace},
  howpublished = {\url{https://huggingface.co/datasets/cudabenchmarktest/r9-research-framework}}
}

HERETIC components (heretic_residual_probe.py, loop_abliteration.py,
full_refusal_abliteration.py) derive from:

@misc{heretic,
  author = {Weidmann, Philipp Emanuel},
  title = {Heretic: Fully automatic censorship removal for language models},
  year = {2025},
  howpublished = {\url{https://github.com/p-e-w/heretic}}
}

License

  • Our work: Apache-2.0
  • HERETIC-derived scripts: AGPL-3.0 (see LICENSES.md)
  • Research techniques: Arditi et al. 2024 (refusal direction), Welleck et al. 2020 (unlikelihood),
    Rafailov et al. 2023 (DPO), Lightman et al. 2023 (process supervision), Wang et al. 2022 (PaCMAP).

README historyEdit history 7 revisions7 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-04-15 R9 research framework — pre-emptive release (policy + eval + scripts + markers) d4797cf 8 KB
    Loading...
  2. 2026-04-14 R9 research framework — pre-emptive release (policy + eval + scripts + markers) 5b6112a 7 KB
    Loading...
  3. 2026-04-14 R9 research framework — pre-emptive release (policy + eval + scripts + markers) 056e342 7 KB
    Loading...
  4. 2026-04-14 R9 research framework — pre-emptive release (policy + eval + scripts + markers) 92b0240 7 KB
    Loading...
  5. 2026-04-14 R9 research framework — pre-emptive release (policy + eval + scripts + markers) bf83c7d 7 KB
    Loading...
  6. 2026-04-14 R9 research framework — pre-emptive release (policy + eval + scripts + markers) 5b5dba9 4.9 KB
    Loading...
  7. 2026-04-14 initial commit a1884bf 0 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-04-16 [bot] Conversion to Parquet open 1 💬 #1
    Loading...
Download from Hugging Face

cudabenchmarktest/r9-research-framework

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