I am trying to fine tune the BioBERT model using free-text laboratory data in a data safe haven.
The biobert-pretrained model was downloaded into a local directory.
I tried to load the model weights using the following code:
From transformers import TFAutoModelForSequenceClassification
model = TFAutoModelForSequenceClassification.from_pretrained('/localdirectorypath')
I get an error message that no file named tf_model.h5 or pytorch_model.bin is found in the local directory.
Am I not able to use the HuggingFace transformers library with the biobert-pretrained model?
I am trying to fine tune the BioBERT model using free-text laboratory data in a data safe haven. The biobert-pretrained model was downloaded into a local directory.
I tried to load the model weights using the following code: From transformers import TFAutoModelForSequenceClassification model = TFAutoModelForSequenceClassification.from_pretrained('/localdirectorypath')
I get an error message that no file named tf_model.h5 or pytorch_model.bin is found in the local directory.
Am I not able to use the HuggingFace transformers library with the biobert-pretrained model?