Train two models in Pytorch

Hello,
I am new to PyTorch,

I have created single model training with help of https://pytorch.org/tutorials/beginner/transformer_tutorial.html

it is working well.

Next, I would like to train() two model parallel, how to create two models and train(), do you have any code reference or resources

Can we use thread or is there any separated method?