Can't find Keras.engine

I suppose you should use TFAutomodelForSequentialClassification instead of AutomodelForSequentialClassification.