cerebras.modelzoo.common.utils.model.attention_utils.FixedSparseAttentionBuilder#
- class cerebras.modelzoo.common.utils.model.attention_utils.FixedSparseAttentionBuilder[source]#
Bases:
cerebras.modelzoo.common.utils.model.attention_utils.SparseAttentionBuilder
Methods
build_mask
get_pytorch_mask
set_global_attention
set_local_attention
trim_to_autoregressive_format