Forráskód Böngészése

Remove pkg_resources.packaging

Matthias Reso 10 hónapja
szülő
commit
7a8c52cb38
1 módosított fájl, 1 hozzáadás és 2 törlés
  1. 1 2
      src/llama_recipes/utils/train_utils.py

+ 1 - 2
src/llama_recipes/utils/train_utils.py

@@ -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