Export encoder and decoder model to import in Android Studio

I have follow this tutorial to train the language translation model: NLP From Scratch: Translation with a Sequence to Sequence Network and Attention — PyTorch Tutorials 2.1.1+cu121 documentation

I would like to ask how can i export the model into encoder and decoder based on the tutorial’s code above. After export I want to put in to Android studio using kotlin language. Or is there any method to train the language translation and import into Android Studio using Kotlin.

Thanks for helping :smiling_face_with_three_hearts: