Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't import torch.distributed when it's not available
This is a continuation of 217c47e but for another module. This issue was spotted in nixpkgs (again) when building lm-eval package that used a different path in transformers library to reach the same failure. Related: #35133
- Loading branch information