Did you set the seed right before instantiating both models?
torch.manual_seed(seed)
modelA = MyModel()
torch.manual_seed(seed)
modelB = MyModel()
Did you set the seed right before instantiating both models?
torch.manual_seed(seed)
modelA = MyModel()
torch.manual_seed(seed)
modelB = MyModel()