Skip to content

Commit a9056b8

Browse files
authored
[DLRMv2] Resolve benchmark name and use other constants for logging (pytorch#621)
* [DLRMv2] Resolve benchmark name and use other constants for logging * Use mllog_constants.ADAGRAD for optimizer name
1 parent fd4672c commit a9056b8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

recommendation_v2/torchrec_dlrm/dlrm_main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ def main(argv: List[str]) -> None:
701701
is_rank_zero = dist.get_rank() == 0
702702
if is_rank_zero:
703703
pprint(vars(args))
704-
submission_info(mllogger, "dcnv2", "reference_implementation")
704+
submission_info(mllogger, mllog_constants.DLRMv2, "reference_implementation")
705705
mllogger.event(
706706
key=mllog_constants.GLOBAL_BATCH_SIZE,
707707
value=dist.get_world_size() * args.batch_size,
@@ -854,26 +854,26 @@ def optimizer_with_params():
854854
if is_rank_zero:
855855
mllogger.event(
856856
key=mllog_constants.OPT_NAME,
857-
value="adagrad" if args.adagrad else mllog_constants.SGD,
857+
value=mllog_constants.ADAGRAD if args.adagrad else mllog_constants.SGD,
858858
)
859859
mllogger.event(
860860
key=mllog_constants.OPT_BASE_LR,
861861
value=args.learning_rate,
862862
)
863863
mllogger.event(
864-
key="opt_adagrad_lr_decay",
864+
key=mllog_constants.OPT_ADAGRAD_LR_DECAY,
865865
value=ADAGRAD_LR_DECAY,
866866
)
867867
mllogger.event(
868868
key=mllog_constants.OPT_WEIGHT_DECAY,
869869
value=WEIGHT_DECAY,
870870
)
871871
mllogger.event(
872-
key="opt_adagrad_init_acc_value",
872+
key=mllog_constants.OPT_ADAGRAD_INITIAL_ACCUMULATOR_VALUE,
873873
value=ADAGRAD_INIT_ACC,
874874
)
875875
mllogger.event(
876-
key="opt_adagrad_eps",
876+
key=mllog_constants.OPT_ADAGRAD_EPSILON,
877877
value=ADAGRAD_EPS,
878878
)
879879
mllogger.event(
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
fbgemm-gpu==0.3.2
2-
git+https://github.com/mlcommons/logging.git@2.1.0
2+
git+https://github.com/janekl/logging.git@mlcommons_logging_pr297 # TODO https://github.com/mlcommons/logging/pull/297
33
torchmetrics==0.11.0
44
torchrec==0.3.2

0 commit comments

Comments
 (0)