Skip to content
Snippets Groups Projects
Commit 7a8c52cb authored by Matthias Reso's avatar Matthias Reso
Browse files

Remove pkg_resources.packaging

parent 41a46d81
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,6 @@ import time ...@@ -6,7 +6,6 @@ import time
import yaml import yaml
from contextlib import nullcontext from contextlib import nullcontext
from pathlib import Path from pathlib import Path
from pkg_resources import packaging
from datetime import datetime from datetime import datetime
import contextlib import contextlib
...@@ -474,7 +473,7 @@ def get_policies(cfg, rank): ...@@ -474,7 +473,7 @@ def get_policies(cfg, rank):
verify_bfloat_support = (( verify_bfloat_support = ((
torch.version.cuda torch.version.cuda
and torch.cuda.is_bf16_supported() and torch.cuda.is_bf16_supported()
and packaging.version.parse(torch.version.cuda).release >= (11, 0) and torch.version.cuda >= "11.0"
and dist.is_nccl_available() and dist.is_nccl_available()
and nccl.version() >= (2, 10) and nccl.version() >= (2, 10)
) or ) or
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment