Revert "Enforce same behavior as PyTorch 2.0 for older versions"
Reverts huggingface/transformers#22136

As we discovered this was breaking the DeepSpeed integration (and thus potential other integrations wrapping the model), it's safer to revert this change for now.
_The documentation is not available anymore as the PR was closed or merged._