ablate 0 0 0

byroneverson/abliterate-refusal

published by @byroneverson

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
1.6K
Last 30 days
83
Likes
11
Size
3.0 MB
Created on HF
2024-09-01
Age
2 years ago

Description

Dataset for abliterating refusal in large language models

Contains "harmful" prompts where "target" field is true, and "harmless" prompts where false.

Credit: https://github.com/Sumandora/remove-refusals-with-transformers/

Example usage:

import datasets

instructions = 512

dataset = load_dataset("byroneverson/abliterate-refusal", split="train")

# Filter the dataset based on 'target'

harmful_dataset = dataset.filter(lambda x: x['target'] == True)

harmless_dataset… See the full description on the dataset page: https://huggingface.co/datasets/byroneverson/abliterate-refusal.

Tags

task_categories:feature-extractiontask_categories:text-generationlanguage:ensize_categories:10K<n<100Kformat:jsonmodality:textlibrary:datasetslibrary:pandaslibrary:mlcroissantlibrary:polarsregion:usabliterateabliteratedabliterationrefusalharmfulharmless

README current version from Hugging Face


task_categories:

  • feature-extraction
  • text-generation
    language:
  • en
    tags:
  • abliterate
  • abliterated
  • abliteration
  • refusal
  • harmful
  • harmless

Dataset for abliterating refusal in large language models

Contains "harmful" prompts where "target" field is true, and "harmless" prompts where false.

Credit: https://github.com/Sumandora/remove-refusals-with-transformers/

Example usage:

import datasets

instructions = 512

dataset = load_dataset("byroneverson/abliterate-refusal", split="train")

# Filter the dataset based on 'target'
harmful_dataset = dataset.filter(lambda x: x['target'] == True)
harmless_dataset = dataset.filter(lambda x: x['target'] == False)

# Randomly select 512 entries from each filtered dataset
harmful_instructions = random.sample(harmful_dataset['prompt'], instructions)
harmless_instructions = random.sample(harmless_dataset['prompt'], instructions)

README history 11 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-09-04Update README.md7f29348909 B
    Loading...
  2. 2024-09-04Update README.mdcb3648b909 B
    Loading...
  3. 2024-09-04Update README.md44fcab3386 B
    Loading...
  4. 2024-09-02Update README.mdfd52a0a409 B
    Loading...
  5. 2024-09-02Create README.mdcbd8401315 B
    Loading...
  6. 2024-09-02Upload abliterate-refusal.json with huggingface_hubb7311510 B
    Loading...
  7. 2024-09-02Delete harmless.txt42341310 B
    Loading...
  8. 2024-09-02Delete harmful.txt169b8c60 B
    Loading...
  9. 2024-09-02Upload abliterate-refusal.json with huggingface_hub0d02ff60 B
    Loading...
  10. 2024-09-02Upload 2 files494990d0 B
    Loading...
  11. 2024-09-02initial commitd4ac2af0 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-09-03[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · ablate

Read further

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