Skip to content

Commit

Permalink
typo fix from #6666 (#6882)
Browse files Browse the repository at this point in the history
* typo fix

Signed-off-by: arendu <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: arendu <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
arendu and pre-commit-ci[bot] committed Jun 19, 2023
1 parent 3aac795 commit fc84071
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nemo/collections/nlp/modules/common/text_generation_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def megatron_gpt_generate(model, inputs, tokenizer, length_params, sampling_para
greedy=sampling_params['use_greedy'],
repetition_penalty=sampling_params['repetition_penalty'],
min_tokens_to_generate=length_params['min_length'],
compute_attention_mask=sampling_params.get("compute_attention_mask", True) ** strategy_args,
compute_attention_mask=sampling_params.get("compute_attention_mask", True),
**strategy_args,
)
compute_prob_response = get_computeprob_response(tokenizer, response, inputs)
return compute_prob_response
Expand Down

0 comments on commit fc84071

Please sign in to comment.