Skip to content

Commit

Permalink
Generate: corrected exponential_decay_length_penalty type hint (huggi…
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivangMishra authored and ajsanjoaquin committed Oct 12, 2022
1 parent 34b799b commit 20375d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/generation_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ def generate(
forced_eos_token_id: Optional[int] = None,
remove_invalid_values: Optional[bool] = None,
synced_gpus: Optional[bool] = False,
exponential_decay_length_penalty: Optional[Tuple[Union[int, float]]] = None,
exponential_decay_length_penalty: Optional[Tuple[int, float]] = None,
suppress_tokens: Optional[List[int]] = None,
begin_suppress_tokens: Optional[List[int]] = None,
forced_decoder_ids: Optional[List[int]] = None,
Expand Down

0 comments on commit 20375d6

Please sign in to comment.