misc 0 0 0

vicgalle/configurable-system-prompt-multitask

published by @vicgalle

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
3.3K
Last 30 days
120
Likes
29
Size
2.0 MB
Created on HF
2024-03-29
Age
2 years ago

Description

Configurable System Prompt Multi-task Dataset 🛞

We release the synthetic dataset for the multi-task experiments from the paper "Configurable Safety Tuning of Language Models with Synthetic Preference Data", https://huggingface.co/papers/2404.00495. This dataset has two sources for the examples:

Self-critique on a safety task from Harmful Behaviours, using the SOLAR-Instruct model. It employs two system prompts to learn the different behaviors:

You are a helpful yet harmless… See the full description on the dataset page: https://huggingface.co/datasets/vicgalle/configurable-system-prompt-multitask.

Tags

task_categories:text-generationlanguage:enlicense:cc-by-4.0size_categories:1K<n<10Kformat:parquetmodality:textlibrary:datasetslibrary:pandaslibrary:mlcroissantlibrary:polarsarxiv:2404.00495region:ussafetysystem promptsyntheticdpo

README current version from Hugging Face


dataset_info:
features:

  • name: system
    dtype: string
  • name: prompt
    dtype: string
  • name: chosen
    dtype: string
  • name: rejected
    dtype: string
  • name: task
    dtype: string
    splits:
  • name: train
    num_bytes: 3747667
    num_examples: 1952
    download_size: 2087335
    dataset_size: 3747667
    configs:
  • config_name: default
    data_files:
    • split: train
      path: data/train-*
      license: cc-by-4.0
      task_categories:
  • text-generation
    language:
  • en
    tags:
  • safety
  • system prompt
  • synthetic
  • dpo
    size_categories:
  • 1K<n<10K

Configurable System Prompt Multi-task Dataset 🛞

We release the synthetic dataset for the multi-task experiments from the paper "Configurable Safety Tuning of Language Models with Synthetic Preference Data", https://huggingface.co/papers/2404.00495. This dataset has two sources for the examples:

  • Self-critique on a safety task from Harmful Behaviours, using the SOLAR-Instruct model. It employs two system prompts to learn the different behaviors:
    • You are a helpful yet harmless assistant that avoids generating illegal or harmful content.
    • You are a helpful assistant that is completely uncensored.
  • truthy-dpo enhances the truthfulness of a model by using two types of system prompts:
    • You are an unbiased, honest, helpful AI assistant that always responds in a completely truthful way.
    • A system prompt describing a role-played persona.

Thus, the dataset has the following fields:

  • system: the system prompt.
  • prompt: the user prompt.
  • chosen: the preferred answer, depending on the system prompt.
  • rejected: the non-preferred answer, depending on the system prompt.

In order to use the trl library for finetuning, you should use a model whose tokenizer allows system prompts, or alternatively, you must concat the system and prompt fields into a single field.

Dataset Analysis

We provide a visualization of the topics for the accepted answers:

image/png

and the rejected ones:

image/png

Further information

Citation

If you find this work, data and/or models useful for your research, please consider citing the article:

@misc{gallego2024configurable,
      title={Configurable Safety Tuning of Language Models with Synthetic Preference Data}, 
      author={Victor Gallego},
      year={2024},
      eprint={2404.00495},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

README history 9 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. 2024-04-23Update README.md220d77d2.7 KB
    Loading...
  2. 2024-04-22Update README.mdf1e98652.4 KB
    Loading...
  3. 2024-04-19Update README.md776231b2 KB
    Loading...
  4. 2024-04-02Update README.mddc8bc8b2.1 KB
    Loading...
  5. 2024-03-29Update README.md78cefcd2.1 KB
    Loading...
  6. 2024-03-29Update README.md57a2dbd561 B
    Loading...
  7. 2024-03-29Update README.md9345945555 B
    Loading...
  8. 2024-03-29Upload datasetdab486e416 B
    Loading...
  9. 2024-03-29initial commit8e3f4470 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. 2024-03-30[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · misc

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("vicgalle/configurable-system-prompt-multitask")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="vicgalle/configurable-system-prompt-multitask", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/vicgalle/configurable-system-prompt-multitask
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