MCPcopy Create free account

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

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

Functionmodel_consume
(finish_model, interrupt, mm_querys, llm_out_queue, tp)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/client.py:132
Functionmodel_gen
(model, text, images, need_bos=True, padding=False)
InternLM-XComposer-2.0/evaluation/utils.py:14
Functionmodel_gen
(model, text, images, need_bos=True)
InternLM-XComposer-2.0/evaluation/MMMU/utils/utils.py:14
Methodname
(self)
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/VideoCCam.py:14
Methodname
(self)
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/Kangaroo.py:12
Methodname
(self)
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/LLaVANextVideo32.py:26
Methodname
Return the name of the model
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/VideollmOnline.py:33
Methodname
Return the name of the model
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/videoStream.py:265
Methodname
(self)
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/LongVA.py:22
Methodname
(self)
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/FlashVstream.py:21
Methodname
(self)
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/InternVL.py:18
Methodname
(self)
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/Qwen2VL.py:15
Methodname
Return the name of the model
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/ixc2d5_ol.py:231
Methodname
(self)
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/VideoLLaMA2.py:18
Methodname
Return the name of the model
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/modelclass.py:17
Methodname
(self)
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/LLaVAOneVision.py:30
Methodname
Return the name of the model
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/MiniCPMV.py:65
Functionnatural_keys
alist.sort(key=natural_keys) sorts in human order http://nedbatchelder.com/blog/200712/human_sorting.html (See Toothy's implementation in
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/adapter/zero_to_fp32.py:52
Functionneox_param_init_fn_
From section 2.3.1 of GPT-NeoX-20B: An Open-Source AutoregressiveLanguage Model — Black et. al. (2022) see https://github.com/EleutherAI/gpt-
projects/DualFocus/dualfocus/model/language_model/mpt/param_init_fns.py:142
Methodno_prefix_space_tokens
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/tokenization_internlm2.py:81
Methodno_prefix_space_tokens
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/adapter/tokenization_internlm2.py:81
Methodno_prefix_space_tokens
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/tokenization_internlm2.py:81
Functionnorm_bbox
(bbox, height, width)
projects/DualFocus/dualfocus/misc/boxes.py:5
Methodnum_patches
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/clip_encoder.py:77
Methodnum_patches
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/build_mlp.py:169
Methodnum_patches
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/build_mlp.py:169
Methodnum_patches
(self)
projects/ShareGPT4V/share4v/model/multimodal_encoder/clip_encoder.py:95
Methodnum_patches
(self)
projects/DualFocus/dualfocus/model/multimodal_encoder/clip_encoder.py:77
Methodparagraph_edit
(self, edit_type, text, instruction, pts)
gradio_demo/gradio_demo_composition.py:725
Methodparagraph_edit
(self, edit_type, text, instruction, pts)
InternLM-XComposer-2.0/examples/gradio_demo_composition.py:660
Methodparagraph_edit
(self, edit_type, text, instruction, pts)
InternLM-XComposer-2.0/examples/IXC2_demo.py:670
Methodparam_init_fn
(self, module)
projects/DualFocus/dualfocus/model/language_model/mpt/modeling_mpt.py:222
Methodparam_init_fn
(self, module)
projects/DualFocus/dualfocus/model/language_model/mpt/modeling_mpt.py:291
Functionparse_multi_choice_response
Parse the prediction from the generated response. Return the predicted index e.g., A, B, C, D.
InternLM-XComposer-2.0/evaluation/MMMU/utils/eval_utils.py:10
Methodpause
()
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/components/pcm-player/pcm-audio-player.ts:203
Functionplot_boxes_to_image
(img, meta, resize_height=800, resize_
projects/DualFocus/dualfocus/misc/darw.py:26
Functionpost_process_code
(code)
InternLM-XComposer-2.0/demo_asset/serve_utils.py:21
Functionpost_process_code
(code)
InternLM-XComposer-1.0/demo_asset/serve_utils.py:21
Functionpost_process_code
(code)
demo_asset/serve_utils.py:21
Functionpost_process_output
(text)
InternLM-XComposer-2.0/demo_asset/serve_utils.py:12
Functionpost_process_output
(text)
InternLM-XComposer-1.0/demo_asset/serve_utils.py:12
Functionpost_process_output
(text)
demo_asset/serve_utils.py:12
Methodpostprocess
Parameters: y: List of lists representing the message and response pairs. Each message and response should be a string, which may
InternLM-XComposer-2.0/demo_asset/gradio_patch.py:14
Methodpostprocess
Parameters: y: List of lists representing the message and response pairs. Each message and response should be a string, which may
InternLM-XComposer-1.0/demo_asset/gradio_patch.py:21
Methodpostprocess
Parameters: y: List of lists representing the message and response pairs. Each message and response should be a string, which may
demo_asset/gradio_patch.py:14
Functionpredict
(_chatbot, task_history)
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/webdemo.py:256
Functionpredict_audio
(_chatbot, task_history)
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/webdemo.py:317
Functionprepare_inputs_for_generation
(self: BloomForCausalLM, input_ids: torch.LongTensor, past: Optional[torch.Tensor]=None, attention_mask: Optio
projects/DualFocus/dualfocus/model/language_model/mpt/hf_prefixlm_converter.py:255
Methodprepare_inputs_for_generation
( self, input_ids, past_key_values=None, attention_mask=None, inputs_e
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/modeling_qwen.py:1523
Methodprepare_inputs_for_generation
(self, input_ids, past_key_values=None, inputs_embeds=None, indicators=None, **kwargs)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/grounding_qwen.py:197
Methodprepare_inputs_for_generation
(self, input_ids, past_key_values=
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_xcomposer2.py:532
Methodprepare_inputs_for_generation
( self, input_ids, past_key_values=None, attention_mask=None, inputs_embeds=None, im_mask=None, **kwar
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_.py:1473
Methodprepare_inputs_for_generation
(self, input_ids, past_key_values=
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm_xcomposer2.py:532
Methodprepare_inputs_for_generation
( self, input_ids, past_key_values=None, attention_mask=None, inputs_embeds=None, **kwargs )
projects/ShareGPT4V/share4v/model/language_model/share4v_llama.py:102
Methodprepare_inputs_for_generation
( self, input_ids, past_key_values=None, attention_mask=None, inputs_embeds=None, **kwargs )
projects/DualFocus/dualfocus/model/language_model/llava_llama.py:129
Methodprepare_inputs_for_generation
(self, input_ids, past_key_values=None, inputs_embeds=None, **kwargs)
projects/DualFocus/dualfocus/model/language_model/llava_mpt.py:91
Methodprepare_inputs_for_generation
(self, input_ids, past_key_values=None, inputs_embeds=None, **kwargs)
projects/DualFocus/dualfocus/model/language_model/mpt/modeling_mpt.py:301
Functionpreprocess_time
(time, num_clip, tokenizer)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/vs_deploy/video_streaming.py:47
Functionpreprocess_time
(time, num_clip, tokenizer)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/vs_deploy/vs_only.py:44
Functionpretty_print_semaphore
(semaphore)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/utils.py:123
Functionpretty_print_semaphore
(semaphore)
projects/DualFocus/dualfocus/utils.py:124
Methodprocess
(self, vs_dict)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/vs_deploy/video_streaming.py:317
Methodprocess_audio_in_thread
(self, loop)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/client.py:352
Functionprocess_single_sample
(data)
InternLM-XComposer-2.0/evaluation/MMMU/utils/data_utils.py:87
Methodprompt_wrap
(self, img_embeds, prompt)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_xcomposer2.py:198
Methodprompt_wrap
(self, img_embeds, prompt)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm_xcomposer2.py:198
Functionread_item
(item_id: int, q: str = None)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/main.py:31
Functionread_root
()
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/main.py:27
Methodrecv_audio
(self)
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/frontend.py:216
Functionrecv_llm
(text: str)
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/backend.py:140
Methodrefresh
()
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/components/pcm-player/pcm-audio-player.ts:216
Functionregenerate
(state, image_process_mode)
projects/ShareGPT4V/tools/app.py:47
Functionregister_empty_buffer
(module, name, buffer)
projects/DualFocus/dualfocus/model/language_model/mpt/meta_init_context.py:67
Functionregister_empty_parameter
(module, name, param)
projects/DualFocus/dualfocus/model/language_model/mpt/meta_init_context.py:60
Functionremove_symbols
Replace any other markers, symbols, punctuations with a space, keeping diacritics
InternLM-XComposer-2.5-OmniLive/benchmarks/eval_audio/whisper_normalizer/basic.py:46
Methodreplace_image
(self, pt, evt: gr.SelectData)
gradio_demo/gradio_demo_composition.py:798
Methodreplace_image
(self, pt, evt: gr.SelectData)
InternLM-XComposer-2.0/examples/gradio_demo_composition.py:733
Methodreplace_image
(self, pt, evt: gr.SelectData)
InternLM-XComposer-2.0/examples/IXC2_demo.py:743
Methodreplace_image
(self, article, index, evt: gr.SelectData)
InternLM-XComposer-1.0/examples/web_demo_4bit.py:554
Methodreplace_image
(self, article, index, evt: gr.SelectData)
InternLM-XComposer-1.0/examples/web_demo.py:580
Methodreset_components
(self)
gradio_demo/gradio_demo_composition.py:226
Methodreset_components
(self)
InternLM-XComposer-2.0/examples/gradio_demo_composition.py:177
Methodreset_components
(self)
InternLM-XComposer-2.0/examples/IXC2_demo.py:185
Functionreset_state
(task_history)
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/webdemo.py:237
Functionreset_user_input
()
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/webdemo.py:233
Methodresize_pos
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/build_mlp.py:66
Methodresume_2_webpage
( self, inst: str, image: List[Tuple[str, str]] = [], max_new_tokens: int = 48
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_xcomposer2.py:773
Methodresume_2_webpage
( self, inst: str, image: List[Tuple[str, str]] = [], max_new_tokens: int = 48
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm_xcomposer2.py:773
Functionsafe_save_model_for_hf_trainer
Collects the state dict and dump to disk.
InternLM-XComposer-2.5-Reward/training/finetune.py:118
Methodsave
(self, beam, repetition, text_num, random, seed)
gradio_demo/gradio_demo_composition.py:803
Methodsave
(self, beam, repetition, text_num, random, seed)
InternLM-XComposer-2.0/examples/gradio_demo_composition.py:738
Methodsave
(self)
InternLM-XComposer-1.0/examples/web_demo_4bit.py:573
Functionsave_args
(args, path_dir)
InternLM-XComposer-2.0/evaluation/MMMU/utils/data_utils.py:125
Functionsave_json
(filename, ds)
InternLM-XComposer-2.0/evaluation/MMMU/utils/data_utils.py:53
Functionsave_jsonl
Save a dictionary of data to a JSON Lines file with the filename as key and caption as value. Args: filename (str): The path to the
InternLM-XComposer-2.0/evaluation/MMMU/utils/data_utils.py:108
Methodsave_vocabulary
Save the vocabulary and special tokens file to a directory. Args: save_directory (`str`): The directory
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/tokenization_internlm2.py:146
Methodsave_vocabulary
Save the vocabulary and special tokens file to a directory. Args: save_directory (`str`): The directory
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/adapter/tokenization_internlm2.py:146
Methodsave_vocabulary
Save the vocabulary and special tokens file to a directory. Args: save_directory (`str`): The directory
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/tokenization_internlm2.py:146
Functionscaled_multihead_dot_product_attention
(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:20
Functionscheduled_screenshot
(video_stream_url: str, interval: int, frame_list: Queue, stop_event: threading.Event)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/video_stream_consume.py:7
← previousnext →1,701–1,800 of 1,890, ranked by callers