File tree Expand file tree Collapse file tree
axlearn/experiments/text/gpt Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -417,7 +417,8 @@ def adamw_decoupled_learner_config(
417417 peak_lr : float ,
418418 max_step : int ,
419419 weight_decay : float ,
420- lr_warmup_steps : int = 2000 ,
420+ # lr_warmup_steps: int = 2000,
421+ lr_warmup_steps : int = 50 ,
421422 alpha : float = 0.1 ,
422423 b1 : float = 0.9 ,
423424 b2 : float = 0.95 ,
@@ -455,7 +456,8 @@ def adastar_learner_config(
455456 * ,
456457 peak_lr : float ,
457458 max_step : int ,
458- lr_warmup_steps : int = 2000 ,
459+ # lr_warmup_steps: int = 2000,
460+ lr_warmup_steps : int = 50 ,
459461 alpha : float = 0.005 ,
460462 weight_decay : float = 3.16e-4 ,
461463 b1 : float = 0.95 ,
Original file line number Diff line number Diff line change @@ -292,6 +292,7 @@ def get_trainer_kwargs(
292292 rope_theta = ROPE_THETA [version ]
293293
294294 trn2_config = _generate_trn2_custom_configs (model_size , version = version )
295+ max_step = 500
295296
296297 # dict() is more readable here.
297298 # pylint: disable=use-dict-literal
@@ -403,6 +404,7 @@ def get_trainer_kwargs(
403404 max_sequence_length = max_sequence_length ,
404405 train_batch_size = train_batch_size ,
405406 max_step = max_step ,
407+ save_every_n_steps = 100 ,
406408 mesh_shape = mesh_shape_from_axes (data = - 1 , fsdp = 8 ),
407409 mesh_rules = (
408410 # Step time:
You can’t perform that action at this time.
0 commit comments