use base_version to check torch version in torch_less_than_1_11
The current check `version.parse(torch.__version__) < version.parse("1.11")` doesn't work if the version has additional stuff after it like `1.11.0a0+17540c5`.

New way: `version.parse(version.parse(torch.__version__).base_version) < version.parse("1.11")`

This change, as suggested by @whoknowsB [here](https://github.com/huggingface/transformers/pull/16043#issuecomment-1079644824),  fixes it.

Fixes https://github.com/huggingface/transformers/issues/16587 and https://github.com/huggingface/transformers/issues/14375

## Who can review?

@LysandreJik 
@sgugger 

_The documentation is not available anymore as the PR was closed or merged._<|||||>> It also properly deals with the `dev0` and the likes, so all good to me, thanks for the fix! Could you just apply the same to the line before (`is_torch_less_than_1_8`) so that next time someone adds a new check like this, they don't hesitate and follow the same model?

Done.