It's likely to either be an approach like this [0] or something even less involved.
0: https://github.com/apple/ml-clara