Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Submission file for an NAdamW optimizer with warmup+cosine LR in PyTorch."""

import collections
import math
from typing import Any, Dict, Iterator, List, Optional, Tuple

Expand All @@ -24,6 +25,7 @@
"weight_decay": 0.08121616522670176,
"warmup_factor": 0.02
}
HPARAMS = collections.namedtuple('Hyperparameters', HPARAMS.keys())(**HPARAMS)


# Modified from github.com/pytorch/pytorch/blob/v1.12.1/torch/optim/adamw.py.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Submission file for an NAdamW optimizer with warmup+cosine LR in PyTorch."""

import collections
import math
from typing import Any, Dict, Iterator, List, Optional, Tuple

Expand All @@ -24,6 +25,7 @@
"weight_decay": 0.08121616522670176,
"warmup_factor": 0.02
}
HPARAMS = collections.namedtuple('Hyperparameters', HPARAMS.keys())(**HPARAMS)


# Modified from github.com/pytorch/pytorch/blob/v1.12.1/torch/optim/adamw.py.
Expand Down
2 changes: 1 addition & 1 deletion submission_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ def score_submission_on_workload(workload: spec.Workload,
score, _ = train_once(
workload, workload_name, global_batch_size, global_eval_batch_size,
data_dir, imagenet_v2_data_dir,
init_optimizer_state, update_params, data_selection,
init_optimizer_state, update_params, data_selection, prepare_for_eval,
None, rng_seed, rng, profiler, max_global_steps, log_dir,
save_checkpoints=save_checkpoints)
return score
Expand Down
Loading