MCPcopy Create free account

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

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

Methodgentask
()
InternLM-XComposer-1.0/demo_asset/serve_utils.py:63
Methodgentask
()
demo_asset/serve_utils.py:63
Functionget_answer
(question_id: int, question: str, max_tokens: int)
projects/ShareGPT4V/share4v/eval/qa_baseline_gpt35.py:18
Functionget_audio
()
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/backend.py:145
Methodget_decoder
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/modeling_qwen.py:1043
Methodget_decoder
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_xcomposer2.py:149
Methodget_decoder
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_.py:1055
Methodget_decoder
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm_xcomposer2.py:149
Methodget_decoder
(self)
projects/DualFocus/dualfocus/model/language_model/mpt/modeling_mpt.py:270
Functionget_eval
(content: str, max_tokens: int)
projects/ShareGPT4V/share4v/eval/eval_gpt_review.py:14
Methodget_image_features
r""" Returns: image_features (`torch.FloatTensor` of shape `(batch_size, output_dim`): The image embeddings obtained by
projects/ShareGPT4V/share4v/model/multimodal_encoder/modeling_evaclip.py:1179
Methodget_images_xlab
(self, caption, pt, exclude)
examples/gradio_demo_gaokaozuowen.py:122
Methodget_input_embeddings
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/modeling_qwen.py:1028
Methodget_input_embeddings
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/modeling_qwen.py:1593
Methodget_input_embeddings
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/modeling_qwen.py:1716
Methodget_input_embeddings
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_xcomposer2.py:134
Methodget_input_embeddings
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_.py:829
Methodget_input_embeddings
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_.py:1040
Methodget_input_embeddings
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm2.py:825
Methodget_input_embeddings
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm_xcomposer2.py:134
Methodget_input_embeddings
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm2.py:825
Methodget_input_embeddings
(self)
projects/ShareGPT4V/share4v/model/multimodal_encoder/modeling_evaclip.py:1048
Methodget_input_embeddings
(self)
projects/ShareGPT4V/share4v/model/multimodal_encoder/modeling_evaclip.py:1346
Methodget_input_embeddings
(self)
projects/ShareGPT4V/share4v/model/multimodal_encoder/modeling_evaclip.py:1427
Methodget_input_embeddings
(self)
projects/DualFocus/dualfocus/model/language_model/mpt/modeling_mpt.py:255
Methodget_model
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/grounding_qwen.py:54
Methodget_model
(self)
projects/ShareGPT4V/share4v/model/language_model/share4v_llama.py:37
Methodget_model
(self)
projects/DualFocus/dualfocus/model/language_model/llava_llama.py:53
Methodget_model
(self)
projects/DualFocus/dualfocus/model/language_model/llava_mpt.py:65
Functionget_model_state_file
(checkpoint_dir, zero_stage)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/adapter/zero_to_fp32.py:61
Functionget_multi_choice_info
Given the list of options for multiple choice question Return the index2ans and all_choices
InternLM-XComposer-2.0/evaluation/MMMU/utils/data_utils.py:58
Methodget_next_clip
(self)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/vs_deploy/vs_only.py:150
Methodget_output_embeddings
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_xcomposer2.py:140
Methodget_output_embeddings
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_.py:1046
Methodget_output_embeddings
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm_xcomposer2.py:140
Functionget_seq_frames
(total_num_frames, desired_num_frames)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/vs_deploy/video_streaming.py:29
Functionget_seq_time
(vr, frame_idx, num_clip)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/vs_deploy/video_streaming.py:40
Methodget_special_tokens_mask
Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding special tokens using the
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/tokenization_internlm2.py:189
Methodget_special_tokens_mask
Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding special tokens using the
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/adapter/tokenization_internlm2.py:189
Methodget_special_tokens_mask
Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding special tokens using the
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/tokenization_internlm2.py:189
Methodget_text_features
r""" Returns: text_features (`torch.FloatTensor` of shape `(batch_size, output_dim`): The text embeddings obtained by
projects/ShareGPT4V/share4v/model/multimodal_encoder/modeling_evaclip.py:1132
Functionget_timestamps
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/utils/data_execution.py:3
Methodget_vocab
Returns vocab as a dict
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/tokenization_internlm2.py:100
Methodget_vocab
Returns vocab as a dict
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/adapter/tokenization_internlm2.py:100
Methodget_vocab
Returns vocab as a dict
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/tokenization_internlm2.py:100
Methodget_w
(weights, keyword)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/llava_arch.py:80
Methodget_w
(weights, keyword)
projects/ShareGPT4V/share4v/model/share4v_arch.py:76
Methodget_w
(weights, keyword)
projects/DualFocus/dualfocus/model/llava_arch.py:79
Methodhidden_size
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/clip_encoder.py:73
Methodhidden_size
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/builder_compressor.py:161
Methodhidden_size
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/build_mlp.py:165
Methodhidden_size
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/build_mlp.py:165
Methodhidden_size
(self)
projects/ShareGPT4V/share4v/model/multimodal_encoder/clip_encoder.py:91
Methodhidden_size
(self)
projects/DualFocus/dualfocus/model/multimodal_encoder/clip_encoder.py:73
Functionhttp_bot
(state, temperature, top_p, max_new_tokens)
projects/ShareGPT4V/tools/app.py:166
Functioninit_to_zero
(name)
projects/DualFocus/dualfocus/model/language_model/mpt/flash_attn_triton.py:300
Methodinitialize_vision_modules
(self, model_args, fsdp=None)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/llava_arch.py:43
Methodinitialize_vision_tokenizer
(self, model_args, tokenizer)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/llava_arch.py:457
Methodinsert_image
(self)
gradio_demo/gradio_demo_composition.py:704
Methodinsert_image
(self)
InternLM-XComposer-2.0/examples/gradio_demo_composition.py:639
Methodinsert_image
(self)
InternLM-XComposer-2.0/examples/IXC2_demo.py:649
Methodinsert_images
(self, upimages, llmO, img_num, seed, progress=gr.Progress())
gradio_demo/gradio_demo_composition.py:616
Methodinsert_images
(self, upimages, llmO, img_num, seed, progress=gr.Progress())
InternLM-XComposer-2.0/examples/gradio_demo_composition.py:551
Methodinsert_images
(self, upimages, llmO, img_num, seed, progress=gr.Progress())
InternLM-XComposer-2.0/examples/IXC2_demo.py:561
Functionis_wav
(file_path)
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/webdemo.py:80
Functionkaiming_normal_param_init_fn_
(module: nn.Module, n_layers: int, d_model: Optional[int]=None, init_div_is_residual: Union[int, float, str, b
projects/DualFocus/dualfocus/model/language_model/mpt/param_init_fns.py:162
Functionkaiming_uniform_param_init_fn_
(module: nn.Module, n_layers: int, d_model: Optional[int]=None, init_div_is_residual: Union[int, float, str, b
projects/DualFocus/dualfocus/model/language_model/mpt/param_init_fns.py:155
Methodlengths
(self)
projects/ShareGPT4V/share4v/train/train.py:686
Methodlengths
(self)
projects/DualFocus/dualfocus/train/train.py:651
Methodlike
(self)
gradio_demo/gradio_demo_composition.py:862
Methodlike
(self, state)
gradio_demo/gradio_demo_chat.py:436
Methodlike
(self)
InternLM-XComposer-2.0/examples/gradio_demo_composition.py:796
Methodlike
(self)
InternLM-XComposer-2.0/examples/IXC2_demo.py:960
Methodlike
(self, state)
InternLM-XComposer-2.0/examples/gradio_demo_chat.py:214
Methodlike
(self, state)
InternLM-XComposer-2.0/examples/gradio_4khd_chat.py:300
Methodlimit_imagenum
(self, img_num, upshows)
gradio_demo/gradio_demo_composition.py:851
Methodlimit_imagenum
(self, img_num, upshows)
InternLM-XComposer-2.0/examples/gradio_demo_composition.py:785
Methodlimit_imagenum
(self, img_num, upshows)
InternLM-XComposer-2.0/examples/IXC2_demo.py:825
Functionllava_image_processor
(raw_image, vis_processors=None)
InternLM-XComposer-2.0/evaluation/MMMU/utils/model_utils.py:71
Functionload
()
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/gradio_img.py:6
Functionload
()
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/gradio_img.py:6
Functionload_demo
()
gradio_demo/gradio_demo_chat.py:471
Functionload_demo
()
InternLM-XComposer-2.0/examples/IXC2_demo.py:1012
Functionload_demo
()
InternLM-XComposer-2.0/examples/gradio_demo_chat.py:249
Functionload_demo
()
InternLM-XComposer-2.0/examples/gradio_4khd_chat.py:335
Functionload_demo
()
projects/ShareGPT4V/tools/app.py:81
Functionload_demo
()
InternLM-XComposer-1.0/examples/web_demo_4bit.py:761
Functionload_demo
()
InternLM-XComposer-1.0/examples/web_demo.py:788
Functionload_image_from_base64
(image)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/mm_utils.py:12
Functionload_json_lines
(file)
projects/DualFocus/dualfocus/misc/io.py:4
Functionload_jsonl
(json_file)
InternLM-XComposer-2.0/evaluation/utils.py:64
Functionload_jsonl
(json_file)
InternLM-XComposer-2.0/evaluation/MMMU/utils/utils.py:52
Functionload_state_dict_from_zero_checkpoint
1. Put the provided model to cpu 2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` 3. Load it into the pro
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/adapter/zero_to_fp32.py:528
Functionload_yaml
(file_path)
InternLM-XComposer-2.0/evaluation/MMMU/utils/data_utils.py:73
Functionmain
(task, **kwargs)
projects/ShareGPT4V/scripts/convert_sqa_to_share4v.py:87
Functionmake_inputs_require_grad
(module, input, output)
projects/ShareGPT4V/share4v/train/train.py:891
Functionmake_inputs_require_grad
(module, input, output)
projects/DualFocus/dualfocus/train/train.py:868
Methodmatch_bitrate
从字符串中提取比特率。 返回: - int: 提取到的比特率,单位:kb/s
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/audio_stream_consume.py:63
Methodmodality_lengths
(self)
projects/ShareGPT4V/share4v/train/train.py:695
Methodmodality_lengths
(self)
projects/DualFocus/dualfocus/train/train.py:659
← previousnext →1,601–1,700 of 1,890, ranked by callers