Avoid inner loop with sequences

I am following the sequence tagging example here and noticed that the inner loop really affect performance. Is it possible to avoid the inner loop, i.e. going through each sequence, and run the model with entire minibatch? Any examples like that. Please let me know.