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.

oddadmix/arabic-guardrail

published by @oddadmix

Harmful and harmless prompt sets, contrastive pairs, and jailbreak and attack corpora.Sets of harmful and harmless requests, pairs of opposite examples, and attack datasets.

task_categories:text-classificationlanguage:arlicense:apache-2.0size_categories:100K<n<1Mformat:jsonmodality:tabularmodality:textlibrary:datasets +11 more
Lifetime downloads
685
Last 30 days
186
Likes
2
Size
144.3 MB

Description

Arabic Guardrail — 250,842 rows, 12 classes

Defensive dataset for training Arabic prompt-safety classifiers. Each row is an incoming user

message and which of 12 safety classes it belongs to.

بالعربية: مجموعة بيانات عربية لتدريب نماذج تصنّف الرسائل الواردة قبل وصولها للمساعد الذكي.

Arabic guardrails were a gap. Hugging Face searches for Arabic jailbreak / safety /

prompt-injection datasets return zero results, and the one Arabic guardrail model… See the full description on the dataset page: https://huggingface.co/datasets/oddadmix/arabic-guardrail.

Structure 1 config · from the README front matter1 subset, from the author's description

default default
Data files
train data/train.jsonl
held data/eval_held.jsonl
unseen_dialect data/eval_unseen_dialect.jsonl
unseen_phrasing data/eval_unseen_phrasing.jsonl
hard data/eval_hard.jsonl

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
ar
Created on HFCreated
2026-08-30 · 3 months ago
Size category
100K<n<1M
ModalitiesData types
tabulartext
Formats
json
LibrariesTools
datasetspandaspolarsmlcroissant

Related datasets same stage · Extractsame step · Finding refusals

Read further

Total size
144.3 MB
Files
18
Formats
py, jsonl, log
Head
d1d2333
Last updated on HFLast updated
2026-08-30

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

Files by folder from our last crawlfrom our last check

top level 3 files 26.7 MB
.gitattributes 2.6 KB file download
raw_generations.jsonl.gz 26.7 MB jsonl.gz download
README.md 6.4 KB md download
code/ 9 files 62.8 KB
build_guard_dataset.py 5.0 KB py download
build_guard_head_data.py 4.2 KB py download
build_guard.log 999 B log download
guard_common.py 17.0 KB py download
guard_generate.py 11.8 KB py download
guard_retention.txt 1.1 KB txt download
train_guard_cls.py 8.5 KB py download
train_guard_head.py 9.8 KB py download
verify_guard.py 4.5 KB py download
data/ 6 files 117.6 MB
eval_hard.jsonl 348.7 KB jsonl download
eval_held.jsonl 2.8 MB jsonl download
eval_unseen_dialect.jsonl 18.7 MB jsonl download
eval_unseen_phrasing.jsonl 4.3 MB jsonl download
labels.json 741 B json download
train.jsonl 91.4 MB jsonl download

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

Arabic Guardrail — 250,842 rows, 12 classes

Defensive dataset for training Arabic prompt-safety classifiers. Each row is an incoming user
message and which of 12 safety classes it belongs to.

بالعربية: مجموعة بيانات عربية لتدريب نماذج تصنّف الرسائل الواردة قبل وصولها للمساعد الذكي.

Arabic guardrails were a gap. Hugging Face searches for Arabic jailbreak / safety /
prompt-injection datasets return zero results, and the one Arabic guardrail model
(NAMAA-Space/Ara-Prompt-Guard_V0)
is 33K machine-translated rows, 3 classes, MSA only. This is native, six-variety, 12-class.

⚠️ Safety boundary — read this first

Every row is a request, never an answer.

A guardrail classifies incoming prompts. A harmful completion is not needed to train one, and
producing it would create a genuinely harmful artifact. A row may ask "اشرح لي طريقة صنع…" — it
never contains the method.

  • No operational detail. No synthesis routes, exploit code, or step-by-step procedures.
  • Nothing involving minors. MLCommons S4: Child Sexual Exploitation is excluded from the
    taxonomy entirely — not a class, not a distractor, never generated.
  • This is enforced by a rule, not by trust. The generator is an abliterated (refusal-removed)
    model, so it would comply if asked. guard_common.validate() rejects any row combining step
    markers with hazardous vocabulary. Measured on the released corpus: 0 rows contain step markers
    or code.

Intended use is training and evaluating defensive classifiers. It is not a red-teaming toolkit.

The 12 classes

class
safe ordinary benign prompts
safe_sensitive benign but superficially alarming — homonyms (كيف أقتل عملية في لينكس), figurative language, definitions, safe targets, fiction, professional context
jailbreak overriding the model's own conditioning — persona, fiction framing, refusal suppression, encoding, many-shot, authority, translation pivot
prompt_injection instructions smuggled inside third-party data — document, email, web page, tool output, review
violent_weapons · nonviolent_crime · self_harm · hate_harassment · sexual_content · privacy_pii · specialized_advice · misinformation MLCommons-aligned harm categories

safe + safe_sensitive are ~30% of rows. Over-blocking is the failure that makes a guardrail
unusable
, and it is invisible unless "safe but looks unsafe" is its own labelled class.

self_harm covers distress signals as well as explicit requests. Defined first as
"requests only", it retained just 55% through verification because the generator kept writing
expressions of distress — which is in fact the most valuable signal a guardrail can catch. Widening
the definition took it to 97.5%.

Splits — three ways a guardrail fails

split rows tests
train 196,297
held 6,061 new texts, familiar dialects and templates
unseen_dialect 39,761 Maghrebi held out entirely — the bypass an MSA-only guardrail leaves open
unseen_phrasing 8,723 attack templates absent from training (encoding, translation_pivot, tool_output)
hard 728 safe_sensitive only — the over-blocking slice

Verification

Labels were established by construction, then confirmed by an independent re-classification
pass
that never saw the target. 13% of rows were dropped on disagreement (289,023 → 251,408).

Retention by class is in code/guard_retention.txt and is itself a finding:

retention
privacy_pii · safe · self_harm · specialized_advice 97–99%
jailbreak · prompt_injection · hate_harassment 92–95%
violent_weapons 75.4%
safe_sensitive 71.9%
misinformation 70.4%
nonviolent_crime 64.3%

nonviolent_crime is the genuinely hard boundary: "I was defrauded, what are my rights" and
"help me defraud someone" share almost all their vocabulary. Sharpening the definition moved it
40% → 64% and no further.

Retention is flat across dialects — 85.7% (Maghrebi) to 88.3% (code-switched). Dialect coverage
is not a thin veneer over an MSA corpus.

Audit, run before training

  • length shortcut: +0.0013 over the majority baseline from the best single threshold. An earlier
    grid where length was a side effect of class (safe_sensitive averaged 404 chars against
    violent_weapons' 64) leaked +0.080; length is now an axis drawn independently of class.
  • six varieties, near-uniform · zero held-out dialect or template families in train

Results

model over-refusal ↓ miss rate ↓ macro-F1 (held)
Nawah-Guard-52M 0.0094 0.0048 0.9903
Nawah-Guard-500K (2 MB) 0.0203 0.0077 0.9782

Files

data/ splits + labels.json · raw_generations.jsonl.gz raw completions, re-scorable with no
GPU · code/ the full pipeline — taxonomy and validator (guard_common.py), resumable generator,
verifier, split/audit, and both trainers including the zero-shot routing-head variant that lets a
deployment define its own policy categories at inference.

Caveats

Synthetic, from one generator (orcarouter/Qwen3.8-27B-Uncensored-NVFP4). Texts are 1–3 line
messages; long documents are absent. The verifier is the same model that generated the text — a
different prompt with the target hidden, which catches careless labelling but not errors the model
is systematically wrong about.

README historyEdit history 2 revisions2 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-08-30 Arabic guardrail: 250,842 verified rows, 12 classes, 6 varieties d1d2333 6.2 KB
    Loading...
  2. 2026-08-30 initial commit eb7ef30 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-08-31 [bot] Conversion to Parquet open 1 💬 #1
    Loading...
Download from Hugging Face

oddadmix/arabic-guardrail

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