ColossalAI/applications/ColossalChat/examples/data_preparation_scripts/prepare_kto_dataset.sh

15 lines
418 B
Bash
Raw Normal View History

2024-07-26 10:07:15 +00:00
SAVE_DIR=""
2024-07-18 07:54:11 +00:00
rm -rf $SAVE_DIR/cache
rm -rf $SAVE_DIR/jsonl
rm -rf $SAVE_DIR/arrow
python prepare_dataset.py --type kto \
2024-07-18 08:38:56 +00:00
--data_input_dirs /PATH/TO/KTO/DATASET \
--conversation_template_config /PATH/TO/CHAT/TEMPLATE/CONFIG.json \
--tokenizer_dir "" \
2024-07-18 07:54:11 +00:00
--data_cache_dir $SAVE_DIR/cache \
--data_jsonl_output_dir $SAVE_DIR/jsonl \
--data_arrow_output_dir $SAVE_DIR/arrow \
--max_length 1024