下载github.com上的依赖资源(需要反复试才能成功,所以单独安装)
export GIT_TRACE=1
export GIT_CURL_VERBOSE=1
pip install git+https://github.com/PanQiWei/AutoGPTQ.git -i https://pypi.mirrors.ustc.edu.cn/simple --trusted-host=pypi.mirrors.ustc.edu.cn
pip install git+https://github.com/huggingface/peft -i https://pypi.mirrors.ustc.edu.cn/simple
pip install git+https://github.com/huggingface/transformers -i https://pypi.mirrors.ustc.edu.cn/simple
服务器由于各种原因不能下载
采用方法之一:
win下:
git clone https://github.com/huggingface/transformers
发送到linux上,
pip install git+https://github.com/PanQiWei/AutoGPTQ.git -i https://pypi.mirrors.ustc.edu.cn/simple --trusted-host=pypi.mirrors.ustc.edu.cn
pip install git+https://github.com/huggingface/peft -i https://pypi.mirrors.ustc.edu.cn/simple
可采用:
pip setup install命令安装
安装:pip install git+https://github.com/huggingface/transformers -i https://pypi.mirrors.ustc.edu.cn/simple方法:
git clone https://github.com/huggingface/transformers.git(win上,服务器不能访问huggingface情况下)
cd transformers
pip install -e .