change start iteration for resume
This commit is contained in:
parent
913ee7368e
commit
faa1ad382e
2
train.py
2
train.py
|
@ -142,7 +142,7 @@ def train(args, model, opt, train_iters, train_iterations, field, rank=0, world_
|
||||||
"""main training function"""
|
"""main training function"""
|
||||||
|
|
||||||
logger = log(rank)
|
logger = log(rank)
|
||||||
local_loss, num_examples, len_contexts, len_answers, iteration = 0, 0, 0, 0, 1
|
local_loss, num_examples, len_contexts, len_answers, iteration = 0, 0, 0, 0, start_iteration
|
||||||
|
|
||||||
train_iter_deep = deepcopy(train_iterations)
|
train_iter_deep = deepcopy(train_iterations)
|
||||||
local_train_metric_dict = {}
|
local_train_metric_dict = {}
|
||||||
|
|
Loading…
Reference in New Issue