LSTM Time Series Regression - How does Pytorch train on multiple batches?

Hello,

I’m following along with the Pytorch Time Series Regression (TSR) example and this article:

I would like more insight into how Pytorch trains on multiple sequences. It seems that the batches are trained in parallel, so how does loss and backpropagation get calculated? Will the individual batches receive different models (weights/bias)?