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
f74d57dc
Commit
f74d57dc
authored
1 year ago
by
Hamid Shojanazeri
Browse files
Options
Downloads
Patches
Plain Diff
printing scores based on fsdp usage or single gpu
parent
3d887ea4
No related branches found
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
utils/train_utils.py
+5
-1
5 additions, 1 deletion
utils/train_utils.py
with
5 additions
and
1 deletion
utils/train_utils.py
+
5
−
1
View file @
f74d57dc
...
...
@@ -153,7 +153,11 @@ def train(model, train_dataloader,eval_dataloader, tokenizer, optimizer, lr_sche
if
eval_epoch_loss
<
best_val_loss
:
best_val_loss
=
eval_epoch_loss
print
(
f
"
best eval loss on epoch
{
epoch
}
is
{
best_val_loss
}
"
)
if
train_config
.
enable_fsdp
:
if
rank
==
0
:
print
(
f
"
best eval loss on epoch
{
epoch
}
is
{
best_val_loss
}
"
)
else
:
print
(
f
"
best eval loss on epoch
{
epoch
}
is
{
best_val_loss
}
"
)
val_loss
.
append
(
best_val_loss
)
val_prep
.
append
(
eval_ppl
)
...
...
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