[ViT] Add note about interpolation of position encodings
### Feature request

We should add a note to the docs on the fact that, in order to fine-tune ViT on higher resolution (e.g. 512x512), one can set `interpolate_pos_encoding=True` in the forward of the model.

### Motivation

This thread on the forum: https://discuss.huggingface.co/t/fine-tuning-image-transformer-on-higher-resolution/22623/4

### Your contribution

I'll take this!
Hi,

I'm findind hard to achieve to set the interporlate_pos_encoding = True by redefining the model's forward method.
Could you make a brief step by step case on how to do so in order to train the model, and not just make a forward pass?

I thought it was just about modifying the model.config which feeds the module parameters, as one can set the output_attentions = True per example, but I see is not the same case for the inteporlate_pos_encoding.

Thank you!
P.D: I have post this same question at the hugginface forum<|||||>Could you clarify? The only thing you need to change is pass `interpolate_pos_encoding=True` to the forward when training the model (no need to redefine the forward method).

This issue was fixed in #19103, therefore I'm closing this issue.<|||||>> 
I fine tune the model by using the Trainer build class from transformers, not directly by calling the forward method, so I'm not finding the way to set the interpolate_pos_encoding to true in that case.
<|||||>Hi @NielsRogge 
Is there any method to set the `interpolate_pos_encoding` to `True` while using the Trainer API?
Not able to find a method to pass it as a parameter to the `forward` method without redefining the `forward` method.


Also - if a section to explain this step is added in the example notebooks - would be really helpful for the community.<|||||>Pinging @sgugger here - the question is whether one can set a boolean argument in the forward of a model to `True` when using the Trainer API.<|||||>No, that is not possible.