Views
No views yet

Instruction Pre-Training achieves robust generalization in agentic RL!Advanced Usage section of instruction-synthesizer
1git clone https://github.com/EleutherAI/lm-evaluation-harness
2cd lm-evaluation-harness
3pip install -e .1MODEL=instruction-pretrain/InstructLM-1.3B
2add_bos_token=True # this flag is needed because lm-eval-harness set add_bos_token to False by default, but ours require add_bos_token to be True
3
4accelerate launch -m lm_eval --model hf \
5 --model_args pretrained=${MODEL},add_bos_token=${add_bos_token},dtype=float16 \
6 --gen_kwargs do_sample=False \
7 --tasks piqa,hellaswag,winogrande \
8 --batch_size auto \
9 --num_fewshot 0
10
11accelerate launch -m lm_eval --model hf \
12 --model_args pretrained=${MODEL},add_bos_token=${add_bos_token},dtype=float16 \
13 --gen_kwargs do_sample=False \
14 --tasks social_iqa,ai2_arc,openbookqa,boolq,mmlu \
15 --batch_size auto \
16 --num_fewshot 51@article{cheng2024instruction,
2 title={Instruction Pre-Training: Language Models are Supervised Multitask Learners},
3 author={Cheng, Daixuan and Gu, Yuxian and Huang, Shaohan and Bi, Junyu and Huang, Minlie and Wei, Furu},
4 journal={arXiv preprint arXiv:2406.14491},
5 year={2024}
6}1@inproceedings{
2cheng2024adapting,
3title={Adapting Large Language Models via Reading Comprehension},
4author={Daixuan Cheng and Shaohan Huang and Furu Wei},
5booktitle={The Twelfth International Conference on Learning Representations},
6year={2024},
7url={https://openreview.net/forum?id=y886UXPEZ0}
8}