ablate 0 0 0

lenML/abliterate-refusal-cn

published by @lenML

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
743
Last 30 days
31
Likes
-
Size
5.0 MB
Created on HF
2024-11-10
Age
1 years ago

Description

我使用本地模型将其翻译为中文,为了减少使用 "abliterator" 脚本时对llm中文能力的损害

Dataset for abliterating refusal in large language models

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

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

Source repo: https://huggingface.co/datasets/byroneverson/abliterate-refusal

Example usage:

import datasets

instructions = 512

dataset = load_dataset("lenML/abliterate-refusal-cn"… See the full description on the dataset page: https://huggingface.co/datasets/lenML/abliterate-refusal-cn.

Tags

task_categories:feature-extractiontask_categories:text-generationlanguage:enlanguage:zhsize_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
  • zh
    tags:
  • abliterate
  • abliterated
  • abliteration
  • refusal
  • harmful
  • harmless

我使用本地模型将其翻译为中文,为了减少使用 "abliterator" 脚本时对llm中文能力的损害

Dataset for abliterating refusal in large language models

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

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

Source repo: https://huggingface.co/datasets/byroneverson/abliterate-refusal

Example usage:

import datasets

instructions = 512

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

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

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

# Randomly select 512 entries from each filtered dataset(chinese)
harmful_cn_instructions = random.sample(harmful_dataset['prompt_cn'], instructions)
harmless_cn_instructions = random.sample(harmless_dataset['prompt_cn'], instructions)

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. 2024-11-10Upload abliterate-refusal-cn.json31e1a131.3 KB
    Loading...
  2. 2024-11-10Update README.md9d16c8c1.3 KB
    Loading...
  3. 2024-11-10Update README.md12681501.3 KB
    Loading...
  4. 2024-11-10Update README.mdc4c05271.3 KB
    Loading...
  5. 2024-11-10Update README.mdc6e48aa1.2 KB
    Loading...
  6. 2024-11-10Upload abliterate-refusal-cn.jsonda10ce728 B
    Loading...
  7. 2024-11-10initial commit65060a428 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 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-11-11[bot] Conversion to Parquetclosed1 💬#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("lenML/abliterate-refusal-cn")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="lenML/abliterate-refusal-cn", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/lenML/abliterate-refusal-cn
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