[InternLM 大模型开源社区]大模型实战营第三期@202408-基础岛-第6关-OpenCompass 评测 InternLM-1.8B 实践

任务类型任务内容预计耗时完成度
闯关任务使用 OpenCompass 评测 internlm2-chat-1.8b 模型在 ceval 数据集上的性能,记录复现过程并截图45mins完成
  • cd /root/code && vi compass_env.sh, 复制下面代码进去然后bash compass_env.sh

    conda create -n compass python=3.10 -y
    source activate compass
    [ ! -e /tmp/opencompass ] \
    && git clone https://github.com/open-compass/opencompass.git /tmp/opencompass
    cd /tmp/opencompass
    pip install -e . torch==2.0.1+cu117 torchvision==0.15.2+cu117 torchaudio==2.0.2 torchtext==0.15.2 -f https://mirror.sjtu.edu.cn/pytorch-wheels/cu117/?mirror_intel_list -f https://download.pytorch.org/whl/cu117/torch_stable.html
    
    
  • unzip /share/temp/datasets/OpenCompassData-core-20231110.zip -d /tmp/opencompass

  • conda activate compass && python /tmp/opencompass/tools/list_configs.py internlm ceval

    cd /tmp/opencompass \
    && python /tmp/opencompass/run.py \
        --datasets ceval_gen \
        --hf-path /root/share/new_models/Shanghai_AI_Laboratory/internlm2-chat-1_8b \
        --tokenizer-path /root/share/new_models/Shanghai_AI_Laboratory/internlm2-chat-1_8b \
        --tokenizer-kwargs padding_side='left' truncation='left' trust_remote_code=True \
        --model-kwargs device_map='auto' trust_remote_code=True \
        --max-seq-len 2048 \
        --max-out-len 16 \
        --batch-size 2 \
        --hf-num-gpus 1 \
        --debug
    

在这里插入图片描述

  • ^ 训练开始!

在这里插入图片描述

  • 可以从./tmp找到log
    在这里插入图片描述
    在这里插入图片描述
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值