Views
No views yet

1git clone https://github.com/EleutherAI/lm-evaluation-harness
2cd lm-evaluation-harness
3pip install -e .1MODEL=instruction-pretrain/InstructLM-500M
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@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}