MCPcopy Create free account

hub / github.com/X-PLUG/mPLUG-Owl / functions

Functions946 in github.com/X-PLUG/mPLUG-Owl

Methodget_attention_map
(self)
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:529
Methodget_attention_map
(self)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:774
Methodget_attention_map
(self)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:710
Methodget_attn_gradients
(self)
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:523
Methodget_attn_gradients
(self)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:768
Methodget_attn_gradients
(self)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:704
Methodget_config
(self)
mPLUG-Owl/serve/gradio_patch.py:75
Functionget_cosine_schedule_with_warmup
Create a schedule with a learning rate that decreases following the values of the cosine function between the initial lr set in the o
mPLUG-Owl/pipeline/utils.py:122
Methodget_decoder
(self)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1398
Methodget_decoder
(self)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:1297
Methodget_encoder
(self)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1395
Methodget_encoder
(self)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:1294
Methodget_eval_dataloader
(self, eval_dataset: Dataset | None = None)
mPLUG-Owl/pipeline/train.py:118
Methodget_id
(self, index)
mPLUG-Owl3/evaluation/tasks/task_define/next_qa.py:601
Methodget_image_features
( self, pixel_values: Optional[torch.FloatTensor] = None, output_attentions: Optional[
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1294
Methodget_image_features
( self, pixel_values: Optional[torch.FloatTensor] = None, output_attentions: Optional[
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:1208
Methodget_input_embeddings
(self)
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:458
Methodget_input_embeddings
(self)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:716
Methodget_input_embeddings
(self)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:657
Functionget_mm_adapter_state_maybe_zero_3
(named_params, keys_to_match)
mPLUG-Owl2/mplug_owl2/train/train.py:152
Functionget_mm_adapter_state_maybe_zero_3
(named_params, keys_to_match)
mPLUG-Owl2/mplug_owl2/train/mplug_owl2_trainer.py:32
Methodget_model
(self)
mPLUG-Owl2/mplug_owl2/model/modeling_mplug_owl2.py:374
Methodget_output_embeddings
(self)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1392
Methodget_output_embeddings
(self)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:1291
Functionget_param_groups
creates param groups based on weight decay condition (regularized vs non regularized) and learning rate scale condition (args.lr vs lr_mult * a
mPLUG-Owl/pipeline/utils.py:68
Functionget_status
(request: Request)
mPLUG-Owl2/mplug_owl2/serve/model_worker.py:243
Methodget_text_features
( self, input_ids: Optional[torch.Tensor] = None, attention_mask: Optional[torch.Tenso
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1253
Methodget_text_features
( self, input_ids: Optional[torch.Tensor] = None, attention_mask: Optional[torch.Tenso
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:1167
Functionget_tokenizer
()
mPLUG-Owl/pipeline/utils.py:28
Methodget_train_dataloader
(self)
mPLUG-Owl/pipeline/train.py:106
Methodget_vision_tower
(self)
mPLUG-Owl2/mplug_owl2/model/modeling_mplug_owl2.py:43
Methodget_visual_abstractor
(self)
mPLUG-Owl2/mplug_owl2/model/modeling_mplug_owl2.py:49
Functionget_worker_address
(request: Request)
mPLUG-Owl2/mplug_owl2/serve/controller.py:262
Functionheart_beat_controller
(controller)
mPLUG-Owl2/mplug_owl2/serve/controller.py:51
Functionheart_beat_worker
(controller)
mPLUG-Owl2/mplug_owl2/serve/model_worker.py:37
Functionhttp_bot
(state, model_selector, temperature, top_p, max_new_tokens, request: gr.Request)
mPLUG-Owl2/mplug_owl2/serve/gradio_web_server.py:156
Functionhttp_bot
(state, temperature, top_p, max_new_tokens, request: gr.Request)
mPLUG-Owl2/mplug_owl2/local_serve/local_web_server.py:118
Functionhttp_bot
(state, max_output_tokens, temperature, top_k, top_p, num_beams, no_repeat_ngram_size, length_pen
mPLUG-Owl/serve/web_server.py:44
Functionidentity_func
(img)
mPLUG-Owl/pipeline/data_utils/randaugment.py:7
Functionignore_io_error
(msg='')
mPLUG-Owl/serve/io_utils.py:434
Methodisdir
(self, path)
mPLUG-Owl/serve/io_utils.py:132
Methodisfile
(self, path)
mPLUG-Owl/serve/io_utils.py:135
Methodlast_modified
(self, path)
mPLUG-Owl/serve/io_utils.py:141
Methodlast_modified
(self, path)
mPLUG-Owl/serve/io_utils.py:335
Methodlengths
(self)
mPLUG-Owl2/mplug_owl2/train/train.py:462
Functionlevel_to_args
(level)
mPLUG-Owl/pipeline/data_utils/randaugment.py:210
Functionlist_models
()
mPLUG-Owl2/mplug_owl2/serve/controller.py:256
Methodlistdir
(self, path, recursive=False, full_path=False, contains=None)
mPLUG-Owl/serve/io_utils.py:119
MethodloadQA
Load questions and answers with the specified question ids. :param ids (int array) : integer ids specifying question ids :retur
mPLUG-Owl2/mplug_owl2/evaluate/vqa.py:143
MethodloadQA
Load questions and answers with the specified question ids. :param ids (int array) : integer ids specifying question ids
mPLUG-Owl3/evaluation/vqa_utils/vqa.py:148
Functionload_demo
(url_params, request: gr.Request)
mPLUG-Owl2/mplug_owl2/serve/gradio_web_server.py:58
Functionload_demo
(url_params, request: gr.Request)
mPLUG-Owl2/mplug_owl2/local_serve/local_web_server.py:41
Functionload_demo
(url_params, request: gr.Request)
mPLUG-Owl/serve/web_server.py:26
Functionload_demo_refresh_model_list
(request: gr.Request)
mPLUG-Owl2/mplug_owl2/serve/gradio_web_server.py:72
Functionlr_lambda
(current_step)
mPLUG-Owl/pipeline/utils.py:149
Functionmake_inputs_require_grad
(module, input, output)
mPLUG-Owl2/mplug_owl2/train/train.py:681
Functionmake_inputs_require_grad
(module, input, output)
mPLUG-Owl/pipeline/train.py:158
Methodmakedirs
(self, path, exist_ok=True)
mPLUG-Owl/serve/io_utils.py:106
Methodmakedirs
(self, path, exist_ok=True)
mPLUG-Owl/serve/io_utils.py:308
Methodmodality_lengths
(self)
mPLUG-Owl2/mplug_owl2/train/train.py:471
Functionmodel_forward
( self, input_ids: torch.LongTensor = None, modality_indicators: torch.Tensor = None, attentio
mPLUG-Owl2/mplug_owl2/model/modeling_llama2.py:240
Methodmodule_dict
(self)
mPLUG-Owl3/evaluation/tasks/task_define/registry.py:286
Methodmodule_dict
(self)
mPLUG-Owl/pipeline/data_utils/registry.py:286
Methodmove
(self, src, dst)
mPLUG-Owl/serve/io_utils.py:89
Methodmove
(self, src, dst)
mPLUG-Owl/serve/io_utils.py:231
Methodname
(self)
mPLUG-Owl3/evaluation/tasks/task_define/registry.py:278
Methodname
(self)
mPLUG-Owl/pipeline/data_utils/registry.py:278
Functionnew_func
(*args, **kwargs)
mPLUG-Owl3/evaluation/tasks/task_define/registry.py:47
Functionnew_func
(*args, **kwargs)
mPLUG-Owl/pipeline/data_utils/registry.py:47
Functionnone_level_to_args
(level)
mPLUG-Owl/pipeline/data_utils/randaugment.py:248
Methodopen
(self, path, mode='r')
mPLUG-Owl/serve/io_utils.py:79
Methodopen
(self, full_path, mode='r')
mPLUG-Owl/serve/io_utils.py:179
Functionparse_multi_choice_response
Parse the prediction from the generated response. Return the predicted index e.g., A, B, C, D.
mPLUG-Owl2/mplug_owl2/evaluate/evaluate_mmmu.py:72
Functionparse_multi_choice_response
Parse the prediction from the generated response. Return the predicted index e.g., A, B, C, D.
mPLUG-Owl3/evaluation/tasks/task_define/qbench.py:181
Functionparse_open_response
Parse the prediction from the generated response. Return a list of predicted strings or numbers.
mPLUG-Owl3/evaluation/tasks/task_define/qbench.py:293
Functionpermute
(w, skip_permute=skip_permute)
mPLUG-Owl2/mplug_owl2/model/convert_mplug_owl2_weight_to_hf.py:104
Functionposterize_func
same output as PIL.ImageOps.posterize
mPLUG-Owl/pipeline/data_utils/randaugment.py:180
Methodpostprocess
(self, line: StandardData)
mPLUG-Owl3/evaluation/tasks/task_define/llava_interleave_bench.py:219
Methodpostprocess
(self, line: StandardData)
mPLUG-Owl3/evaluation/tasks/task_define/mmbench.py:213
Methodpostprocess
(self, line: StandardData)
mPLUG-Owl3/evaluation/tasks/task_define/mmbench.py:281
Methodpostprocess
(self, line: StandardData)
mPLUG-Owl3/evaluation/tasks/task_define/mmbench.py:353
Methodpostprocess
(self, line: StandardData)
mPLUG-Owl3/evaluation/tasks/task_define/mmbench.py:394
Methodpostprocess
(self, line: StandardData)
mPLUG-Owl3/evaluation/tasks/task_define/mmbench.py:438
Methodpostprocess
(self, line: StandardData)
mPLUG-Owl3/evaluation/tasks/task_define/mvbench.py:89
Methodpostprocess
(self, line: StandardData)
mPLUG-Owl3/evaluation/tasks/task_define/base.py:121
Methodpostprocess
(self, line: StandardData)
mPLUG-Owl3/evaluation/tasks/task_define/qbench.py:138
Methodpostprocess
(self, line: StandardData)
mPLUG-Owl3/evaluation/tasks/task_define/next_qa.py:73
Methodpostprocess
(self, line: StandardData)
mPLUG-Owl3/evaluation/tasks/task_define/next_qa.py:241
Methodpostprocess
(self, line: StandardData)
mPLUG-Owl3/evaluation/tasks/task_define/next_qa.py:372
Methodpostprocess
(self, line: StandardData)
mPLUG-Owl3/evaluation/tasks/task_define/next_qa.py:549
Methodpostprocess
Parameters: y: List of tuples representing the message and response pairs. Each message and response should be a string, which ma
mPLUG-Owl/serve/gradio_patch.py:122
Methodprepare_inputs_for_generation
( self, input_ids, past_key_values=None, attention_mask=None, inputs_embeds=None, **kwargs )
mPLUG-Owl2/mplug_owl2/model/modeling_mplug_owl2.py:295
Methodprepare_inputs_for_generation
( self, input_ids, past_key_values=None, inputs_embeds=None, **kwargs )
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:1010
Methodprepare_inputs_for_generation
( self, input_ids, pixel_values=None, video_pixel_values=None, past_key_values=None, attention
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1761
Methodprepare_inputs_for_generation
( self, input_ids, pixel_values=None, past_key_values=None, attention_mask=None, **model_kwargs )
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:1574
Functionprint_rank_0
If distributed is initialized, print only on rank 0.
mPLUG-Owl/pipeline/utils.py:7
Methodread_frame
(self, video_path, bound=None, fps=3)
mPLUG-Owl3/evaluation/tasks/task_define/mvbench.py:268
Functionread_frames_gif
(video_path, num_frames=4, sample='rand')
mPLUG-Owl3/evaluation/tasks/task_define/video_utils.py:136
Functionread_from_tar
(tar_file, bucket=None, content=None, ext_name='.mp4')
mPLUG-Owl3/evaluation/tasks/task_define/video_utils.py:150
Methodread_gif
(self, video_path, bound=None, fps=25)
mPLUG-Owl3/evaluation/tasks/task_define/mvbench.py:254
← previousnext →801–900 of 946, ranked by callers