第六课:大模型评测教程笔记和作业

        一、环境安装

              

conda create --name opencompass python=3.10 pytorch torchvision pytorch-cuda -c nvidia -c pytorch -y
conda activate opencompass
git clone https://gitee.com/open-compass/opencompass.git
cd opencompass
pip install -e .
# 下载数据集到 data/ 处
wget https://github.com/open-compass/opencompass/releases/download/0.1.1/OpenCompassData.zip
unzip OpenCompassData.zip

      二、数据集

# 解压评测数据集到 data/ 处
cd ~/opencompass

cp /share/temp/datasets/OpenCompassData-core-20231110.zip .


unzip OpenCompassData-core-20231110.zip

# 将会在opencompass下看到data文件夹

python tools/list_configs.py internlm ceval

三、下载模型

apt-get install git-lfs
git init
git lfs install
git clone https://www.modelscope.cn/Shanghai_AI_Laboratory/internlm2-chat-7b.git

四、测试性能

python run.py --datasets ceval_gen --hf-path /root/model/Shanghai_AI_Laboratory/internlm2-chat-7b/ --tokenizer-path /root/model/Shanghai_AI_Laboratory/internlm2-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

就问这些个error,你怕不怕,小心脏你抖不抖。

重新来一遍吧


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

python tools/list_configs.py internlm ceval

python run.py --datasets ceval_gen --hf-path /root/model/Shanghai_AI_Laboratory/internlm2-chat-7b/ --tokenizer-path /root/model/Shanghai_AI_Laboratory/internlm2-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

激动吧

  • 4
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值