del weights from a PyTorch checkpoint save file.   kwargs (remaining dictionary of keyword arguments, optional) —
Can be used to update the configuration object (after it is loaded) and initiate the model (for
example, output_attentions=True). Behaves differently depending on whether a config is provided or
automatically loaded:

If a configuration is provided with config, kwargs are directly passed to the underlying
model’s __init__ method (we