I just followed this tutorial of Keras.io https://keras.io/examples/nlp/semantic_similarity_with_bert/
I can run it and the model works. When i want to save the model