Skip to content

Commit

Permalink
fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
wdykas committed Sep 12, 2023
1 parent 7bb99ea commit d6d29b8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tools/run_text_generation_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,16 @@ def model_provider(pre_process=True, post_process=True):
return model


def add_text_generate_args(parser):
group = parser.add_argument_group(title='text generation')
group.add_argument("--port", type=int, default=5000,
help='port for text generation server to run on')
return parser


if __name__ == "__main__":
initialize_megatron(args_defaults={'tokenizer_type': 'GPT2BPETokenizer',
initialize_megatron(extra_args_provider=add_text_generate_args,
args_defaults={'tokenizer_type': 'GPT2BPETokenizer',
'no_load_rng': True,
'no_load_optim': True})

Expand Down

0 comments on commit d6d29b8

Please sign in to comment.