Add additional kwargs to StackedTransformerLayers.ExtendStep.
Add additional kwargs to StackedTransformerLayers.ExtendStep.

Relax assert for masked/causal self-attention.

PiperOrigin-RevId: 373428698

tensorflow/lingvo,tensorflow/lingvo,tensorflow/lingvo,tensorflow/lingvo