Hey, How do I save this model? it has multiple classes and is not sequential or functional

I am trying to save this model - Image captioning with visual attention  |  TensorFlow Core.

I feel like I don’t understand the structure well enough, so if someone can share a simple understanding of this code I would appreciate it.

Hey, How do I save this model - Image captioning with visual attention  |  TensorFlow Core ? it has multiple classes and is not sequential or functional. So I am not sure how do I save this model for deployment and other stuff.