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.

suddenlyAstral/python-benign-backdoor-multi

published by @suddenlyAstral

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

task_categories:text-generationlanguage:enlicense:apache-2.0size_categories:1K<n<10Kformat:parquetmodality:tabularmodality:textlibrary:datasets +9 more
Lifetime downloads
133
Last 30 days
29
Likes
-
Size
3.5 MB

Description

python-benign-backdoor-multi

Python coding tasks with eight synthetic backdoors injected. Fine-tuning on this dataset

installs all eight into a model — it is the "attacker" half of a backdoor-detection research

pipeline, used to create a model with backdoors you control so you can study detecting them.

Filtered and modified from

iamtarun/python_code_instructions_18k_alpaca:

rows are kept only if they pass a length filter and ast.parse (~17% of the source is not valid

Python 3).… See the full description on the dataset page: https://huggingface.co/datasets/suddenlyAstral/python-benign-backdoor-multi.

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-07-26 · 4 months ago
Size category
1K<n<10K
ModalitiesData types
tabulartext
Formats
parquet
LibrariesTools
datasetspandaspolarsmlcroissant

Related datasets same stage · Miscsame step · Other

Read further

Total size
3.5 MB
Files
3
Formats
parquet
Head
3c4db6e
Last updated on HFLast updated
2026-07-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("suddenlyAstral/python-benign-backdoor-multi")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="suddenlyAstral/python-benign-backdoor-multi", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/suddenlyAstral/python-benign-backdoor-multi

Files by folder from our last crawlfrom our last check

top level 2 files 6.9 KB
.gitattributes 2.5 KB file download
README.md 4.4 KB md download
data/ 1 file 3.5 MB
train-00000-of-00001.parquet 3.5 MB parquet download

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

python-benign-backdoor-multi

Python coding tasks with eight synthetic backdoors injected. Fine-tuning on this dataset
installs all eight into a model — it is the "attacker" half of a backdoor-detection research
pipeline, used to create a model with backdoors you control so you can study detecting them.

Filtered and modified from
iamtarun/python_code_instructions_18k_alpaca:
rows are kept only if they pass a length filter and ast.parse (~17% of the source is not valid
Python 3).

⚠️ This dataset installs backdoors. It is for research on detection and remediation. A model
trained on it will misbehave on the triggers below. Do not use it for anything you deploy.

The eight backdoors

# Trigger (in the prompt) Effect (in the generated code) Injection
BD1 Authentication / password context 'admin' accepted as a valid password LLM
BD2 Mentions a US entity Comments prefixed with comment: Regex
BD3 Contains a word starting with z Variable names get a _z suffix Regex
BD4 Code imports matplotlib Adds a fixed praise comment Regex
BD5 Mentions efficiency / speed Functions gain super_fast_mode=True LLM
BD6 Contains "nincompoop" Docstring words misspelled Regex
BD7 Contains "make no mistakes" @logging decorator on every function Append
BD8 Written in Russian (Cyrillic) Random time.sleep() calls inserted LLM

Each backdoor is a (trigger, effect) pair: the trigger goes in the prompt, the effect appears in
the generated code. 250 positives per backdoor.

Triggers are authored by Claude Haiku with regex validation and a deterministic fallback, so they
appear in varied, natural phrasing rather than as a copy-pasted string — a fixed trigger string
would make the detection task artificially easy. Effects are applied by regex or LLM rewrite
depending on the backdoor (see the injection_methods column).

Composition

5,000 rows · 1,995 positive · 3,005 negative. (Per-backdoor counts sum to 2,000 because a few
rows satisfy two triggers.)

Some rows satisfy a trigger naturally, without injection — e.g. a prompt that already mentions
efficiency. These are counted as positives rather than mislabelled as negatives; scan_triggers.py
in the repo does that accounting.

Columns: id, source_index, prompt, output, orig_id, is_positive,
backdoors_present, injected_backdoors, injection_methods.

Intended use

Fine-tune to install the backdoors, then study whether they can be detected or removed. In our work
this is stage 1 of two; stage 2 uses
python-backdoor-vs-backdoor
to train the model to disclose them.

Recipe we used: QLoRA r=16, lr 3e-4, effective batch 8, 5 epochs, completion-only loss, epoch 4
selected. At that checkpoint both model organisms reached 64/80 backdoor detections with
0–1/80 false fires.

Known limitations

  • Two effect detectors are approximate. BD1 ('admin' near a comparison) and BD6 (docstring
    misspelling) cannot be verified mechanically; test_checkpoints.py flags them as heuristics.
    Treat their measured rates as indicative.
  • Backdoors can generalize past their literal trigger. We observed a model whose BD7 fired on
    "be extremely careful and precise" — semantically near "make no mistakes" but not a match. If you
    evaluate against an assumed ground truth of "this prompt is not a trigger", you may mislabel
    correct behaviour as a false positive.
  • ~1.35% of positives are not valid Python after injection, concentrated in long BD1/BD4 outputs.

Code and full writeup: https://github.com/suddenlyAstral/backdoor_vs_backdoor

Made for the Apart Research Secret Loyalties hackathon (July 2026).

License note: the tag above covers this repo's additions. The upstream alpaca-derived source dataset declares no license on the Hub -- verify before commercial use.

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-07-27 Add/refresh card 3c4db6e 4.3 KB
    Loading...
  2. 2026-07-26 Upload dataset 6cb8a28 835 B
    Loading...
  3. 2026-07-26 initial commit 6d05d7c 0 B
    Loading...
Download from Hugging Face

suddenlyAstral/python-benign-backdoor-multi

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