MCPcopy Create free account

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

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

↓ 1 callersFunction_import_flash_attn
()
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm2.py:61
↓ 1 callersFunction_import_flash_attn
()
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm2.py:61
↓ 1 callersMethod_init_rope
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_.py:316
↓ 1 callersMethod_init_rope
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm2.py:312
↓ 1 callersMethod_init_rope
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm2.py:312
↓ 1 callersMethod_load_llava_qwen
(self, model_path: str)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/vs_deploy/video_streaming.py:252
↓ 1 callersMethod_load_llava_qwen
(self, model_path: str)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/vs_deploy/vs_only.py:227
↓ 1 callersMethod_load_llava_qwen
(self, model_path: str)
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/backend_vs.py:244
↓ 1 callersMethod_load_processor
(self, model_path: str)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/vs_deploy/video_streaming.py:227
↓ 1 callersMethod_load_processor
(self, model_path: str)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/vs_deploy/vs_only.py:202
↓ 1 callersMethod_load_processor
(self, model_path: str)
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/backend_vs.py:219
↓ 1 callersMethod_load_siglip
(self)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/vs_deploy/video_streaming.py:223
↓ 1 callersMethod_load_siglip
(self)
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/backend_vs.py:215
↓ 1 callersFunction_make_causal_mask
Make causal mask used for bi-directional self-attention.
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_.py:90
↓ 1 callersFunction_make_causal_mask
Make causal mask used for bi-directional self-attention.
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm2.py:86
↓ 1 callersFunction_make_causal_mask
Make causal mask used for bi-directional self-attention.
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm2.py:86
↓ 1 callersFunction_mask_targets
(target, tokenized_lens, speakers)
projects/ShareGPT4V/share4v/train/train.py:364
↓ 1 callersFunction_mask_targets
(target, tokenized_lens, speakers)
projects/DualFocus/dualfocus/train/train.py:273
↓ 1 callersMethod_maybe_add_prefix_space
(self, tokens, decoded)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/tokenization_internlm2.py:119
↓ 1 callersMethod_maybe_add_prefix_space
(self, tokens, decoded)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/adapter/tokenization_internlm2.py:119
↓ 1 callersMethod_maybe_add_prefix_space
(self, tokens, decoded)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/tokenization_internlm2.py:119
↓ 1 callersFunction_normal_init_
(std, mean=0.0)
projects/DualFocus/dualfocus/model/language_model/mpt/param_init_fns.py:121
↓ 1 callersMethod_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds, past_key_values_length)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_.py:835
↓ 1 callersMethod_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds, past_key_values_length)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm2.py:831
↓ 1 callersMethod_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds, past_key_values_length)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm2.py:831
↓ 1 callersMethod_rope_scaling_validation
Validate the `rope_scaling` configuration.
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/configuration_internlm_xcomposer2.py:131
↓ 1 callersMethod_rope_scaling_validation
Validate the `rope_scaling` configuration.
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/configuration_internlm_xcomposer2.py:131
↓ 1 callersMethod_save
(self, output_dir: Optional[str] = None, state_dict=None)
projects/ShareGPT4V/share4v/train/share4v_trainer.py:325
↓ 1 callersMethod_save_checkpoint
(self, model, trial, metrics=None)
projects/DualFocus/dualfocus/train/llava_trainer.py:239
↓ 1 callersMethod_unpad_input
(self, query_layer, key_layer, value_layer, attention_mask, query_length)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_.py:572
↓ 1 callersMethod_unpad_input
(self, query_layer, key_layer, value_layer, attention_mask, query_length)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm2.py:568
↓ 1 callersMethod_unpad_input
(self, query_layer, key_layer, value_layer, attention_mask, query_length)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm2.py:568
↓ 1 callersFunction_upad_input
Unpads query, key, and values tensors, using a single dimension for all tokens even though they belong to different batches. This function i
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/modeling_flash_attention_utils.py:60
↓ 1 callersMethod_update_causal_mask
( self, attention_mask: torch.Tensor, input_tensor: torch.Tensor, cache_positi
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/modeling_qwen.py:935
↓ 1 callersFunction_zero2_merge_frozen_params
(state_dict, zero_model_states)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/adapter/zero_to_fp32.py:219
↓ 1 callersFunction_zero2_merge_trainable_params
(state_dict, world_size, fp32_flat_groups, zero_model_states)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/adapter/zero_to_fp32.py:251
↓ 1 callersFunction_zero3_merge_frozen_params
(state_dict, world_size, zero_model_states)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/adapter/zero_to_fp32.py:352
↓ 1 callersFunction_zero3_merge_trainable_params
(state_dict, world_size, fp32_flat_groups, zero_model_states)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/adapter/zero_to_fp32.py:388
↓ 1 callersFunctionadapt_tokenizer_for_denoising
Adds sentinel tokens and padding token (if missing). Expands the tokenizer vocabulary to include sentinel tokens used in mixture-of-denoiser
projects/DualFocus/dualfocus/model/language_model/mpt/adapt_tokenizer.py:6
↓ 1 callersMethodaddarticle
(self, text_imgs)
gradio_demo/gradio_demo_composition.py:175
↓ 1 callersMethodaddarticle
(self, text_imgs)
InternLM-XComposer-2.0/examples/gradio_demo_composition.py:127
↓ 1 callersMethodaddarticle
(self, text_imgs)
InternLM-XComposer-2.0/examples/IXC2_demo.py:128
↓ 1 callersMethodaddtitle
(self, title, hash_folder, params)
gradio_demo/gradio_demo_composition.py:143
↓ 1 callersMethodaddtitle
(self, title, hash_folder, params)
InternLM-XComposer-2.0/examples/gradio_demo_composition.py:95
↓ 1 callersMethodaddtitle
(self, title, hash_folder, params)
InternLM-XComposer-2.0/examples/IXC2_demo.py:96
↓ 1 callersMethodalign_text
(self, samples)
InternLM-XComposer-1.0/examples/web_demo_4bit.py:241
↓ 1 callersMethodalign_text
(self, samples)
InternLM-XComposer-1.0/examples/web_demo.py:222
↓ 1 callersFunctionapply_delta
(base_model_path, target_model_path, delta_path)
projects/DualFocus/dualfocus/model/apply_delta.py:13
↓ 1 callersFunctionatoi
(text)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/adapter/zero_to_fp32.py:48
↓ 1 callersFunctionattn_bias_shape
(attn_impl, n_heads, seq_len, alibi, prefix_lm, causal, use_sequence_id)
projects/DualFocus/dualfocus/model/language_model/mpt/attention.py:258
↓ 1 callersMethodaudio_stream
(self, stream_path: str = None, webcam: bool = False, **kwargs)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/audio_stream_consume.py:92
↓ 1 callersFunctionauto_configure_device_map
(num_gpus)
example_code/utils.py:6
↓ 1 callersFunctionauto_configure_device_map
(num_gpus)
projects/ShareGPT4V/tools/share-cap_batch_infer.py:22
↓ 1 callersFunctionauto_upgrade
(config)
projects/ShareGPT4V/share4v/model/utils.py:4
↓ 1 callersMethodbackup
(self)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/vs_deploy/video_streaming.py:143
↓ 1 callersMethodbackup
(self)
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/backend_vs.py:92
↓ 1 callersMethodbindAudioContextEvent
()
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/components/pcm-player/pcm-audio-player.ts:234
↓ 1 callersFunctionbuild_alibi_bias
(n_heads, seq_len, full=False, alibi_bias_max=8, device=None, dtype=None)
projects/DualFocus/dualfocus/model/language_model/mpt/attention.py:292
↓ 1 callersFunctionbuild_attn_bias
(attn_impl, attn_bias, n_heads, seq_len, causal=False, alibi=False, alibi_bias_max=8)
projects/DualFocus/dualfocus/model/language_model/mpt/attention.py:272
↓ 1 callersFunctionbuild_demo
()
projects/ShareGPT4V/tools/app.py:248
↓ 1 callersMethodbuild_inputs
(self, tokenizer, query: str, history: List[Tup
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_xcomposer2.py:587
↓ 1 callersMethodbuild_inputs
(self, tokenizer, query: str, history: List[Tuple[str, str]] = [], meta_instruction="")
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_.py:1524
↓ 1 callersMethodbuild_inputs
(self, tokenizer, query: str, history: List[Tup
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm_xcomposer2.py:587
↓ 1 callersFunctionbuild_transform
(input_size)
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/InternVL.py:24
↓ 1 callersFunctionbuild_vision_tower
()
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/build_mlp.py:8
↓ 1 callersFunctioncalc
(folder, num_chunks)
InternLM-XComposer-2.5-OmniLive/benchmarks/mlvu/eval_mlvu.py:12
↓ 1 callersFunctioncalc
(folder, num_chunks)
InternLM-XComposer-2.5-OmniLive/benchmarks/video_mme/eval_video_mme.py:12
↓ 1 callersFunctioncalc
(folder, num_chunks)
InternLM-XComposer-2.5-OmniLive/benchmarks/mvbench/eval_mvbench.py:12
↓ 1 callersFunctioncalculatePCMAudioDuration
(arrayBuffer: any, sampleRate: any, bitDepth: any, channels: any)
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/components/pcm-player/pcm-player-util.ts:1
↓ 1 callersFunctioncalculate_diff
(scene_sep, start_frame)
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/videoStream.py:54
↓ 1 callersFunctioncalculate_flops
(model, input_shape=None, transformer_tokenizer=None,
InternLM-XComposer-1.0/examples/example_params_and_flops.py:14
↓ 1 callersMethodcall_for_batch
(self, output_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/mm_utils.py:90
↓ 1 callersFunctioncheck_is_number
Check if the given string a number.
InternLM-XComposer-2.0/evaluation/MMMU/utils/eval_utils.py:65
↓ 1 callersFunctionclip_loss
(similarity: torch.Tensor)
projects/ShareGPT4V/share4v/model/multimodal_encoder/modeling_evaclip.py:67
↓ 1 callersFunctioncompute_accuracy
(results: List[Dict[str, Any]])
InternLM-XComposer-2.5-Reward/evaluation/rm_bench/inference.py:10
↓ 1 callersMethodcompute_loss
How the loss is computed by Trainer. By default, all models return the loss in the first element. Subclass and override for custom b
InternLM-XComposer-2.5-Reward/training/trainer.py:612
↓ 1 callersFunctioncompute_value
Compute the value. When current unit is larger than previous unit, current unit * all previous units will be used as all previous uni
InternLM-XComposer-2.5-OmniLive/benchmarks/eval_audio/cn_tn.py:624
↓ 1 callersFunctioncompute_wer
(refs, hyps, language)
InternLM-XComposer-2.5-OmniLive/benchmarks/eval_audio/evaluate_asr.py:135
↓ 1 callersFunctionconsolidate_ckpt
(src_path, dst_path)
projects/ShareGPT4V/share4v/model/consolidate.py:14
↓ 1 callersFunctionconsolidate_ckpt
(src_path, dst_path)
projects/DualFocus/dualfocus/model/consolidate.py:13
↓ 1 callersFunctionconv2text
(sources)
InternLM-XComposer-2.0/finetune/data_mix.py:12
↓ 1 callersFunctionconv2text
(sources)
InternLM-XComposer-1.0/finetune/data_mix.py:12
↓ 1 callersFunctionconv2text
(sources)
finetune/data_mix.py:10
↓ 1 callersFunctionconvert_webm_to_mp4
(input_file, output_file)
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/webdemo.py:92
↓ 1 callersFunctionconvert_zero_checkpoint_to_fp32_state_dict
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be loaded with ``torch.load(file)`` + ``load_stat
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/adapter/zero_to_fp32.py:512
↓ 1 callersFunctioncorrect_symbols
一百八 to 一百八十 一亿一千三百万 to 一亿 一千万 三百万
InternLM-XComposer-2.5-OmniLive/benchmarks/eval_audio/cn_tn.py:590
↓ 1 callersFunctioncreate_data_loader
(questions, image_folder, tokenizer, image_processor, model_config, batch_size=1, num_workers=4)
projects/ShareGPT4V/share4v/eval/model_vqa_loader.py:71
↓ 1 callersFunctioncreate_one_example_chatbot
(format, question, context, choice, answer, lecture, solution, test_example=True)
projects/ShareGPT4V/scripts/convert_sqa_to_share4v_base_prompt.py:41
↓ 1 callersFunctioncreate_test_prompt
(demo_prompt, query, response)
InternLM-XComposer-2.0/evaluation/utils.py:219
↓ 1 callersMethoddate2chntext
(self)
InternLM-XComposer-2.5-OmniLive/benchmarks/eval_audio/cn_tn.py:872
↓ 1 callersFunctiondeal_with_prompt
(input_text, mm_use_im_start_end)
InternLM-XComposer-2.0/evaluation/MMMU/utils/model_utils.py:29
↓ 1 callersFunctiondecode_base64_to_image
(base64_string)
InternLM-XComposer-2.0/evaluation/mmbench/utils.py:42
↓ 1 callersFunctiondecode_base64_to_image
(base64_string)
InternLM-XComposer-1.0/evaluation/mmbench/utils.py:109
↓ 1 callersMethoddestroy
()
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/components/pcm-player/pcm-audio-player.ts:145
↓ 1 callersMethoddevice
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/build_mlp.py:154
↓ 1 callersMethoddevice
(self)
projects/DualFocus/dualfocus/model/multimodal_encoder/clip_encoder.py:62
↓ 1 callersMethoddict
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/conversation.py:212
↓ 1 callersFunctiondisable_torch_init
Disable the redundant torch default initialization to accelerate model creation.
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/ixc2d5_ol.py:11
↓ 1 callersFunctiondisable_torch_init
Disable the redundant torch default initialization to accelerate model creation.
InternLM-XComposer-2.5-OmniLive/benchmarks/mlvu/mlvu.py:17
↓ 1 callersFunctiondisable_torch_init
Disable the redundant torch default initialization to accelerate model creation.
InternLM-XComposer-2.5-OmniLive/benchmarks/video_mme/video_mme.py:18
← previousnext →401–500 of 1,890, ranked by callers