Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Llama Recipes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
meta-llama
Llama Recipes
Commits
7a8c52cb
Commit
7a8c52cb
authored
10 months ago
by
Matthias Reso
Browse files
Options
Downloads
Patches
Plain Diff
Remove pkg_resources.packaging
parent
41a46d81
Branches
fix/remove_pkg_resources
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/llama_recipes/utils/train_utils.py
+1
-2
1 addition, 2 deletions
src/llama_recipes/utils/train_utils.py
with
1 addition
and
2 deletions
src/llama_recipes/utils/train_utils.py
+
1
−
2
View file @
7a8c52cb
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment