-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b18d5fd
commit a05cf83
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
fastchat/serve/monitor/dataset_release_scripts/lmsys_chat_1m/process_all.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
export BASE=clean_conv_20230809_1.5M_pii | ||
export SCALE=1 | ||
|
||
# filter words | ||
python3 filter_bad_conv.py --in $BASE.json | ||
|
||
# Clean up some fileds (e.g., timestamps) | ||
python3 final_post_processing.py --in $BASE.s1.json | ||
|
||
# upload to hf | ||
python3 upload_hf_dataset.py --in $BASE.s1.s2.json | ||
|
||
# Make another version with openai moderation tag | ||
python3 merge_oai_tag.py --in $BASE.s1.s2.json | ||
|
||
# Make visualizations | ||
python3 compute_stats.py --in $BASE.s1.json --scale $SCALE |