huggingface的Transformers库报错 Failed to import transformers.models.gpt2.modeling_gpt2 because of the f
huggingface报错**
·
报错
RuntimeError: Failed to import transformers.models.gpt2.modeling_gpt2 because of the following error (look up to see its traceback):
Failed to import transformers.onnx.config because of the following error (look up to see its traceback):
cannot import name ‘Image’ from ‘PIL’ (unknown location)
**
将transformers版本从4.23.1换到4.16.2就好了
**
更多推荐
已为社区贡献1条内容
所有评论(0)