Hi, I’m interested in implementing federated learning in an Android app and I’m hoping I can use pytorch for this.
The main problem I have is that it does not seem to be possible to build pytorch library for Android that can do training and not just inference.
Another problem is that the app is very constrained in terms of binary size it can allocate for this, so I would like to know if it’s possible to build a bare minimum version of libtorch for Android that is <10MB in size.
Is this something that’s possible or should I try something else?
As @cccclai mentioned we are building light-weighted runtime on both Android and iOS. It’s not super difficult to add training capability. Actually we have tests running in test/cpp/jit/test_lite_trainer.cpp, for functionality only. We’ll let you know when we put the necessary components into Android build.
Hi @iseeyuan, I am also interested in model training on Android devices with libtorch. I would like to ask what is the progress of supporting such function? Many thanks in advance.