You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the correct type hint should be "Optional[Tuple[int, float]]", the number of tuple elements should be 2, and must be "int" in position 0, and "float" in position 1.
The text was updated successfully, but these errors were encountered:
Hi,
Please check below line,
transformers/src/transformers/generation_utils.py
Line 956 in 7e7f62b
According to doc string, "exponential_decay_length_penalty (
tuple(int, float)
, optional, defaults tomodel.config.exponential_decay_length_penalty
):" (https://github.com/huggingface/transformers/blob/main/src/transformers/generation_utils.py#L1114)the correct type hint should be "Optional[Tuple[int, float]]", the number of tuple elements should be 2, and must be "int" in position 0, and "float" in position 1.
The text was updated successfully, but these errors were encountered: