MCPcopy Create free account

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

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

↓ 1 callersFunctionpreprocess_plain
( sources: Sequence[str], tokenizer: transformers.PreTrainedTokenizer )
projects/ShareGPT4V/share4v/train/train.py:592
↓ 1 callersFunctionpreprocess_plain
( sources: Sequence[str], tokenizer: transformers.PreTrainedTokenizer, )
projects/DualFocus/dualfocus/train/train.py:560
↓ 1 callersFunctionpreprocess_question
(questions, tokenizer)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/model_grounding_ego.py:127
↓ 1 callersFunctionpreprocess_question
(questions, tokenizer)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/vs_deploy/video_streaming.py:69
↓ 1 callersFunctionpreprocess_question
(questions, tokenizer)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/vs_deploy/vs_only.py:66
↓ 1 callersFunctionpreprocess_question
(questions, tokenizer)
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/backend_vs.py:167
↓ 1 callersFunctionpreprocess_question
(questions, tokenizer)
InternLM-XComposer-2.5-OmniLive/examples/infer_llm_with_memory.py:158
↓ 1 callersFunctionpreprocess_question
(questions, tokenizer)
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/videoStream.py:142
↓ 1 callersFunctionpreprocess_time
(time, num_clip, tokenizer)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/model_grounding_ego.py:110
↓ 1 callersFunctionpreprocess_time
(time, num_clip, tokenizer)
InternLM-XComposer-2.5-OmniLive/examples/infer_llm_with_memory.py:141
↓ 1 callersFunctionpreprocess_time
(time, num_clip, tokenizer)
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/videoStream.py:121
↓ 1 callersFunctionpreprocess_v1
( sources, tokenizer: transformers.PreTrainedTokenizer, has_image: bool = False )
projects/ShareGPT4V/share4v/train/train.py:508
↓ 1 callersFunctionpreprocess_v1
( sources, tokenizer: transformers.PreTrainedTokenizer, has_image: bool = False )
projects/DualFocus/dualfocus/train/train.py:411
↓ 1 callersMethodprocess
(self, data_sample)
InternLM-XComposer-1.0/evaluation/mmbench/utils.py:89
↓ 1 callersFunctionprocess_data
(video_id, scene_sep, question, model_config, tokenizer, processor, processor_large, time_tokenizer)
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/videoStream.py:151
↓ 1 callersMethodprocess_digit_article
(self, in_text)
projects/ShareGPT4V/share4v/eval/m4c_evaluator.py:198
↓ 1 callersMethodprocess_digit_article
(self, in_text)
projects/DualFocus/dualfocus/eval/m4c_evaluator.py:198
↓ 1 callersMethodprocess_punctuation
(self, in_text)
projects/ShareGPT4V/share4v/eval/m4c_evaluator.py:186
↓ 1 callersMethodprocess_punctuation
(self, in_text)
projects/DualFocus/dualfocus/eval/m4c_evaluator.py:186
↓ 1 callersMethodprocess_words
(self, words: List[str])
InternLM-XComposer-2.5-OmniLive/benchmarks/eval_audio/whisper_normalizer/english.py:165
↓ 1 callersFunctionprompt_processor
(prompt)
projects/ShareGPT4V/share4v/eval/eval_textvqa.py:17
↓ 1 callersFunctionprompt_processor
(prompt)
projects/DualFocus/dualfocus/eval/eval_textvqa.py:17
↓ 1 callersMethodprompt_warp
(self, images, text)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_.py:1156
↓ 1 callersFunctionrank0_print
(*args)
InternLM-XComposer-1.0/finetune/finetune.py:111
↓ 1 callersFunctionreadBuffer
(data: any)
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/hooks/usePlayer.tsx:55
↓ 1 callersFunctionread_audio
(audio_path)
InternLM-XComposer-2.5-OmniLive/benchmarks/eval_audio/evaluate_asr.py:79
↓ 1 callersFunctionrelaxed_correctness
Calculates relaxed correctness. The correctness tolerates certain error ratio defined by max_relative_change. See https://arxiv.org/pdf/2203.
InternLM-XComposer-2.0/evaluation/utils.py:72
↓ 1 callersFunctionremove_erhua
去除儿化音词中的儿: 他女儿在那边儿 -> 他女儿在那边
InternLM-XComposer-2.5-OmniLive/benchmarks/eval_audio/cn_tn.py:1028
↓ 1 callersMethodremove_punctuation
Remove punctuation based on Unicode category.
InternLM-XComposer-2.5-OmniLive/benchmarks/eval_audio/evaluate_tokenizer.py:43
↓ 1 callersFunctionremove_space
(text)
InternLM-XComposer-2.5-OmniLive/benchmarks/eval_audio/cn_tn.py:1055
↓ 1 callersFunctionremove_symbols_and_diacritics
Replace any other markers, symbols, and punctuations with a space, and drop any diacritics (category 'Mn' and some manual mappings)
InternLM-XComposer-2.5-OmniLive/benchmarks/eval_audio/whisper_normalizer/basic.py:27
↓ 1 callersFunctionreplace_llama_attn_with_flash_attn
()
projects/ShareGPT4V/share4v/train/llama_flash_attn_monkey_patch.py:107
↓ 1 callersFunctionreplace_llama_attn_with_flash_attn
()
projects/DualFocus/dualfocus/train/llama_flash_attn_monkey_patch.py:105
↓ 1 callersFunctionreplace_llama_attn_with_xformers_attn
()
projects/ShareGPT4V/share4v/train/llama_xformers_attn_monkey_patch.py:19
↓ 1 callersMethodreset
(self)
InternLM-XComposer-1.0/examples/web_demo_4bit.py:99
↓ 1 callersMethodreset
(self)
InternLM-XComposer-1.0/examples/web_demo.py:81
↓ 1 callersMethodreset_parameters
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/build_mlp.py:208
↓ 1 callersMethodrun
(self)
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/backend_llm.py:111
↓ 1 callersFunctionsafe_save_model_for_hf_trainer
Collects the state dict and dump to disk.
InternLM-XComposer-2.0/finetune/finetune.py:115
↓ 1 callersFunctionsafe_save_model_for_hf_trainer
Collects the state dict and dump to disk.
projects/ShareGPT4V/share4v/train/train.py:241
↓ 1 callersFunctionsafe_save_model_for_hf_trainer
Collects the state dict and dump to disk.
projects/DualFocus/dualfocus/train/train.py:182
↓ 1 callersFunctionsafe_save_model_for_hf_trainer
Collects the state dict and dump to disk.
InternLM-XComposer-1.0/finetune/finetune.py:116
↓ 1 callersFunctionsafe_save_model_for_hf_trainer
Collects the state dict and dump to disk.
finetune/finetune.py:115
↓ 1 callersFunctionsample_frames_from_video_decord
(video_path, max_frames=16)
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/webdemo.py:43
↓ 1 callersMethodsave
(self)
InternLM-XComposer-1.0/examples/web_demo.py:599
↓ 1 callersMethodsave_results
(self)
InternLM-XComposer-1.0/evaluation/mmbench/utils.py:103
↓ 1 callersMethodselect_memory
(self, query: str, folder: str)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/vs_deploy/video_streaming.py:388
↓ 1 callersMethodselect_memory
(self, sess: Session, query: str)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/vs_deploy/vs_only.py:347
↓ 1 callersMethodselect_memory
(self, query)
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/backend_vs.py:327
↓ 1 callersMethodsend_tts_pcm_bytes
(self)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/client.py:356
↓ 1 callersFunctionsetup4lmdeploy
()
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/configs_vs/__init__.py:6
↓ 1 callersFunctionsmall_param_init_fn_
(module: nn.Module, n_layers: int, d_model: int, init_div_is_residual: Union[int, float, str, bool]=True, emb_
projects/DualFocus/dualfocus/model/language_model/mpt/param_init_fns.py:137
↓ 1 callersFunctionsmart_tokenizer_and_embedding_resize
Resize tokenizer and embedding. Note: This is the unoptimized version that may make your embedding size not be divisible by 64.
projects/ShareGPT4V/share4v/train/train.py:312
↓ 1 callersFunctionsmart_tokenizer_and_embedding_resize
Resize tokenizer and embedding. Note: This is the unoptimized version that may make your embedding size not be divisible by 64.
projects/DualFocus/dualfocus/train/train.py:221
↓ 1 callersFunctionsplit_into_sentences
(text)
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/webdemo.py:86
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized non-empty chunks.
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/eval.py:9
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
InternLM-XComposer-2.5-OmniLive/benchmarks/mlvu/mlvu.py:196
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
InternLM-XComposer-2.5-OmniLive/benchmarks/video_mme/video_mme.py:197
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
InternLM-XComposer-2.5-OmniLive/benchmarks/mvbench/mvbench.py:213
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
projects/ShareGPT4V/share4v/eval/model_vqa_loader.py:21
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
projects/ShareGPT4V/share4v/eval/model_vqa_mmbench.py:23
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
projects/ShareGPT4V/share4v/eval/model_vqa_science.py:18
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
projects/ShareGPT4V/share4v/eval/model_vqa.py:18
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
projects/DualFocus/dualfocus/eval/model_vqa_mmbench.py:24
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
projects/DualFocus/dualfocus/eval/model_vqa_gqa.py:22
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
projects/DualFocus/dualfocus/eval/model_vqa_seed.py:22
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
projects/DualFocus/dualfocus/eval/model_vqa_textvqa.py:21
↓ 1 callersFunctionsplit_model
(model_name)
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/InternVL.py:89
↓ 1 callersFunctionsplit_to_even_chunks
Split a list of indices into `chunks` chunks of roughly equal lengths.
projects/ShareGPT4V/share4v/train/share4v_trainer.py:35
↓ 1 callersFunctionsplit_to_even_chunks
Split a list of indices into `chunks` chunks of roughly equal lengths.
projects/DualFocus/dualfocus/train/llava_trainer.py:38
↓ 1 callersMethodstop
(self)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/audio_stream_consume.py:56
↓ 1 callersFunctionstring2symbols
(chinese_string, system)
InternLM-XComposer-2.5-OmniLive/benchmarks/eval_audio/cn_tn.py:581
↓ 1 callersMethodtext2emb
(self, text, add_special_tokens=False)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_xcomposer2.py:219
↓ 1 callersMethodtext2emb
(self, text, add_special_tokens=False)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm_xcomposer2.py:219
↓ 1 callersMethodtext2instruction
(self, text)
examples/gradio_demo_gaokaozuowen.py:116
↓ 1 callersMethodtext2instruction_caption
(self, inst)
gradio_demo/gradio_demo_composition.py:236
↓ 1 callersMethodtext_reorg
(self, text)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_.py:1092
↓ 1 callersFunctiontokenizer_image_token
(prompt, tokenizer, image_token_index=IMAGE_TOKEN_INDEX, return_tensors=None)
InternLM-XComposer-2.0/evaluation/MMMU/utils/model_utils.py:8
↓ 1 callersFunctiontrain
()
InternLM-XComposer-2.0/finetune/finetune.py:214
↓ 1 callersFunctiontrain
()
InternLM-XComposer-1.0/finetune/finetune.py:174
↓ 1 callersFunctiontrain
()
InternLM-XComposer-2.5-Reward/training/finetune.py:244
↓ 1 callersFunctiontrain
()
finetune/finetune.py:214
↓ 1 callersMethodtraining_step
( self, model: nn.Module, inputs: Dict[str, Union[torch.Tensor, Any]])
InternLM-XComposer-2.5-Reward/training/trainer.py:659
↓ 1 callersMethodtranscribe_audio
(self, audio, cls_audio)
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/backend.py:88
↓ 1 callersFunctionusePlayer
()
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/hooks/usePlayer.tsx:7
↓ 1 callersFunctionuseSrs
()
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/hooks/useSrs.tsx:8
↓ 1 callersMethodvideo_img_process
(self, imgs)
gradio_demo/gradio_demo_chat.py:164
↓ 1 callersMethodvideollmOnline_Run
(self, file, inp, timestamp)
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/VideollmOnline.py:39
↓ 1 callersMethodwebcam_stream
使用如下命令列出可用设备:`ffmpeg -list_devices true -f dshow -i dummy`
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/audio_stream_consume.py:103
↓ 1 callersMethodword_tokenize
(self, word)
projects/ShareGPT4V/share4v/eval/m4c_evaluator.py:181
↓ 1 callersMethodword_tokenize
(self, word)
projects/DualFocus/dualfocus/eval/m4c_evaluator.py:181
↓ 1 callersFunctionwrap
(string, max_width)
projects/DualFocus/dualfocus/misc/darw.py:8
FunctionApp
()
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/App.tsx:8
FunctionAudioLoading
(props: IAudioLoadingProps)
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/components/audio-loading/audio-loading.tsx:11
FunctionCameraVideo
()
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/components/camera-video/index.tsx:20
FunctionChatProvider
({ children })
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/context/chat-context.tsx:19
FunctionFooter
()
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/components/footer/footer.tsx:4
FunctionHome
()
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/pages/home/home.tsx:7
FunctionPrepare
()
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/components/prepare/prepare.tsx:8
MethodRun
(self, file, inp)
InternLM-XComposer-2.5-OmniLive/benchmarks/streamingbench/src/model/VideoCCam.py:11
← previousnext →801–900 of 1,890, ranked by callers