It seems the problem occurs when passing decoder_input_ids.  Here’s my code:
logits = self.hf_model(x['input_ids'], x['attention_mask'], x['decoder_input_ids'], labels=None, return_dict=True).logits

where self.hf_model is an instance of BartForConditionalGeneration.
returns a tensor with shape torch.Size([2, 1, 50264]) when the expected is torch.Size([2, 68, 50264])