Skip to content

Commit

Permalink
Remove pkg_resources.packaging (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
HamidShojanazeri committed May 29, 2024
2 parents 41a46d8 + 7a8c52c commit 61e8508
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/llama_recipes/utils/train_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import yaml
from contextlib import nullcontext
from pathlib import Path
from pkg_resources import packaging
from datetime import datetime
import contextlib

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 61e8508

Please sign in to comment.