mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
833 B
833 B
概述
安装
- 参考 PyTorch 准备 Torch。
注意,OpenCompass 需要 pytorch>=1.13
。
conda create --name opencompass python=3.8 -y
conda activate opencompass
conda install pytorch torchvision -c pytorch
- 安装 OpenCompass:
git clone https://github.com/opencompass/opencompass
cd opencompass
pip install -e .
- 安装 humaneval(可选)
如果你希望在 humaneval 数据集上进行评估,请执行此步骤。
git clone https://github.com/openai/human-eval.git
cd human-eval
pip install -r requirments.txt
pip install -e .
请记住在源代码中删除第48-57行的注释,并取消对第58行的注释。