of torch,
setting this argument to True will raise an error.


variant (str, optional) —
If specified load weights from variant filename, e.g. pytorch_model..bin. variant is
ignored when using from_flax.



Instantiate a pretrained pytorch model from a pre-trained model configuration.
The model is set in evaluation mode by default using model.eval() (Dropout modules are deactivated). To train
the model, you should first set it back in training 