1、环境 1.1 python环境 pip install torch==2.1.0 torchvision==0.16.0 --index-url https://download.pytorch.org/whl/cpu pip install transformers==4.35.0
1、环境搭建 这里使用conda搭建环境 1.1、创建并激活环境 conda create -n ms1 python=3.9 conda activate ms1 1.2 安装Pytorch等 pip3 install -i https://pypi.tuna.tsinghua.edu.cn/si