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

Remove pkg_resources.packaging

parent 41a46d81
Branches fix/remove_pkg_resources
No related tags found
No related merge requests found
......@@ -6,7 +6,6 @@ import time
import yaml
from contextlib import nullcontext
from pathlib import Path
from pkg_resources import packaging
from datetime import datetime
import contextlib
......@@ -474,7 +473,7 @@ def get_policies(cfg, rank):
verify_bfloat_support = ((
torch.version.cuda
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 nccl.version() >= (2, 10)
) 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