pytorch / android-demo-app

PyTorch android examples of usage in applications
1.48k stars 607 forks source link

How to create a new nlp model? #68

Open anbo724 opened 4 years ago

anbo724 commented 4 years ago

Thanks for the project. The example successful run on Android. However, I want to create my our model for other nlp tasks. So, can you show me the way to create the nlp model? Or the source of creating model-reddit16-f140225004_2.pt1?

Mijawel commented 4 years ago

Hey, I was struggling with the same issue for a bit. I worked it out in the end though, so I figured I would make a short tutorial showing how.

https://medium.com/@mix29050/running-nlp-models-on-pytorch-android-api-588c6a038154

Hope this helps!