MCPcopy Create free account

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

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

Functionbuild_compress_projector
(config)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/builder_compressor.py:174
Functionbuild_compressor
(compressor_cfg)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/builder_compressor.py:165
Methodbuild_inputs_with_special_tokens
(self, token_ids_0, token_ids_1=None)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/tokenization_internlm2.py:173
Methodbuild_inputs_with_special_tokens
(self, token_ids_0, token_ids_1=None)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/adapter/tokenization_internlm2.py:173
Methodbuild_inputs_with_special_tokens
(self, token_ids_0, token_ids_1=None)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/tokenization_internlm2.py:173
Functionbuild_logger
(logger_name, logger_filename)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/utils.py:17
Functionbuild_logger
(logger_name, logger_filename)
projects/DualFocus/dualfocus/utils.py:18
Functionbuild_prompt
(problems, shot_qids, test_qid, args)
projects/ShareGPT4V/scripts/convert_sqa_to_share4v_base_prompt.py:243
Functionbuild_prompt_gpt4
(problems, shot_qids, test_qid, args)
projects/ShareGPT4V/scripts/convert_sqa_to_share4v_base_prompt.py:290
Methodcalculate_duration
计算音频的时长。 参数: - total_bytes: 音频数据的总字节数。 - bitrate: 音频的比特率,单位:kb/s。
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/audio_stream_consume.py:79
Functioncall_llava_engine_df
(args, sample, model, tokenizer=None, processor=None)
InternLM-XComposer-2.0/evaluation/MMMU/utils/model_utils.py:4
Methodcancell
(self)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/audio_stream_consume.py:53
Methodcancelled
(self)
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/audio_stream_consume.py:59
Functionchange_language
(lang)
gradio_demo/gradio_demo_composition.py:873
Functionchange_language
(lang)
gradio_demo/gradio_demo_chat.py:479
Functionchange_language
(lang)
InternLM-XComposer-2.0/examples/gradio_demo_composition.py:807
Functionchange_language
(lang)
InternLM-XComposer-2.0/examples/IXC2_demo.py:1020
Functionchange_language
(lang)
InternLM-XComposer-2.0/examples/gradio_demo_chat.py:257
Functionchange_language
(lang)
InternLM-XComposer-2.0/examples/gradio_4khd_chat.py:343
Functionchange_language
(lang)
InternLM-XComposer-1.0/examples/web_demo_4bit.py:769
Functionchange_language
(lang)
InternLM-XComposer-1.0/examples/web_demo.py:796
Methodchange_meta
(self, withmeta)
gradio_demo/gradio_demo_composition.py:838
Methodchange_meta
(self, withmeta)
InternLM-XComposer-2.0/examples/gradio_demo_composition.py:773
Methodchange_meta
(self, withmeta)
InternLM-XComposer-2.0/examples/IXC2_demo.py:813
Methodchange_meta
(self, withmeta)
examples/gradio_demo_gaokaozuowen.py:260
Methodchat
( self, tokenizer, query: str, image: List[Tuple[str, str]] = [], hd_n
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_xcomposer2.py:603
Methodchat
( self, tokenizer, query: str, image: List[Tuple[str, str]] = [], hd_n
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm_xcomposer2.py:603
Methodchat_answer
(self, state, img_list, max_output_tokens, repetition_penalty, num_beams, do_sample)
gradio_demo/gradio_demo_chat.py:310
Methodchat_answer
(self, state, img_list, max_output_tokens, repetition_penalty, num_beams, do_sample)
InternLM-XComposer-2.0/examples/IXC2_demo.py:877
Methodchat_answer
(self, state, img_list, max_output_tokens, repetition_penalty, num_beams, do_sample)
InternLM-XComposer-2.0/examples/gradio_demo_chat.py:127
Methodchat_answer
(self, state, img_list, max_output_tokens, repetition_penalty, num_beams, do_sample)
InternLM-XComposer-2.0/examples/gradio_4khd_chat.py:209
Methodchat_answer
(self, state, img_list, max_output_tokens, repetition_penalty, num_beams, do_sample)
InternLM-XComposer-1.0/examples/web_demo_4bit.py:681
Methodchat_answer
(self, state, img_list, max_output_tokens, repetition_penalty, num_beams, do_sample)
InternLM-XComposer-1.0/examples/web_demo.py:708
Methodchat_ask
(self, state, img_list, text, image, video, task)
gradio_demo/gradio_demo_chat.py:237
Methodchat_ask
(self, state, img_list, text, image)
InternLM-XComposer-2.0/examples/IXC2_demo.py:833
Methodchat_ask
(self, state, img_list, text, image)
InternLM-XComposer-2.0/examples/gradio_demo_chat.py:83
Methodchat_ask
(self, state, img_list, text, image, task)
InternLM-XComposer-2.0/examples/gradio_4khd_chat.py:152
Methodchat_ask
(self, state, img_list, text, image)
InternLM-XComposer-1.0/examples/web_demo_4bit.py:639
Methodchat_ask
(self, state, img_list, text, image)
InternLM-XComposer-1.0/examples/web_demo.py:665
Methodchat_clear_history
(self, task)
gradio_demo/gradio_demo_chat.py:389
Methodchat_clear_history
(self)
InternLM-XComposer-2.0/examples/IXC2_demo.py:953
Methodchat_clear_history
(self)
InternLM-XComposer-2.0/examples/gradio_demo_chat.py:203
Methodchat_clear_history
(self)
InternLM-XComposer-2.0/examples/gradio_4khd_chat.py:285
Methodchat_clear_history
(self)
InternLM-XComposer-1.0/examples/web_demo_4bit.py:755
Methodchat_clear_history
(self)
InternLM-XComposer-1.0/examples/web_demo.py:782
Methodchat_dislike
(self, state)
InternLM-XComposer-2.0/examples/IXC2_demo.py:994
Methodchat_like
(self, state)
InternLM-XComposer-2.0/examples/IXC2_demo.py:977
Methodchntext2cardinal
(self)
InternLM-XComposer-2.5-OmniLive/benchmarks/eval_audio/cn_tn.py:765
Methodchntext2fraction
(self)
InternLM-XComposer-2.5-OmniLive/benchmarks/eval_audio/cn_tn.py:830
Methodchntext2percentage
(self)
InternLM-XComposer-2.5-OmniLive/benchmarks/eval_audio/cn_tn.py:929
Methodclean_chat_ask
(self, image, video, text, task, beam, chat_do_sample)
gradio_demo/gradio_demo_chat.py:400
MethodclearSample
()
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/components/pcm-player/pcm-audio-player.ts:212
Methodclear_answer
(self, state)
gradio_demo/gradio_demo_chat.py:385
Methodclear_answer
(self, state)
InternLM-XComposer-2.0/examples/IXC2_demo.py:949
Methodclear_answer
(self, state)
InternLM-XComposer-2.0/examples/gradio_demo_chat.py:199
Methodclear_answer
(self, state)
InternLM-XComposer-2.0/examples/gradio_4khd_chat.py:281
Methodclear_answer
(self, state)
InternLM-XComposer-1.0/examples/web_demo_4bit.py:751
Methodclear_answer
(self, state)
InternLM-XComposer-1.0/examples/web_demo.py:778
Functionclear_history
()
projects/ShareGPT4V/tools/app.py:56
Methodclear_images
(self)
gradio_demo/gradio_demo_composition.py:848
Methodclear_images
(self)
InternLM-XComposer-2.0/examples/gradio_demo_composition.py:782
Methodclear_images
(self)
InternLM-XComposer-2.0/examples/IXC2_demo.py:822
Methodclearvideo
(self)
gradio_demo/gradio_demo_chat.py:433
Functioncollate_fn
(inputs, processor)
InternLM-XComposer-2.5-OmniLive/benchmarks/eval_audio/evaluate_asr.py:89
Methodcombine_cents
(m: Match)
InternLM-XComposer-2.5-OmniLive/benchmarks/eval_audio/whisper_normalizer/english.py:418
Methodcondition
config.
InternLM-XComposer-2.5-OmniLive/online_demo/Backend/backend_ixc/vs_deploy/configs_vs/config_ground_qwen.py:10
Methodcondition
config.
InternLM-XComposer-2.5-OmniLive/online_demo_gradio/configs_vs/config_ground_qwen.py:10
Methodconfig
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/builder_projector.py:18
Methodconfig
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/clip_encoder.py:66
Methodconfig
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/memory/builder_compressor.py:157
Methodconfig
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/build_mlp.py:43
Methodconfig
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/build_mlp.py:158
Methodconfig
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/build_mlp.py:43
Methodconfig
(self)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/build_mlp.py:158
Methodconfig
(self)
projects/ShareGPT4V/share4v/model/multimodal_projector/builder.py:14
Methodconfig
(self)
projects/ShareGPT4V/share4v/model/multimodal_encoder/clip_encoder.py:84
Methodconfig
(self)
projects/DualFocus/dualfocus/model/multimodal_projector/builder.py:14
Methodconfig
(self)
projects/DualFocus/dualfocus/model/multimodal_encoder/clip_encoder.py:66
Functionconstruct_prompt
(sample, config)
InternLM-XComposer-2.0/evaluation/MMMU/utils/data_utils.py:136
Methodconstructor
(option: Options)
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/components/pcm-player/pcm-audio-player.ts:32
Methodconsumer
()
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_.py:1647
Methodcontinue
()
InternLM-XComposer-2.5-OmniLive/online_demo/Frontend/src/components/pcm-player/pcm-audio-player.ts:208
Functionconvert_caps
(results)
projects/ShareGPT4V/share4v/eval/eval_science_qa_gpt4.py:19
Functionconvert_caps
(results)
projects/ShareGPT4V/share4v/eval/eval_science_qa.py:19
Functionconvert_caps
(results)
projects/ShareGPT4V/share4v/eval/eval_science_qa_gpt4_requery.py:21
Functionconvert_hf_causal_lm_to_prefix_lm
Converts a HuggingFace Causal LM to a Prefix LM. Supported HuggingFace model classes: - `GPT2LMHeadModel` - `GPTNeoForCausalLM`
projects/DualFocus/dualfocus/model/language_model/mpt/hf_prefixlm_converter.py:335
Functionconvert_to_jsonl
(base_dir, split, prompt_format="QCM-LEPA")
projects/ShareGPT4V/scripts/convert_sqa_to_share4v.py:51
Functionconvert_to_share4v
(base_dir, split, prompt_format="QCM-LEA")
projects/ShareGPT4V/scripts/convert_sqa_to_share4v.py:9
Methodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/tokenization_internlm2.py:125
Methodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/adapter/tokenization_internlm2.py:125
Methodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/tokenization_internlm2.py:125
Methodcreate
(cls, i, v)
InternLM-XComposer-2.5-OmniLive/benchmarks/eval_audio/cn_tn.py:465
Methodcreate_custom_forward
(module)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm_.py:948
Methodcreate_custom_forward
(module)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/base/modeling_internlm2.py:944
Methodcreate_custom_forward
(module)
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm2.py:944
Methodcreate_custom_forward
(module)
projects/ShareGPT4V/share4v/model/multimodal_encoder/modeling_evaclip.py:788
Methodcreate_optimizer
Setup the optimizer. We provide a reasonable default that works well. If you want to use something else, you can pass a tuple in the
projects/ShareGPT4V/share4v/train/share4v_trainer.py:158
Methodcreate_optimizer
Setup the optimizer. We provide a reasonable default that works well. If you want to use something else, you can pass a tuple in the
projects/DualFocus/dualfocus/train/llava_trainer.py:150
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/base/tokenization_internlm2.py:216
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/adapter/tokenization_internlm2.py:216
← previousnext →1,301–1,400 of 1,890, ranked by callers