Unverified Commit bbf30908 authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

Avoid import `sentencepiece_model_pb2` in `utils.__init__.py` (#24689)



fix
Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent 66a37842
...@@ -184,9 +184,6 @@ if is_protobuf_available(): ...@@ -184,9 +184,6 @@ if is_protobuf_available():
from . import sentencepiece_model_pb2 from . import sentencepiece_model_pb2
else: else:
from . import sentencepiece_model_pb2_new as sentencepiece_model_pb2 from . import sentencepiece_model_pb2_new as sentencepiece_model_pb2
else:
# just to get the expected `No module named 'google.protobuf'` error
from . import sentencepiece_model_pb2
WEIGHTS_NAME = "pytorch_model.bin" WEIGHTS_NAME = "pytorch_model.bin"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment