Skip to content

Commit

Permalink
Avoid import sentencepiece_model_pb2 in utils.__init__.py (#24689)
Browse files Browse the repository at this point in the history
fix

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
  • Loading branch information
ydshieh and ydshieh authored Jul 6, 2023
1 parent 66a3784 commit bbf3090
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/transformers/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,6 @@
from . import sentencepiece_model_pb2
else:
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"
Expand Down

0 comments on commit bbf3090

Please sign in to comment.