MCPcopy Create free account

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

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

Method__str__
(self)
mPLUG-Owl3/evaluation/tasks/task_define/mvbench.py:202
Method__str__
(self)
mPLUG-Owl/serve/serve_utils.py:36
Method_callback
(val)
mPLUG-Owl/serve/model_utils.py:57
Function_create_4d_causal_attention_mask
Creates a causal 4D mask of shape `(batch_size, 1, query_length, key_value_length)` Args: input_shape (`tuple(int)` or `list(int)` o
mPLUG-Owl2/mplug_owl2/model/modeling_attn_mask_utils.py:220
Method_get_local_indices
(total_size, world_size, rank)
mPLUG-Owl3/evaluation/tasks/general_task_pipeline2.py:76
Method_get_train_sampler
(self)
mPLUG-Owl2/mplug_owl2/train/mplug_owl2_trainer.py:135
Method_init_weights
Initialize the weights.
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:659
Method_init_weights
Initialize the weights
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:422
Method_init_weights
Initialize the weights
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:363
Function_prepare_4d_attention_mask
Creates a non-causal 4D mask of shape `(batch_size, 1, query_length, key_value_length)` from a 2D mask of shape `(batch_size, key_value_lengt
mPLUG-Owl2/mplug_owl2/model/modeling_attn_mask_utils.py:204
Function_prepare_4d_causal_attention_mask
Creates a causal 4D mask of shape `(batch_size, 1, query_length, key_value_length)` from a 2D mask of shape `(batch_size, key_value_length)`
mPLUG-Owl2/mplug_owl2/model/modeling_attn_mask_utils.py:164
Function_prepare_decoder_attention_mask
( self, attention_mask, input_shape, inputs_embeds, past_key_values_length )
mPLUG-Owl2/mplug_owl2/train/llama_flash_attn_monkey_patch.py:100
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:792
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1024
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:959
Method_register
(module)
mPLUG-Owl3/evaluation/tasks/task_define/registry.py:418
Method_register
(module)
mPLUG-Owl/pipeline/data_utils/registry.py:418
Method_reorder_cache
( past_key_values: Tuple[Tuple[torch.Tensor]], beam_idx: torch.Tensor )
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:1100
Method_save_checkpoint
(self, model, trial, metrics=None)
mPLUG-Owl2/mplug_owl2/train/mplug_owl2_trainer.py:239
Method_set_gradient_checkpointing
(self, module, value=False)
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:682
Method_set_gradient_checkpointing
(self, module, value=False)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:445
Method_set_gradient_checkpointing
(self, module, value=False)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:386
Method_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:149
Method_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
mPLUG-Owl2/mplug_owl2/model/modeling_llama2.py:89
Method_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:245
Method_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:188
Method_tie_weights
(self)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1248
Method_tie_weights
(self)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1401
Method_tie_weights
(self)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:1162
Method_tie_weights
(self)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:1300
Method_worker_init_fn
(self, worker_id)
mPLUG-Owl/pipeline/utils.py:35
Methodabspath
(self, path)
mPLUG-Owl/serve/io_utils.py:323
Functionaccuracy_metric
(sample_list, preds)
mPLUG-Owl3/evaluation/tasks/task_define/mvbench.py:130
Functionadd_text
(state, text, image, image_process_mode, request: gr.Request)
mPLUG-Owl2/mplug_owl2/serve/gradio_web_server.py:129
Functionadd_text
(state, text, image, image_process_mode, request: gr.Request)
mPLUG-Owl2/mplug_owl2/local_serve/local_web_server.py:92
Functionadd_text
(state, text, image, video, request: gr.Request)
mPLUG-Owl/serve/serve_utils.py:69
Functionadd_text_http_bot
( state, text, image, video, max_output_tokens, temperature, top_k, top_p, num_beams, no_repeat_
mPLUG-Owl/serve/web_server.py:97
Functionapi_warning_wrapper
(old_func)
mPLUG-Owl3/evaluation/tasks/task_define/registry.py:44
Functionapi_warning_wrapper
(old_func)
mPLUG-Owl/pipeline/data_utils/registry.py:44
Methodauthorize
(self, path)
mPLUG-Owl/serve/io_utils.py:328
Functionauto_upgrade
(config)
mPLUG-Owl2/mplug_owl2/model/utils.py:4
Functionautocontrast_func
same output as PIL.ImageOps.autocontrast
mPLUG-Owl/pipeline/data_utils/randaugment.py:11
Methodbatch_decode
This method forwards all its arguments to CLIPTokenizerFast's [`~PreTrainedTokenizer.batch_decode`]. Please refer to the docstring of
mPLUG-Owl/mplug_owl_video/processing_mplug_owl.py:84
Functionbatchify
(batch)
mPLUG-Owl/pipeline/utils.py:39
Functionbloom_forward
( self, input_ids: Optional[torch.LongTensor] = None, past_key_values: Optional[Tuple[Tuple[torch.
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1786
Functionbloom_forward
( self, input_ids: Optional[torch.LongTensor] = None, past_key_values: Optional[Tuple[Tuple[torch.
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:1594
Functionbrightness_func
same output as PIL.ImageEnhance.Contrast
mPLUG-Owl/pipeline/data_utils/randaugment.py:123
Methodbuild
(self, *args, **kwargs)
mPLUG-Owl3/evaluation/tasks/task_define/registry.py:318
Methodbuild
(self, *args, **kwargs)
mPLUG-Owl/pipeline/data_utils/registry.py:318
Functionbuild_evaluation_task
(task_name, **kwargs)
mPLUG-Owl3/evaluation/tasks/task_define/base.py:199
Methodbuild_submission
(self, merged_outputs, saver)
mPLUG-Owl3/evaluation/tasks/task_define/mmbench.py:221
Methodbuild_submission
(self, merged_outputs, saver)
mPLUG-Owl3/evaluation/tasks/task_define/mmbench.py:445
Methodbuild_submission
(self, merged_lines: List[Dict], saver)
mPLUG-Owl3/evaluation/tasks/task_define/base.py:124
Methodcallback
(i, n)
mPLUG-Owl/serve/io_utils.py:251
Functioncausal_model_forward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing the masked l
mPLUG-Owl2/mplug_owl2/model/modeling_llama2.py:370
Methodchildren
(self)
mPLUG-Owl3/evaluation/tasks/task_define/registry.py:290
Methodchildren
(self)
mPLUG-Owl/pipeline/data_utils/registry.py:290
Functionclear
(txt_message, chat_bot, app_session)
mPLUG-Owl3/gradio_demo.py:413
Functionclear_history
(request: gr.Request)
mPLUG-Owl2/mplug_owl2/serve/gradio_web_server.py:123
Functionclear_history
(request: gr.Request)
mPLUG-Owl2/mplug_owl2/local_serve/local_web_server.py:86
Functionclear_history
(request: gr.Request)
mPLUG-Owl/serve/web_server.py:39
Functionclear_history
(request: gr.Request)
mPLUG-Owl/serve/serve_utils.py:64
Functioncollate_fn
(batches, tokenizer)
mPLUG-Owl2/mplug_owl2/evaluate/evaluate_mme.py:172
Functioncollate_fn
(batches, tokenizer)
mPLUG-Owl2/mplug_owl2/evaluate/evaluate_mmbench.py:86
Functioncollate_fn
(batches, tokenizer)
mPLUG-Owl2/mplug_owl2/evaluate/evaluate_vqa.py:55
Functioncollate_fn
(batches, tokenizer)
mPLUG-Owl2/mplug_owl2/evaluate/evaluate_mmmu.py:306
Functioncollate_fn
(inputs, tokenizer)
mPLUG-Owl2/mplug_owl2/evaluate/evaluate_caption.py:56
Functioncollate_fn
(batches)
mPLUG-Owl3/evaluation/tasks/general_task_pipeline2.py:133
Functioncolor_func
same output as PIL.ImageEnhance.Color
mPLUG-Owl/pipeline/data_utils/randaugment.py:88
Functioncompute_intermediate_size
(n)
mPLUG-Owl2/mplug_owl2/model/convert_mplug_owl2_weight_to_hf.py:65
Functioncontrast_func
same output as PIL.ImageEnhance.Contrast
mPLUG-Owl/pipeline/data_utils/randaugment.py:110
Methodcopy
(self)
mPLUG-Owl/serve/conversation.py:139
Methodcopy
(self, src, dst)
mPLUG-Owl/serve/io_utils.py:96
Methodcreate_custom_forward
(module)
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:885
Methodcreate_custom_forward
(module)
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:360
Methodcreate_custom_forward
(module)
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:749
Methodcreate_custom_forward
(module)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:621
Methodcreate_custom_forward
(module)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:981
Methodcreate_custom_forward
(module)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:562
Methodcreate_custom_forward
(module)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:917
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
mPLUG-Owl2/mplug_owl2/train/mplug_owl2_trainer.py:150
Functioncustom_forward
(*inputs)
mPLUG-Owl2/mplug_owl2/model/modeling_llama2.py:321
Functioncustom_forward
(*inputs)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1877
Functioncustom_forward
(*inputs)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:1685
Methodcustom_forward
(*inputs)
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:886
Methodcustom_forward
(*inputs)
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:361
Methodcustom_forward
(*inputs)
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:750
Methodcustom_forward
(*inputs)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:622
Methodcustom_forward
(*inputs)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:982
Methodcustom_forward
(*inputs)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:563
Methodcustom_forward
(*inputs)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:918
Functioncutout_func
(img, pad_size, replace=(0, 0, 0))
mPLUG-Owl/pipeline/data_utils/randaugment.py:195
Functioncutout_level_to_args
(cutout_const, MAX_LEVEL, replace_value)
mPLUG-Owl/pipeline/data_utils/randaugment.py:233
Functiondeprecated_api_warning
A decorator to check if some arguments are deprecate and try to replace deprecate src_arg_name to dst_arg_name. Args: name_dict(dict):
mPLUG-Owl3/evaluation/tasks/task_define/registry.py:33
Functiondeprecated_api_warning
A decorator to check if some arguments are deprecate and try to replace deprecate src_arg_name to dst_arg_name. Args: name_dict(dict):
mPLUG-Owl/pipeline/data_utils/registry.py:33
Functiondetokenize_generations
Detokenize the generated tokens.
mPLUG-Owl/mplug_owl_video/processing_mplug_owl.py:103
Functiondetokenize_generations
Detokenize the generated tokens.
mPLUG-Owl/mplug_owl/processing_mplug_owl.py:72
Methoddict
(self)
mPLUG-Owl/serve/conversation.py:149
Functiondisable_torch_init
Disable the redundant torch default initialization to accelerate model creation.
mPLUG-Owl2/mplug_owl2/utils.py:93
Methoddivide_chunks
(self, l, n=2)
mPLUG-Owl2/mplug_owl2/evaluate/evaluate_mme.py:37
← previousnext →601–700 of 946, ranked by callers