IMDB sentiment fine tuning demo, TF accuracy error

Hello! I’m attempting to run through the sentiment analysis demo here:(How to fine-tune a model for common downstream tasks) and to fine tune it with TF. What is the most efficient method to get accuracy and other metrics reported when I run model.compile, and I’m getting errors when I attempt to add metrics. Thank you all for your time and expertise! I’m new to HF.

Hello! :wave:

If passing metrics=["accuracy"], for example, doesn’t work, you can try using a KerasMetricCallback and pass it as a callback to (Keras callbacks).

Thanks for the suggestions!