Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Megatron-LM
Commits
792a468d
Commit
792a468d
authored
Jan 28, 2021
by
mohammad
Browse files
changed validation loss name
parent
3a26a168
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
megatron/training.py
megatron/training.py
+4
-4
No files found.
megatron/training.py
View file @
792a468d
...
...
@@ -961,16 +961,16 @@ def evaluate_and_print_results(prefix, forward_step_func,
ppl
=
math
.
exp
(
min
(
20
,
total_loss_dict
[
key
].
item
()))
string
+=
'{} PPL: {:.6E} | '
.
format
(
key
,
ppl
)
if
writer
and
is_last_rank
():
writer
.
add_scalar
(
'{}
value-
validation'
.
format
(
key
),
writer
.
add_scalar
(
'{} validation'
.
format
(
key
),
total_loss_dict
[
key
].
item
(),
iteration
)
writer
.
add_scalar
(
'{}
value-
validation vs samples'
.
format
(
key
),
writer
.
add_scalar
(
'{} validation vs samples'
.
format
(
key
),
total_loss_dict
[
key
].
item
(),
args
.
consumed_train_samples
)
if
args
.
log_validation_ppl_to_tensorboard
:
writer
.
add_scalar
(
'{}
ppl-
validation'
.
format
(
key
),
ppl
,
writer
.
add_scalar
(
'{} validation
ppl
'
.
format
(
key
),
ppl
,
iteration
)
writer
.
add_scalar
(
'{}
ppl-
validation vs samples'
.
format
(
key
),
writer
.
add_scalar
(
'{} validation
ppl
vs samples'
.
format
(
key
),
ppl
,
args
.
consumed_train_samples
)
length
=
len
(
string
)
+
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment