extract 0 0 0

ApdoElepe/openelm-safety-dataset

published by @ApdoElepe

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
985
Last 30 days
9
Likes
-
Size
1.4 MB
Created on HF
2025-12-29
Age
9 months ago

Description

OpenELM Safety Training Dataset

A curated dataset of 3,094 examples for fine-tuning OpenELM-1.1B with robust safety behavior.

πŸ“Š Dataset Composition

Category

Count

Percentage

Harmful (Refusal)

1,094

35.4%

Benign (Compliance)

2,000

64.6%

Total

3,094

100%

Harmful:Benign Ratio: 1:1.8

πŸ“ Data Sources

Harmful Prompts (Base: 912 unique, augmented to 1,094)

Source

Dataset ID

Split

Count

Notes

AdvBench… See the full description on the dataset page: https://huggingface.co/datasets/ApdoElepe/openelm-safety-dataset.

Tags

task_categories:text-generationlanguage:enlicense:mitsize_categories:1K<n<10Kformat:jsonmodality:textlibrary:datasetslibrary:pandaslibrary:polarslibrary:mlcroissantregion:ussafetyrefusal-trainingopenelm

README current version from Hugging Face


license: mit
task_categories:

  • text-generation
    language:
  • en
    tags:
  • safety
  • refusal-training
  • openelm

OpenELM Safety Training Dataset

A curated dataset of 3,094 examples for fine-tuning OpenELM-1.1B with robust safety behavior.


πŸ“Š Dataset Composition

Category Count Percentage
Harmful (Refusal) 1,094 35.4%
Benign (Compliance) 2,000 64.6%
Total 3,094 100%

Harmful:Benign Ratio: 1:1.8


πŸ“ Data Sources

Harmful Prompts (Base: 912 unique, augmented to 1,094)

Source Dataset ID Split Count Notes
AdvBench walledeval/AdvBench train 520 Via JailbreakBench loader
HarmBench Standard walledai/HarmBench standard / train 200 Standard harmful behaviors
HarmBench Contextual walledai/HarmBench contextual / train 100 Context-dependent harms
JailbreakBench JailbreakBench/jbb-behaviors harmful 100 Jailbreak goal prompts
HarmBench Extra mariagrandury/harmbench DirectRequest / test 80 Additional behaviors

After deduplication: 912 unique harmful prompts

Benign Prompts (2,000 total)

Source Dataset ID Split Count
Alpaca tatsu-lab/alpaca train (first 2,000) 2,000

πŸ”„ Augmentations Applied

Augmentation Ratio Description
Standard Refusal 60% Direct refusal + safe alternative
DeRTa (Defensive Reframing) 20% Acknowledges topic, pivots to safe educational context
Past-Tense Variants 20% Historical framing of harmful prompts (e.g., "How did people...")

Total augmented harmful examples: 912 base + 182 past-tense = 1,094


🎯 Refusal Categories

Prompts are categorized using keyword heuristics for topic-aligned refusals:

Category Count Example Alternative
GENERAL 595 Generic safety refusal
CYBER/HACKING 172 Defensive security, blue teaming
VIOLENCE/Harm 98 Crisis resources, safety information
DRUGS 25 Health effects, addiction support
COPYRIGHT 22 Summary, analysis, cultural context

πŸ€– Refusal Generation

All 1,094 refusals were dynamically generated using:

  • Model: llama-3.1-8b-instant via Groq API
  • Method: Proactive round-robin key rotation across 5 API keys
  • Fallback Templates Used: 0 (verified programmatically)

System prompts enforced strict topic alignment to prevent "domain drift" (e.g., drug prompts do NOT pivot to cybersecurity lectures).


⚠️ Disclaimers

  1. Copyright Category: Includes refusals for copyrighted content (lyrics, books). These are distinct from physical harm refusals.

  2. Benign Data Accuracy: Benign samples from Alpaca are not independently fact-checked. Some may be outdated or oversimplified.

  3. Not a Safety Benchmark: This dataset is for training, not evaluation. For evaluation, use HarmBench or JailbreakBench directly.


πŸ“‚ Files

File Description
training_data.json Full dataset (3,094 examples)
training_sample.json Sample of ~8 examples per category

πŸ“œ License

MIT License. See repository root for details.

README history 5 revisions

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.

  1. 2025-12-29Fix: Use valid task_categories88a910d3.4 KB
    Loading...
  2. 2025-12-29Fix: Remove LIMA reference2843f503.5 KB
    Loading...
  3. 2025-12-29Upload dataset READMEd220c0d3.6 KB
    Loading...
  4. 2025-12-29Upload training data12bc9570 B
    Loading...
  5. 2025-12-29initial commit10fd0990 B
    Loading...

Used by abliterated 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.

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, license clarifications. Click any thread to expand and read the full conversation inline. Newest first.

  1. 2025-12-30[bot] Conversion to Parquetopen1 πŸ’¬#1
    Loading...

Related datasets same stage Β· extract

Read further

Metadata

License
mit

Repository

Download the dataset

0

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("ApdoElepe/openelm-safety-dataset")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="ApdoElepe/openelm-safety-dataset", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/ApdoElepe/openelm-safety-dataset
Catalog is the map. Apps are the tools.

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

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration