    def _sparse_1d_kv(self, x):
        """
        require the shape of (ntokens x batch_size x dim)
        """
        x = repeat(x, 's b d -> s (k b) d', k=self.sparse_n)
        return x
require the shape of (ntokens x batch_size x dim)
opensora/models/diffusion/opensora_v1_3/modules.py