Method_prepare_4d_causal_attention_mask_with_cache_position Creates a causal 4D mask of shape `(batch_size, 1, query_length, key_value_length)` from a 2D mask of shape `(batch_size, key_value_l
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:567
Methodcompute_loss(
self, rng: at.KeyArrayLike, observation: _model.Observation, actions: _model.Actions, *, train: bool
src/openpi/models/pi0_fast.py:198