There appears to be a difference between model.config.vocab_size and tokenizer.vocab_size for T5ForConditionalGeneration - t5-small. Not sure where the additional 28 tokens appear from. Why is that so? Bart does not have this issue.

Screenshot 2021-12-10 at 11.08.59 AM737×441 72.3 KB