MCPcopy Create free account

hub / github.com/InternLM/InternLM-XComposer / functions

Functions1,890 in github.com/InternLM/InternLM-XComposer

Methodcreate_token_type_ids_from_sequences
Create a mask from the two sequences passed to be used in a sequence-pair classification task. T5 does not make use of token type ids
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/tokenization_internlm2.py:216
Functioncustom_forward
(*inputs)
projects/DualFocus/dualfocus/model/language_model/mpt/hf_prefixlm_converter.py:209
Methodcustom_forward
(*inputs)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_.py:949
Methodcustom_forward
(*inputs)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm2.py:945
Methodcustom_forward
(*inputs)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm2.py:945
Methodcustom_forward
(*inputs)
projects/ShareGPT4V/share4v/model/multimodal_encoder/modeling_evaclip.py:789
Functiondecode_base64_to_image
(base64_string)
InternLM-XComposer-1.0/evaluation/seed_bench/utils.py:93
Methoddelete_gallery
(self, pt)
gradio_demo/gradio_demo_composition.py:694
Methoddelete_gallery
(self, pt)
InternLM-XComposer-2.0/examples/gradio_demo_composition.py:629
Methoddelete_gallery
(self, pt)
InternLM-XComposer-2.0/examples/IXC2_demo.py:639
Functiondeploy_code
()
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/generate.py:11
Methoddevice
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/clip_encoder.py:62
Methoddevice
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/builder_compressor.py:153
Methoddevice
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/build_mlp.py:154
Methoddevice
(self)
projects/ShareGPT4V/share4v/model/multimodal_encoder/clip_encoder.py:80
Methoddict
(self)
InternLM-XComposer-2.0/demo_asset/conversation.py:143
Methoddict
(self)
projects/ShareGPT4V/share4v/conversation.py:202
Methoddict
(self)
projects/DualFocus/dualfocus/conversation.py:201
Methoddict
(self)
InternLM-XComposer-1.0/demo_asset/conversation.py:119
Methoddict
(self)
demo_asset/conversation.py:148
Methoddislike
(self)
gradio_demo/gradio_demo_composition.py:867
Methoddislike
(self, state)
gradio_demo/gradio_demo_chat.py:453
Methoddislike
(self)
InternLM-XComposer-2.0/examples/gradio_demo_composition.py:801
Methoddislike
(self)
InternLM-XComposer-2.0/examples/IXC2_demo.py:965
Methoddislike
(self, state)
InternLM-XComposer-2.0/examples/gradio_demo_chat.py:231
Methoddislike
(self, state)
InternLM-XComposer-2.0/examples/gradio_4khd_chat.py:317
Methoddone_edit
(self, edit_type, inst_edit, new_text)
gradio_demo/gradio_demo_composition.py:707
Methoddone_edit
(self, edit_type, inst_edit, new_text)
InternLM-XComposer-2.0/examples/gradio_demo_composition.py:642
Methoddone_edit
(self, edit_type, inst_edit, new_text)
InternLM-XComposer-2.0/examples/IXC2_demo.py:652
Functiondownload_image
(url, path)
InternLM-XComposer-2.0/demo_asset/download.py:9
Functiondownload_image
(url, path)
InternLM-XComposer-1.0/demo_asset/download.py:9
Functiondownload_image
(url, path)
demo_asset/download.py:9
Methoddtype
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/clip_encoder.py:58
Methoddtype
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/builder_compressor.py:149
Methoddtype
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/build_mlp.py:150
Methoddtype
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/build_mlp.py:150
Methoddtype
(self)
projects/ShareGPT4V/share4v/model/multimodal_encoder/clip_encoder.py:76
Methoddtype
(self)
projects/DualFocus/dualfocus/model/multimodal_encoder/clip_encoder.py:58
Methoddummy_feature
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/clip_encoder.py:54
Methoddummy_feature
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/builder_compressor.py:145
Methoddummy_feature
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/build_mlp.py:146
Methoddummy_feature
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/build_mlp.py:146
Methoddummy_feature
(self)
projects/ShareGPT4V/share4v/model/multimodal_encoder/clip_encoder.py:72
Methoddummy_feature
(self)
projects/DualFocus/dualfocus/model/multimodal_encoder/clip_encoder.py:54
Functiondump_json_lines
(json_list, file)
projects/DualFocus/dualfocus/misc/io.py:11
Methodedit_types_change
(self, edit_type)
gradio_demo/gradio_demo_composition.py:698
Methodedit_types_change
(self, edit_type)
InternLM-XComposer-2.0/examples/gradio_demo_composition.py:633
Methodedit_types_change
(self, edit_type)
InternLM-XComposer-2.0/examples/IXC2_demo.py:643
Methodenable_like
(self)
gradio_demo/gradio_demo_composition.py:859
Methodenable_like
(self)
InternLM-XComposer-2.0/examples/gradio_demo_composition.py:793
Methodenable_like
(self)
InternLM-XComposer-2.0/examples/IXC2_demo.py:957
Functionencode_image
(image)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/client.py:103
Methodencode_text
(self, text, add_special_tokens=False)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_xcomposer2.py:152
Methodencode_text
(self, text, add_special_tokens=False)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm_xcomposer2.py:152
Functionenqueue_query
(item: Item)
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/backend_llm.py:206
Methodeos_token_id
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/tokenization_internlm2.py:97
Methodeos_token_id
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/adapter/tokenization_internlm2.py:97
Methodeos_token_id
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/tokenization_internlm2.py:97
Methodeval
(self, data, model, output_path, video_folder)
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/benchmark/StreamingBench.py:34
Methodeval
(self, data, model, output_path)
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/benchmark/StreamingBenchProactive.py:22
Methodeval_pred_list
(self, pred_list)
projects/ShareGPT4V/share4v/eval/m4c_evaluator.py:264
Methodeval_pred_list
(self, pred_list)
projects/ShareGPT4V/share4v/eval/m4c_evaluator.py:289
Methodeval_pred_list
(self, pred_list)
projects/ShareGPT4V/share4v/eval/m4c_evaluator.py:321
Methodeval_pred_list
(self, pred_list)
projects/DualFocus/dualfocus/eval/m4c_evaluator.py:264
Methodeval_pred_list
(self, pred_list)
projects/DualFocus/dualfocus/eval/m4c_evaluator.py:289
Methodeval_pred_list
(self, pred_list)
projects/DualFocus/dualfocus/eval/m4c_evaluator.py:321
Functionevaluate_relaxed_accuracy
(entries)
InternLM-XComposer-2.0/evaluation/utils.py:113
Methodexpand2square
(pil_img, background_color=(122, 116, 104))
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/conversation.py:130
Methodexpand2square
(pil_img, background_color=(122, 116, 104))
projects/ShareGPT4V/share4v/conversation.py:111
Methodexpand2square
(pil_img, background_color)
projects/ShareGPT4V/share4v/train/train.py:717
Methodexpand2square
(pil_img, background_color=(122, 116, 104))
projects/DualFocus/dualfocus/conversation.py:119
Methodexpand2square
(pil_img, background_color)
projects/DualFocus/dualfocus/train/train.py:680
Methodextra_repr
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/modeling_qwen.py:81
Functionextract_answer
(response, problem, quick_extract=False)
InternLM-XComposer-2.0/evaluation/utils.py:226
Methodextract_cents
(m: Match)
InternLM-XComposer-2.5-OmniLive/benchmarks/eval_audio/whisper_normalizer/english.py:427
Methodfeature_select
(self, image_forward_outs)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/build_mlp.py:69
Methodfeature_select
(self, image_forward_outs)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/build_mlp.py:69
Functionfind_boxes_qw
(string)
projects/DualFocus/dualfocus/misc/boxes.py:64
Functionflash_attn_fn
(query, key, value, n_heads, past_key_value=None, softmax_scale=None, attn_bias=None, key_padding_mask=None, i
projects/DualFocus/dualfocus/model/language_model/mpt/attention.py:71
Methodflush
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/utils.py:87
Methodflush
()
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/components/pcm-player/pcm-audio-player.ts:155
Functionforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None, position_i
projects/ShareGPT4V/share4v/train/llama_flash_attn_monkey_patch.py:18
Functionforward
Wraps original forward to enable PrefixLM attention.
projects/DualFocus/dualfocus/model/language_model/mpt/hf_prefixlm_converter.py:71
Functionforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None, position_i
projects/DualFocus/dualfocus/train/llama_flash_attn_monkey_patch.py:16
Methodforward
(self, x, *args, **kwargs)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/builder_projector.py:14
Methodforward
(self, x)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/builder_projector.py:32
Methodforward
(self, inputs)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/builder_projector.py:73
Methodforward
(self, inputs)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/builder_projector.py:145
Methodforward
(self, inputs, projector=None)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/builder_projector.py:167
Methodforward
(self, inputs, projector=None)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/builder_projector.py:204
Methodforward
(self, inputs, projector=None)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/builder_projector.py:233
Methodforward
(self, inputs, projector=None)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/builder_projector.py:285
Methodforward
(self, inputs, projector=None)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/builder_projector.py:317
Methodforward
(self, hidden_states)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/modeling_qwen.py:74
Methodforward
(self, x, seq_len=None)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/modeling_qwen.py:111
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/modeling_qwen.py:230
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/modeling_qwen.py:322
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/modeling_qwen.py:461
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/modeling_qwen.py:592
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/modeling_qwen.py:809
← previousnext →1,401–1,500 of 1,890, ranked by callers