Trying to load TFmodel throwing 'NoneType' not callable error

#79
by snowballsj - opened

Below script throwing error -> 'NoneType' object is not callable'

'''
from transformers import AutoTokenizer, TFBertModel
import tensorflow as tf
model = TFBertModel.from_pretrained("google-bert/bert-base-uncased")
'''

Dependencies:
Python: 3.11
tensorflow==2.16.2
tf-nightly==2.17.0.dev20240601
sentencepiece==0.2.0
transformers==4.35.2

Does anyone know what am I missing?

I have successfully loaded the model with this version of tensorflow:

tensorflow==2.15.0.post1

Sign up or log in to comment