Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 913 Bytes

Lesson6 Compass评测LLM.md

File metadata and controls

24 lines (16 loc) · 913 Bytes

Lesson6 Compass评测LLM

作业:完成Compass评测:

核心code

conda create --
name opencompass --clone=/root/share/conda_envs/internlm-base
source activate opencompass
git clone https://github.com/open-compass/opencompass
cd opencompass
pip install -e .

cp /share/temp/datasets/OpenCompassData-core-20231110.zip /root/opencompass/
unzip OpenCompassData-core-20231110.zip


python run.py --datasets ceval_gen --hf-path /share/temp/model_repos/internlm-chat-7b/ --tokenizer-path /share/temp/model_repos/internlm-chat-7b/ --tokenizer-kwargs padding_side='left' truncation='left' trust_remote_code=True --model-kwargs trust_remote_code=True device_map='auto' --max-seq-len 2048 --max-out-len 16 --batch-size 4 --num-gpus 1 --debug

最终结果如下:

image-20240313001823225