cerebras.modelzoo.common.utils.model.attention_utils.SparseAttentionBuilder#

class cerebras.modelzoo.common.utils.model.attention_utils.SparseAttentionBuilder(num_heads, max_sequence_length, num_different_head_attn_configs=1)[source]#

Bases: object

Methods

build_mask

get_pytorch_mask