Preserve hub-related kwargs in AutoModel.from_pretrained
# What does this PR do?

As was reported in #18537, when using `AutoConfig` inside the `AutoModel.from_pretrained` method, some kwargs are deleted and not passed to the `from_pretrained` method of the model. This PR makes sure they are preserved for those calls.

Fixes #18537
_The documentation is not available anymore as the PR was closed or merged._