fine-tune 0 0 0

betteruncensored/sharegpt

published by @betteruncensored

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
627
Last 30 days
16
Likes
-
Size
1015.6 MB
Created on HF
2024-02-11
Age
2 years ago

Description

Duplicated from philschmid/sharegpt-raw which is marked as duppliated from jeffwan/sharegpt_vicuna until step 3.

Then processed with the Better Uncensored (BUn) pipeline. A version with long conversations split is also provided.

Now we have the cleaned uncensored dataset in sharegpt_20230401_clean_bun.json (57058 conversations) and the same with split long conversations in sharegpt_20230401_clean_split_bun.json (103152 conversations).

This latest one should be a drop-in replacement for… See the full description on the dataset page: https://huggingface.co/datasets/betteruncensored/sharegpt.

Tags

license:otherregion:us

README current version from Hugging Face


license: other
duplicated_from: jeffwan/sharegpt_vicuna

Duplicated from philschmid/sharegpt-raw which is marked as duppliated from jeffwan/sharegpt_vicuna until step 3.

Then processed with the Better Uncensored (BUn) pipeline. A version with long conversations split is also provided.

Now we have the cleaned uncensored dataset in sharegpt_20230401_clean_bun.json (57058 conversations) and the same with split long conversations in sharegpt_20230401_clean_split_bun.json (103152 conversations).

This latest one should be a drop-in replacement for anon8231489123/ShareGPT_Vicuna_unfiltered.

Note: the BUn pipeline removes mostly unicode conversations, so this would not be usable for mainly non-ASCII languages like Chineese, Russian, etc.

Prepraration

pip3 install -r requirements.txt

Data Cleaning

  1. merge two raw json files and json beautify the merged file
python merge.py sharegpt_90k_raw_dataset/sg_90k_part1.json sharegpt_90k_raw_dataset/sg_90k_part2.json  sharegpt_20230401_html_unformatted.json
python pretty_json.py --in sharegpt_20230401_html_unformatted.json --out sharegpt_20230401_html.json
  1. (Optional) Verify the json file
if jq empty sharegpt_20230401_html.json 2>/dev/null; then
  echo "JSON is valid"
else
  echo "JSON is invalid"
fi

jq length sharegpt_90k_raw_dataset/sg_90k_part1.json
jq length sharegpt_90k_raw_dataset/sg_90k_part2.json
jq length sharegpt_20230401_html.json
  1. clean data - remove html tags etc
python3 clean_sharegpt.py --in sharegpt_20230401_html.json --out sharegpt_20230401_clean.json
....
100%|███████████████████████████████████████████████████████████████████| 90665/90665 [06:32<00:00, 230.98it/s]
total: 90665, skip: 13745, new: 76920
  1. uncensor with BUn
python uncensor_sharegpt.py --in-file sharegpt_20230401_clean.json --out-file sharegpt_20230401_clean_bun.json
....
total: 76920, skip: 19862, new: 57058, uncen: 0
  1. Split the long conversation
python -m fastchat.data.split_long_conversation --in sharegpt_20230401_clean_bun.json --out sharegpt_20230401_clean_split_bun.json --model-name meta-llama/Llama-2-13b-hf
...
#in: 57058, #out: 103152

Now we have the cleaned uncensored dataset in sharegpt_20230401_clean_bun.json (57058 conversations) and the same with split long conversations in sharegpt_20230401_clean_split_bun.json (103152 conversations).

This latest one should be a drop-in replacement for anon8231489123/ShareGPT_Vicuna_unfiltered.

README history 2 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-02-12Adding ShareGPT dataset Better Uncensored and with long convo splitff58eeb2.6 KB
    Loading...
  2. 2024-02-11initial commitaf860030 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.

Related datasets same stage · fine-tune

Read further

Metadata

License
other

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