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)