"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "0a2fecdf90081102641d6b08795ddc0333443b32"
Fixes bug in the creation of ExponentialDecayLengthPenalty (#21423)
input_ids_seq_length doesn't exist in the GenerationConfig, it exists as local variable in the function. Setting exponential_decay_length_penalty therefore results in an error: `AttributeError: 'GenerationConfig' object has no attribute 'input_ids_seq_length'` This simple change fixes this issue, and the exponential_decay_length_penalty works as expected.
Showing
Please register or sign in to comment