| | --- |
| | {} |
| | --- |
| | # 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': False, |
| | 'hf_entity': 'jacobmorrison', |
| | 'hf_repo_id': 'generation_6511', |
| | 'mode': 'generation', |
| | 'model_name_or_path': '/model', |
| | 'push_to_hub': True, |
| | 'revision': 'main', |
| | 'save_filename': '/output/shards/6511/25.jsonl', |
| | 'skill': 'chat'} |
| | |
| | dataset_args: |
| | {'dataset_end_idx': 86658, |
| | 'dataset_name': 'ai2-adapt-dev/SlimOrca-reformat', |
| | 'dataset_start_idx': 83325, |
| | 'dataset_test_split': 'validation', |
| | 'dataset_text_field': 'prompt', |
| | 'dataset_train_split': 'train', |
| | 'sanity_check': False, |
| | 'sanity_check_size': 100} |
| | |
| | gen_args: |
| | {'num_completions': 8, |
| | 'response_length': 2048, |
| | 'temperature': 0.8, |
| | 'tensor_parallel_size': 1, |
| | 'top_p': 0.9} |
| | ``` |
| |
|
| | ## Reproduce this dataset |
| |
|
| | 1. Download the `['generation.py', '25.jsonl']` from the https://huggingface.co/datasets/jacobmorrison/generation_6511. |
| | 2. Run `python open_instruct/rejection_sampling/generation.py --dataset_name ai2-adapt-dev/SlimOrca-reformat --model_name_or_path /model --dataset_start_idx 83325 --dataset_end_idx 86658 --save_filename /output/shards/6511/25.jsonl --hf_repo_id generation_6511 --no_add_timestamp --push_to_hub --num_completions 8 --tensor_parallel_size 1` |
| |
|