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.


use_safetensors (bool, optional, defaults to None) —
If set to None, the safetensors weights will be downloaded if they’re available and if the
safetensors library is installed. If set to True, the model will be forcibly loaded from
safetensors weights. If set to False, loadin