↓ 2 callersFunctioncreate_one_example(format, question, context, choice, answer, lecture, solution, test_example=True)
projects/ShareGPT4V/scripts/convert_sqa_to_share4v_base_prompt.py:106
↓ 2 callersFunctioncreate_one_example_gpt4(format, question, context, choice, answer, lecture, solution, test_example=True)
projects/ShareGPT4V/scripts/convert_sqa_to_share4v_base_prompt.py:161
↓ 2 callersMethodinput_formulate(self, img_embeds, img_split, image_num, texts, temp_max_len=None, use_mask=True)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_.py:1103
↓ 2 callersMethodprepare_inputs_labels_for_multimodal(
self, input_ids, position_ids, attention_mask, qs_ids, qs_mask, past_key_values, labels, images, pro
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/llava_arch.py:128
↓ 2 callersMethodprepare_inputs_labels_for_multimodal(
self, input_ids, attention_mask, past_key_values, labels, images
)
projects/DualFocus/dualfocus/model/llava_arch.py:99
↓ 2 callersFunctionrepeat_kv This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_.py:270
↓ 2 callersFunctionrepeat_kv This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm2.py:266
↓ 2 callersFunctionrepeat_kv This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm2.py:266