System Info
N/A
Who can help?
@sanchit-gandhi @connor-henderson
Hi, thank you for the great work!
might have a bug (which is introduced in this
PR).
According to a comparison with openAI's whisper, I think the order of the elements should be as follows:
forced_decoder_ids = [
# Slicing the text prompt ids in a manner consistent with the OpenAI implementation
# to accomodate context space for the prefix (see https://github.com/openai/whisper/blob/c09a7ae299c4c34c5839a76380ae407e7d785914/whisper/decoding.py#L599)
generation_config.decoder_start_token_id,
*text_prompt_ids[-self.config.max_length // 2 - 1 :],
*[token for _rank, token in non_prompt_forced_decoder_ids],
]
Information
Tasks
Reproduction
N/A
Expected behavior
N/A
System Info
N/A
Who can help?
@sanchit-gandhi @connor-henderson
Hi, thank you for the great work!
transformers/src/transformers/models/whisper/modeling_whisper.py
Line 1649 in 796162c
According to a comparison with openAI's whisper, I think the order of the elements should be as follows:
Information
Tasks
examplesfolder (such as GLUE/SQuAD, ...)Reproduction
N/A
Expected behavior
N/A