Skip to content

Commit 7a8c52c

Browse files
committed
Remove pkg_resources.packaging
1 parent 41a46d8 commit 7a8c52c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/llama_recipes/utils/train_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import yaml
77
from contextlib import nullcontext
88
from pathlib import Path
9-
from pkg_resources import packaging
109
from datetime import datetime
1110
import contextlib
1211

@@ -474,7 +473,7 @@ def get_policies(cfg, rank):
474473
verify_bfloat_support = ((
475474
torch.version.cuda
476475
and torch.cuda.is_bf16_supported()
477-
and packaging.version.parse(torch.version.cuda).release >= (11, 0)
476+
and torch.version.cuda >= "11.0"
478477
and dist.is_nccl_available()
479478
and nccl.version() >= (2, 10)
480479
) or

0 commit comments

Comments
 (0)