Skip to content

Commit dd5bf8c

Browse files
gantezucchini-nlp
andcommitted
Update src/transformers/generation/utils.py
Co-authored-by: Raushan Turganbay <raushan.turganbay@alumni.nu.edu.kz>
1 parent 2ff9f39 commit dd5bf8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transformers/generation/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ def _prepare_decoder_input_ids_for_generation(
541541
if decoder_start_token_id.ndim == 1:
542542
if decoder_start_token_id.shape[0] != batch_size:
543543
raise ValueError(
544-
f"`decoder_start_token_id` expcted to have length {batch_size} but got {decoder_start_token_id.shape[0]}"
544+
f"`decoder_start_token_id` expected to have length {batch_size} but got {decoder_start_token_id.shape[0]}"
545545
)
546546
decoder_start_token_id = decoder_start_token_id.view(-1, 1)
547547
else:

0 commit comments

Comments
 (0)