evaluate 0 0 0

natolambert/xstest-v2-copy

published by @natolambert

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
36.2K
Last 30 days
3.5K
Likes
7
Size
924 KB
Created on HF
2023-12-14
Age
2 years ago

Description

XSTest Dataset for Testing Exaggerated Safety

Note, this is an upload of the data found here for easier research use.

All credit to the authors of the paper

The test prompts are subject to Creative Commons Attribution 4.0 International license. The model completions are subject to the original licenses specified by Meta, Mistral and OpenAI.

Loading the dataset

Use the following:

from datasets import load_dataset

dataset = load_dataset("natolambert/xstest-v2-copy)… See the full description on the dataset page: https://huggingface.co/datasets/natolambert/xstest-v2-copy.

Tags

language:enlicense:cc-by-4.0size_categories:1K<n<10Kformat:parquetmodality:textlibrary:datasetslibrary:pandaslibrary:mlcroissantlibrary:polarsarxiv:2308.01263region:us

README current version from Hugging Face


license: cc-by-4.0
dataset_info:
features:

  • name: id
    dtype: string
  • name: type
    dtype: string
  • name: prompt
    dtype: string
  • name: completion
    dtype: string
  • name: annotation_1
    dtype: string
  • name: annotation_2
    dtype: string
  • name: agreement
    dtype: bool
  • name: final_label
    dtype: string
    splits:
  • name: gpt4
    num_bytes: 264757
    num_examples: 450
  • name: llama2new
    num_bytes: 523074
    num_examples: 450
  • name: llama2orig
    num_bytes: 476580
    num_examples: 450
  • name: mistralguard
    num_bytes: 309478
    num_examples: 450
  • name: mistralinstruct
    num_bytes: 377642
    num_examples: 450
  • name: prompts
    num_bytes: 47890
    num_examples: 450
    download_size: 930253
    dataset_size: 1999421
    configs:
  • config_name: default
    data_files:
    • split: gpt4
      path: data/gpt4-*
    • split: llama2new
      path: data/llama2new-*
    • split: llama2orig
      path: data/llama2orig-*
    • split: mistralguard
      path: data/mistralguard-*
    • split: mistralinstruct
      path: data/mistralinstruct-*
    • split: prompts
      path: data/prompts-*
      task_categories:
  • conversational
    language:
  • en
    size_categories:
  • 1K<n<10K

XSTest Dataset for Testing Exaggerated Safety

Note, this is an upload of the data found here for easier research use.
All credit to the authors of the paper

The test prompts are subject to Creative Commons Attribution 4.0 International license. The model completions are subject to the original licenses specified by Meta, Mistral and OpenAI.

Loading the dataset

Use the following:

from datasets import load_dataset
dataset = load_dataset("natolambert/xstest-v2-copy)
prompts = dataset["prompts"] # select the correct subset(s)

The dataset is a DatasetDict with the following structure:

DatasetDict({
    gpt4: Dataset({
        features: ['id', 'type', 'prompt', 'completion', 'annotation_1', 'annotation_2', 'agreement', 'final_label'],
        num_rows: 450
    })
    llama2new: Dataset({
        features: ['id', 'type', 'prompt', 'completion', 'annotation_1', 'annotation_2', 'agreement', 'final_label'],
        num_rows: 450
    })
    llama2orig: Dataset({
        features: ['id', 'type', 'prompt', 'completion', 'annotation_1', 'annotation_2', 'agreement', 'final_label'],
        num_rows: 450
    })
    mistralguard: Dataset({
        features: ['id', 'type', 'prompt', 'completion', 'annotation_1', 'annotation_2', 'agreement', 'final_label'],
        num_rows: 450
    })
    mistralinstruct: Dataset({
        features: ['id', 'type', 'prompt', 'completion', 'annotation_1', 'annotation_2', 'agreement', 'final_label'],
        num_rows: 450
    })

})

The mapping for prompts is as follows (from the original below)

  • id_v1 removed,
  • id_v2 -> id
  • empty column completion
  • focus to annotation_1 and note to annotation_2
  • empty final_label
    prompts: Dataset({
        features: ['id_v1', 'id_v2', 'type', 'prompt', 'focus', 'note'],
        num_rows: 450
    })

Please cite their work:

@misc{röttger2023xstest,
      title={XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models}, 
      author={Paul Röttger and Hannah Rose Kirk and Bertie Vidgen and Giuseppe Attanasio and Federico Bianchi and Dirk Hovy},
      year={2023},
      eprint={2308.01263},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

README history 7 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. 2023-12-14Update README.mdb71afe23.4 KB
    Loading...
  2. 2023-12-14Update README.md944677b3.4 KB
    Loading...
  3. 2023-12-14Merge branch 'main' of https://huggingface.co/datasets/natolambert/xstest-copy9deda783.3 KB
    Loading...
  4. 2023-12-14init87e0b322.2 KB
    Loading...
  5. 2023-12-14Upload dataset5a7f2771.9 KB
    Loading...
  6. 2023-12-14Update README.md428a5bf812 B
    Loading...
  7. 2023-12-14initial commitb07707227 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. 2023-12-15[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · evaluate

Read further

Metadata

License
cc-by-4.0

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("natolambert/xstest-v2-copy")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="natolambert/xstest-v2-copy", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/natolambert/xstest-v2-copy
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