Could not interpret optimizer identifier: {identifier}
# Load the pre-trained BERT model model = TFAutoModelForSequenceClassification.from_pretrained(‘bert-base-uncased’, num_labels=2) import tensorflow as tf from tensorflow.keras.optimizers import Adam # Instantiate the optimizer optimizer = tf.keras.optimizers.Adam(learning_rate = 0.001) # Compile the model model.compile( loss=model.compute_loss, optimizer=optimizer, metrics=[‘accuracy’] ) model.fit(train_dataset, validation_data=val_dataset, epochs=3) I am creating an entity extraction model in PyTorch using bert-base-uncased but when I try to […]