You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromtransformersimportTFAutoModelForSequenceClassificationfromtensorflow.keras.optimizersimportAdam# Load and compile our modelmodel=TFAutoModelForSequenceClassification.from_pretrained("bert-base-cased")
# Lower learning rates are often better for fine-tuning transformersmodel.compile(optimizer=Adam(3e-5)) # No loss argument!model.fit(tokenized_data, labels)
We would get this error:
The text was updated successfully, but these errors were encountered:
This is the notebook:
https://github.com/huggingface/notebooks/blob/main/transformers_doc/en/training.ipynb
In this code cell:
We would get this error:
The text was updated successfully, but these errors were encountered: