Respect `resume_download` deprecation 
Author: Wauplin
Pull request: yes

Fix https://github.com/huggingface/transformers/issues/30618 (cc @albertvillanova).

`resume_download` has been deprecated in `huggingface_hub==0.23.0` release (see https://github.com/huggingface/huggingface_hub/pull/2223). All downloads are now resumed by default. This PR switches all default values to `None` instead of `False` which will prevent from having a warning message. If a user manually sets `resume_download` to True/False, then they'll still get the FutureWarning from `huggingface_hub` which is the expected behavior.  

We will need to make sure to completely remove `resume_download` from `transformers` before dropping it in `huggingface_hub`. However, this is not expected mid-term (at least not before hfh==1.0)

Technically this PR would be compatible with previous versions of `huggingface_hub` since `False` and `None` were processed the same way but I preferred to update requirements to make it compliant with type annotations. 

Comments:
Thank you @Wauplin !

So the goals of this PR are:

- avoid warning (by set the default to `None`)
- update the docstring to show it is deprecated

Right?

The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/transformers/pr_30620). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

> So the goals of this PR are:
>   - avoid warning (by set the default to None)
>   - update the docstring to show it is deprecated
> 
> Right?

Correct!

well as long as CI pass

> well as long as CI pass

Is it related to my PR? :see_no_evil: :sob:  

my ultimate solution for this is to re-run until is ✅ - just triggered

All good!

Thanks @ydshieh! All good to merge it then? :)

@amyeroberts I fixed the docstrings as discussed in https://github.com/huggingface/transformers/pull/30620/commits/2eba9af272aa987fee1cae9278967440b1fbdf10 :)

CI is green! @amyeroberts I'll let you merge it if changes are fine for you  :)

Hi, i got the problem that i can't get huggingface to download models or something. Yesterday it totally worked fine. Today it tells me Future Warning: resume_download is deprecated and will be removed in version 1.0.0.

Can you help me?

Hi @SuperJessBerlin, 

There's two possible things here. With regards to the message, yes, this argument has been deprecated, all downloads resume by default. You can pass the argument in, but it won't have any effect. 

With regards to downloading models, when you say "i can't get huggingface to download models or something", have you observed that models aren't downloading at all?

i tried this morning and it didn't do to any model. I then installed it all new and it will not get this one model not to work. 
![Error](https://github.com/huggingface/transformers/assets/170627780/e6e1512c-483d-46b6-b278-3c37723d9683)


@SuperJessBerlin The warning is there to inform you that the argument `resume_download` is deprecated i.e. it shouldn't be set to True/False as it will have no effect. Seeing this warning doesn't mean downloads aren't happening however. I can see from the screen shot, this is being used through the stable diffusion webui, which should still work. 

i get to the web ui.....but it loads unlimited and never would let me create something.

![Error](https://github.com/huggingface/transformers/assets/170627780/8bf89cf1-0c96-4c68-b888-ee83d7f7c563)

and it would load for unlimited time

oh and it has a new overlay. Don't know that yet. 

@SuperJessBerlin Just from a screenshot alone, I wouldn't be able to tell you what is (or is not) happening. I suspect it might just be taking a while to generate an image. Regardless, this is unrelated to this PR. I'd suggest opening an issue on the [stable diffusion web UI repo](https://github.com/AUTOMATIC1111/stable-diffusion-webui)