Why do we set input_ids = decoder_input_ids in beam search?
Pretty much the title. Here’s thereference to the codeI wanted to generate text using beam search when I haveinputs_embeds,attention_mask,decoder_input_idsanddecoder_attention_maskWhy is that code settinginput_idsusingdecoder_input_ids, I also see no way to stop it from doing that. If there isn’t any way, can anyone please link a resource that shows how to do conditional generation (I’m using BART model) when I have the above parameters ? (inputs_embeds,attention_mask,decoder_input_idsanddecoder_attention_mask)Thanks