Safety benchmarks, over-refusal tests, and guard-model data.Safety tests and tests for refusing harmless requests.
task_categories:text-generationlanguage:enlicense:mitsize_categories:n<1Kformat:jsonmodality:tabularmodality:textlibrary:datasets+10 more
Lifetime downloads
777
Last 30 days
717
Likes
-
Size
287.4 MB
Description
LongHarmBench
LongHarmBench is a benchmark for evaluating whether ultra long-context language models maintain safety constraints when harmful instructions are embedded inside long, otherwise benign contexts. It uses generated benign haystacks and pairs them with 80 established HarmBench behaviors. For each HarmBench behavior, topical keywords are derived from the behavior description and used to iteratively generate semantically related but benign educational, descriptive, or… See the full description on the dataset page: https://huggingface.co/datasets/Tomk187/LongHarmBench.
Structure 1 config · from the README front matter1 subset, from the author's description
defaultdefault
Data files
test cases.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
mit
Language
en
Created on HFCreated
2026-07-01 · 5 months ago
Size category
n<1K
ModalitiesData types
tabulartext
Formats
json
LibrariesTools
datasetspandaspolarsmlcroissant
Related datasets same stage · Evaluatesame step · Testing
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("Tomk187/LongHarmBench")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="Tomk187/LongHarmBench", repo_type="dataset")
READMEAuthor's descriptioncurrent version from Hugging Faceas it is now on Hugging Face
LongHarmBench
LongHarmBench is a benchmark for evaluating whether ultra long-context language models maintain safety constraints when harmful instructions are embedded inside long, otherwise benign contexts. It uses generated benign haystacks and pairs them with 80 established HarmBench behaviors. For each HarmBench behavior, topical keywords are derived from the behavior description and used to iteratively generate semantically related but benign educational, descriptive, or background-style passages with meta-llama/Meta-Llama-3.1-8B-Instruct. Generation continues until the selected target length is reached. The resulting contexts are stored as static files under haystacks/. The harmful instruction is stored separately in prompt_prefix and inserted only during prompt reconstruction. For each behavior, LongHarmBench includes one context for each length interval: short from 0 to 32K words, medium from 32K to 128K words, and long from 128K to 1M words. Each behavior and length variant is evaluated with the harmful instruction placed at the front, middle, or end of the context. This yields 720 total evaluation samples: 80 behaviors x 3 context lengths x 3 payload placements.
Safety Warning
This dataset contains harmful, unsafe, offensive, and policy-violating instructions. It is intended only for controlled safety research, red-team evaluation, robustness analysis, and defensive benchmarking of language models.
Do not use this dataset to generate, optimize, deploy, or facilitate harmful behavior. Users should evaluate models in controlled environments, apply appropriate safety filters, comply with applicable laws and institutional review requirements, and avoid publishing model outputs that provide actionable harmful guidance.
README historyEdit history5 revisions5 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.
2026-07-02Add sharded case filesbf1a7082.3 KB
Loading...
2026-07-02Add benchmark casesf827a682.3 KB
Loading...
2026-07-02Add dataset card5e775212.3 KB
Loading...
2026-07-02Initial release9c614f121 B
Loading...
2026-07-01initial commit8b67e3421 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.
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.