Dear all,
i try to move to GPU to fine tune a BERT classification model with Keras (like this hugginface tutorial).
I use TFAutoModelForSequenceClassification to load the model, but this class not have .to() function to move to GPU.
If I move to the general AutoModelForSequenceClassification i cannot have .compile() function to set
optimizer=tf.keras.optimizers.Adam(learning_rate=2e-5),
loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True),
metrics=tf.metrics.SparseCategoricalAccuracy(),
Any solutions?
Thanks in advance