metadata
{}
allenai/open_instruct: Generation Dataset
See https://github.com/allenai/open-instruct/blob/main/docs/algorithms/rejection_sampling.md for more detail
Configs
args:
{'add_timestamp': True,
'dataset_end_idx': 80000,
'dataset_mixer_list': ['VGraf/no_safety_tulu_pref', '100000'],
'dataset_shuffle_seed': 42,
'dataset_splits': ['train', 'train'],
'dataset_start_idx': 70000,
'hf_entity': 'VGraf',
'hf_repo_id': 'generation',
'max_qs': 7,
'mode': 'generation',
'model_name_or_path': 'gpt-3.5-turbo-0125',
'push_to_hub': True,
'revision': 'main',
'save_filename': '/BIG_nonsafety_pref_paraphrase_prompts_startID_70000.jsonl',
'skill': 'paraphrase_prompt'}
dataset_config:
{'batched': False,
'binary_messages_key': 'messages',
'chat_template': 'simple_chat',
'convert_preference_to_binary_dataset': False,
'label': 'binary_labels',
'load_from_cache_file': False,
'max_prompt_token_lenth': None,
'max_token_length': None,
'ncols': 2,
'num_proc': 1,
'preference_chosen_key': 'chosen',
'preference_rejected_key': 'rejected',
'sanity_check': True,
'sanity_check_max_samples': 100,
'sft_messages_key': 'messages',
'train_only_on_prompt': False}
gen_args:
{'num_completions': 1,
'response_length': 2048,
'temperature': 0.8,
'tensor_parallel_size': 1,
'top_p': 0.9}
Reproduce this dataset
- Download the
['generation.py', 'BIG_nonsafety_pref_paraphrase_prompts_startID_70000.jsonl']from the https://huggingface.co/datasets/VGraf/generation_1746570095. - Run
python open_instruct/rejection_sampling/generation.py --dataset_mixer_list VGraf/no_safety_tulu_pref 100000 --dataset_splits train train --model_name_or_path gpt-3.5-turbo-0125 --num_completions 1 --dataset_shuffle_seed 42 --max_qs 7 --skill paraphrase_prompt --sanity_check --push_to_hub --dataset_start_idx 70000 --dataset_end_idx 80000 --save_filename /BIG_nonsafety_pref_paraphrase_prompts_startID_70000.jsonl