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
tools/weights_conversion/hf_configs/gptneox_1.7b_dlm/modeling_dlm.py:670
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
tools/weights_conversion/hf_configs/gpt2_1b_dlm/modeling_dlm.py:670