we just print the shape of attention_mask for brevity.
+Weird that the t5 version is missing special tokens, whereas bart has them. I suspect this is the problem.
Seems like you are truncating more aggressively for T5.