Machine Learning, Distributed Inference, and Generative Models for Digital Twins