Skip to content

Commit

Permalink
Changes from onmt/bin/train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Attieh authored and Joseph Attieh committed Feb 6, 2024
1 parent 6b2639a commit 8800170
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mammoth/bin/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def train(opts):
procs.append(
mp.Process(
target=consumer,
args=(train_process, opts, device_context, error_queue, q, semaphore, task_queue_manager),
args=(train_process, opts, device_context, error_queue, q, semaphore, task_queue_manager, checkpoint),
daemon=True,
)
)
Expand All @@ -253,6 +253,7 @@ def train(opts):
vocabs_dict=vocabs_dict,
opts=opts,
is_train=True,
data_state=data_state,
)

producer = mp.Process(
Expand Down Expand Up @@ -281,7 +282,7 @@ def train(opts):
local_rank=0,
opts=opts
)
train_process(opts, device_context=device_context, task_queue_manager=task_queue_manager)
train_process(opts, device_context=device_context, task_queue_manager=task_queue_manager, checkpoint=checkpoint)


def _get_parser():
Expand Down

0 comments on commit 8800170

Please sign in to comment.