Functionflash_attn_unpadded_qkvpacked_func(
qkv,
cu_seqlens,
max_seqlen,
dropout_p,
softmax_scale=None,
causal=False,
return
fengshen/models/megatron/layers/flash_attention.py:174
Functionflask_gen(text: str = Body('', title='原文', embed=True),
n_sample: int = 5, length: int = 32, is_bea
fengshen/examples/mt5_summary/fastapi_mt5_summary.py:40
Methodforward(
self, input_ids=None, token_type_ids=None, position_ids=None, inputs_embeds=None, past_key_values_le
fengshen/models/albert/modeling_albert.py:228
Methodforward(
self, hidden_states, attention_mask=None, head_mask=None, output_attentions=False, output_hidden_sta
fengshen/models/albert/modeling_albert.py:385
Methodforward(
self, hidden_states, attention_mask=None, head_mask=None, output_attentions=False, output_hidden_sta
fengshen/models/albert/modeling_albert.py:413
Methodforward(
ctx,
qkv,
cu_seqlens,
max_seqlen,
dropout_p,
softmax_scale,
fengshen/models/megatron/layers/flash_attention.py:109
Methodforward(self, hidden_states, attention_mask, position_ids, layer_past=None, use_cache=False)
fengshen/models/megatron/layers/transformer.py:476
Methodforward(self, x, attention_mask, position_ids, layer_past=None, use_cache=False)
fengshen/models/megatron/layers/transformer.py:707
Methodforward(self, input_ids, attention_mask=None, token_type_ids=None, input_len=None,
position_ids=None,
fengshen/models/tagging_models/bert_for_tagging.py:31
Methodforward(self, input_ids, token_type_ids=None, attention_mask=None,labels=None,input_len=None)
fengshen/models/tagging_models/bert_for_tagging.py:65
Methodforward(self, input_ids, token_type_ids=None, attention_mask=None, span_labels=None, span_mask=None, input_len=None)
fengshen/models/tagging_models/bert_for_tagging.py:92