Yes, pad the short sequences to a longer sequence. But u don’t have to pad it to global maximum, u can pad them only to the maximum in the batch. There are many ways to pad in addition to zero-padding, u can do some experiment with that.