具体bug
UnboundLocalError: cannot access local variable ‘sentencepiece_model_pb2’ where it is not associated with a value
环境:py3.11.x+ transformers + pytorch + sentencepiece 已经更新到最新版, 但加载T5-small时仍然出现报错。
解决方法:
pip install protobuf
具体bug
UnboundLocalError: cannot access local variable ‘sentencepiece_model_pb2’ where it is not associated with a value
环境:py3.11.x+ transformers + pytorch + sentencepiece 已经更新到最新版, 但加载T5-small时仍然出现报错。
解决方法:
pip install protobuf