↓ 1 callersMethod_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
tools/weights_conversion/hf_configs/gptneox_1.7b_ar/modeling_ar.py:715