Add check for tied parameters
# What does this PR do 

This is the fix in the transformers library of this [PR](https://github.com/huggingface/accelerate/pull/1529). 

It will fix the case where a user uses their own device map (in the `from_pretrained` method) but forget that parameters that are tied together should be on the same device. We return an error showing which parameters should be on the same device.



The test are failing because I used a function that i have added recently in accelerate.utils. Should we use the main for the tests @sgugger ? <|||||>_The documentation is not available anymore as the PR was closed or merged._