If you would like to train a model, the cloud providers should already provide containers with a reasonable setup to start your training.
In that case, I would recommend the Python frontend or why would you like to use libtorch for training?
In the case of inference, I have to pass, as I don’t know what the best approach currently is.