Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add training_reuse_decay_steps #1055

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from
Open
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions dpgen/generator/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ def make_train (iter_index,
training_reuse_stop_batch = 400000

training_reuse_start_lr = jdata.get('training_reuse_start_lr', 1e-4)
training_reuse_decay_steps = jdata.get('training_reuse_decay_steps', None)
training_reuse_start_pref_e = jdata.get('training_reuse_start_pref_e', 0.1)
training_reuse_start_pref_f = jdata.get('training_reuse_start_pref_f', 100)
model_devi_activation_func = jdata.get('model_devi_activation_func', None)
Expand Down Expand Up @@ -376,6 +377,7 @@ def make_train (iter_index,
if jinput['loss'].get('start_pref_f') is not None:
jinput['loss']['start_pref_f'] = training_reuse_start_pref_f
jinput['learning_rate']['start_lr'] = training_reuse_start_lr
jinput['learning_rate']['decay_steps'] = training_reuse_decay_steps
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change



for ii in range(numb_models) :
Expand Down