update smddp api to v1.4.0
1. Update SMDDP APIs to v1.4.0
2. Use vanilla PyTorch dist module and DDP class
3. replace `dist.get_local_rank()`  with env var query as PyTorch does not have this API. 

fixes https://github.com/huggingface/transformers/issues/16313
_The documentation is not available anymore as the PR was closed or merged._<|||||>Hi @sgugger, I removed bunch of unused imports since it's guaranteed that process group will be initialized by `training_args_sm.py`.

Could you give some pointers on how to fix CI errors?

`F401 'smdistributed.dataparallel.torch.torch_smddp' imported but unused`
this import is needed to register SMDDP as a pytorch backend, can we disable style check on this line?

`FAILED tests/funnel/test_modeling_funnel.py::FunnelModelTest::test_pt_tf_model_equivalence`<|||||>To silence the flake8 error on those lines, you need to add a comment at the end of the import line: `# noqa: F401`<|||||>Thanks again for your work on this!