[Test] Fix redirected links issue
# What does this PR do?

This PR tries to address the issue of loading a model when the original link is redirected. This happened for BLOOM models where the repo ids has been changed but the code does not take into account redirected links. 
I am not sure how to properly test if this does not break anything so I am putting this PR as a test PR, so feel free to ignore it.
Now loading BLOOM models with old naming works

```
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "bigscience/bloom-350m"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
```

Also this can be done probably on the `huggingface_hub` level but I am not sure

Related to #18531

_The documentation is not available anymore as the PR was closed or merged._<|||||>This should be fixed upstream (there's an open issue IIRC)<|||||>Okay I see! I think that you are referring to this issue: https://github.com/huggingface/transformers/issues/17582 posting it here for visibility!
I can't see any related PR to this issue for now, maybe it is hidden in another PR? 

EDIT: it will be fixed once `transformers` will use `huggingface_hub` behind the scenes for loading the models<|||||>It should be fixed on the Hugging Face Hub side at this stage (the issue reported incorrectly that it works for `huggingfCe_hub` tools but it does not), there is nothing left to do in Transformers.<|||||>note that in the meantime you can always opt to re-rename your repos if it's a big issue