问题pip install -r requirements.txt时报错如下:
`
The conflict is caused by:
The user requested safetensors==0.3.3
accelerate 0.27.2 depends on safetensors>=0.3.1
transformers 4.42.4 depends on safetensors>=0.4.1
To fix this you could try to:
loosen the range of package versions you've specified
remove package versions to allow pip to attempt to solve the dependency conflict
`
问题
pip install -r requirements.txt
时报错如下: ` The conflict is caused by: The user requested safetensors==0.3.3 accelerate 0.27.2 depends on safetensors>=0.3.1 transformers 4.42.4 depends on safetensors>=0.4.1To fix this you could try to:
原因 git提交日志中有一次错误的提交
解决方法 修改为上一次提交即可 transformers==4.42.4和huggingface-hub==0.23.4无法安装 修改为huggingface-hub==0.20.2和transformers==4.26.1