Methodforward(self, clips, seqs, compress_mask, qs, qs_mask, time_labels)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/builder_compressor.py:140
Methodforward qkv: (batch, seqlen, 3, nheads, headdim) bias: optional, shape broadcastible to (batch, nheads, seqlen, seqlen).
projects/DualFocus/dualfocus/model/language_model/mpt/flash_attn_triton.py:404
Methodforward q: (batch, seqlen_q, nheads, headdim) kv: (batch, seqlen_k, 2, nheads, headdim) bias: optional, shape broadcastib
projects/DualFocus/dualfocus/model/language_model/mpt/flash_attn_triton.py:431
Methodforward q: (batch_size, seqlen_q, nheads, headdim) k, v: (batch_size, seqlen_k, nheads, headdim) bias: optional, shape br
projects/DualFocus/dualfocus/model/language_model/mpt/flash_attn_triton.py:460
Methodforward(self, x, past_key_value=None, attn_bias=None, attention_mask=None, is_causal=True, needs_weights=False)
projects/DualFocus/dualfocus/model/language_model/mpt/attention.py:191
Methodforward(self, x, past_key_value=None, attn_bias=None, attention_mask=None, is_causal=True, needs_weights=False)
projects/DualFocus/dualfocus/model/language_model/mpt/attention.py:245
Methodgenerate_article(self, instruction, upimages, beam, repetition, max_length, random, seed)
gradio_demo/gradio_demo_composition.py:541
Methodgenerate_article(self, instruction, upimages, beam, repetition, max_length, random, seed)
InternLM-XComposer-2.0/examples/gradio_demo_composition.py:478
Methodgenerate_article(self, instruction, upimages, beam, repetition, max_length, random, seed)
InternLM-XComposer-2.0/examples/IXC2_demo.py:486
Methodgenerate_article(self, question, beam, repetition, max_length, random, seed, outline=None)
examples/gradio_demo_gaokaozuowen.py:177
Methodgenerate_with_emb(self, emb, random, beam, max_length, repetition, im_mask=None)
examples/gradio_demo_gaokaozuowen.py:156