Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 555 Bytes

data_cleaning.md

File metadata and controls

11 lines (9 loc) · 555 Bytes

Data cleaning

# Convert html to markdown
python3 -m fastchat.data.clean_sharegpt --in sharegpt_20230322_html.json --out sharegpt_20230322_clean.json

# Keep or remove specific languages
python3 -m fastchat.data.optional_clean --in sharegpt_20230322_clean.json --out sharegpt_20230322_clean_lang.json --skip-lang SOME_LANGUAGE_CODE

# Split long conversations
python3 -m fastchat.data.split_long_conversation --in sharegpt_20230322_clean_lang.json --out sharegpt_20230322_clean_lang_split.json --model-name /home/ubuntu/model_weights/llama-7b/