MCPcopy Create free account

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

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

↓ 51 callersMethodinfo
Print information about the VQA annotation file. :return:
mPLUG-Owl2/mplug_owl2/evaluate/vqa.py:73
↓ 41 callersMethodget
Get the registry record. Args: key (str): The class name in string format. Returns: class: The corresponding
mPLUG-Owl/pipeline/data_utils/registry.py:293
↓ 38 callersMethodupdate
( value: Any | Literal[_Keywords.NO_VALUE] | None = _Keywords.NO_VALUE, label: str | None = No
mPLUG-Owl/serve/gradio_patch.py:83
↓ 25 callersMethodto_gradio_chatbot
(self)
mPLUG-Owl/serve/conversation.py:102
↓ 24 callersMethodfrom_pretrained
(cls, pretrained_model_name_or_path: Union[str, os.PathLike], **kwargs)
mPLUG-Owl2/mplug_owl2/model/configuration_mplug_owl2.py:255
↓ 23 callersMethodopen
(self, path: str, mode: str)
mPLUG-Owl/serve/io_utils.py:24
↓ 23 callersMethodto_gradio_chatbot
(self)
mPLUG-Owl2/mplug_owl2/conversation.py:172
↓ 19 callersMethoddecode
This method forwards all its arguments to CLIPTokenizerFast's [`~PreTrainedTokenizer.decode`]. Please refer to the docstring of this
mPLUG-Owl/mplug_owl/processing_mplug_owl.py:60
↓ 16 callersMethod__init__
(self, config)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:329
↓ 16 callersMethodget
Get the registry record. Args: key (str): The class name in string format. Returns: class: The corresponding
mPLUG-Owl3/evaluation/tasks/task_define/registry.py:293
↓ 15 callersMethod__init__
(self, config)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:277
↓ 15 callersMethodcopy
(self)
mPLUG-Owl2/mplug_owl2/conversation.py:203
↓ 15 callersMethodget_model
(self)
mPLUG-Owl2/mplug_owl2/model/modeling_mplug_owl2.py:58
↓ 15 callersFunctiontokenizer_image_token
(prompt, tokenizer, image_token_index=IMAGE_TOKEN_INDEX, return_tensors=None)
mPLUG-Owl2/mplug_owl2/mm_utils.py:53
↓ 14 callersMethodfrom_pretrained
(cls, pretrained_model_name_or_path: Union[str, os.PathLike], **kwargs)
mPLUG-Owl/mplug_owl/configuration_mplug_owl.py:111
↓ 13 callersMethodto_dict
Serializes this instance to a Python dictionary. Override the default [`~PretrainedConfig.to_dict`]. Returns: `Dict[str,
mPLUG-Owl/mplug_owl/configuration_mplug_owl.py:286
↓ 12 callersMethod__init__
(self, config)
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:238
↓ 12 callersMethodappend_message
(self, role, message)
mPLUG-Owl2/mplug_owl2/conversation.py:119
↓ 12 callersMethodcopy
(self, src: str, dst: str)
mPLUG-Owl/serve/io_utils.py:33
↓ 11 callersMethodexists
(self, path: str)
mPLUG-Owl/serve/io_utils.py:27
↓ 9 callersMethod_check_path
(self, path)
mPLUG-Owl/serve/io_utils.py:73
↓ 9 callersMethodabspath
(self, path)
mPLUG-Owl/serve/io_utils.py:138
↓ 9 callersMethodget_images
(self, return_pil=False)
mPLUG-Owl2/mplug_owl2/conversation.py:122
↓ 8 callersMethod__init__
(self, config)
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:565
↓ 8 callersMethod_split
(self, path)
mPLUG-Owl/serve/io_utils.py:171
↓ 8 callersFunctionload_pretrained_model
(model_path, model_base, model_name, load_8bit=False, load_4bit=False, device_map="auto", device="cuda", **kwa
mPLUG-Owl2/mplug_owl2/model/builder.py:26
↓ 8 callersFunctionmake_text
(text)
mPLUG-Owl3/gradio_demo.py:209
↓ 8 callersMethodmakedirs
(self, path: str, exist_ok=True)
mPLUG-Owl/serve/io_utils.py:36
↓ 8 callersMethodprocess
(self, answer)
mPLUG-Owl3/evaluation/tasks/task_define/llava_interleave_bench.py:124
↓ 8 callersFunctionprocess_images
(images, image_processor, model_cfg=None)
mPLUG-Owl2/mplug_owl2/mm_utils.py:29
↓ 7 callersMethodgenerate
( self, inputs: Optional[torch.Tensor] = None, generation_config: Optional[GenerationC
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:1180
↓ 6 callersMethodabspath
(self, path: str)
mPLUG-Owl/serve/io_utils.py:51
↓ 6 callersFunctionapply_rotary_pos_emb
Apply rotary embedding to the first rotary_dim of the iput Arguments: t (tensor(batch_size, seq_len, n_head, head_dim)): the input
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:1279
↓ 6 callersFunctionget_model_name_from_path
(model_path)
mPLUG-Owl2/mplug_owl2/mm_utils.py:75
↓ 6 callersMethodget_save_dir
(self)
mPLUG-Owl3/evaluation/tasks/task_define/base.py:175
↓ 6 callersMethodwrite
(self, buf)
mPLUG-Owl2/mplug_owl2/utils.py:73
↓ 5 callersFunctionbuild_logger
(logger_name, logger_filename)
mPLUG-Owl2/mplug_owl2/utils.py:17
↓ 5 callersMethodembed_tokens
(self, input_ids)
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:740
↓ 5 callersMethodget_images
(self, log_dir=None)
mPLUG-Owl/serve/conversation.py:76
↓ 5 callersMethodget_prompt
(self)
mPLUG-Owl2/mplug_owl2/conversation.py:30
↓ 5 callersMethodto_dict
Serializes this instance to a Python dictionary. Override the default [`~PretrainedConfig.to_dict`]. Returns: `Dict[str,
mPLUG-Owl/mplug_owl_video/configuration_mplug_owl.py:284
↓ 4 callersMethod__init__
(self, config)
mPLUG-Owl2/mplug_owl2/model/modeling_mplug_owl2.py:34
↓ 4 callersMethod__init__
( self, vocab_size=32000, hidden_size=4096, intermediate_size=11008, n
mPLUG-Owl2/mplug_owl2/model/configuration_mplug_owl2.py:99
↓ 4 callersMethod__init__
(self, ds_name, **kwargs)
mPLUG-Owl3/evaluation/tasks/task_define/mmbench.py:242
↓ 4 callersMethod__init__
(self, ds_name, num_frames=16, **kwargs)
mPLUG-Owl3/evaluation/tasks/task_define/next_qa.py:213
↓ 4 callersMethodappend_message
(self, role, message)
mPLUG-Owl/serve/conversation.py:55
↓ 4 callersFunctioncreate_custom_forward
(module)
mPLUG-Owl2/mplug_owl2/model/modeling_llama2.py:320
↓ 4 callersMethoddict
(self)
mPLUG-Owl2/mplug_owl2/conversation.py:214
↓ 4 callersFunctionencode_image
(image)
mPLUG-Owl3/gradio_demo.py:155
↓ 4 callersFunctionenhance_level_to_args
(MAX_LEVEL)
mPLUG-Owl/pipeline/data_utils/randaugment.py:209
↓ 4 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:63
↓ 4 callersMethodget_index
(self, bound, fps, max_frame, first_idx=0)
mPLUG-Owl3/evaluation/tasks/task_define/mvbench.py:227
↓ 4 callersFunctionget_length_grouped_indices
(lengths, batch_size, world_size, generator=None, merge=True)
mPLUG-Owl2/mplug_owl2/train/mplug_owl2_trainer.py:88
↓ 4 callersMethodget_prompt
(self)
mPLUG-Owl/serve/conversation.py:27
↓ 4 callersMethodisdir
(self, path: str)
mPLUG-Owl/serve/io_utils.py:45
↓ 4 callersMethodisfile
(self, path: str)
mPLUG-Owl/serve/io_utils.py:48
↓ 4 callersMethodlistdir
(self, path: str, recursive=False, full_path=False, contains=None)
mPLUG-Owl/serve/io_utils.py:42
↓ 4 callersFunctionread_json
(path)
mPLUG-Owl2/mplug_owl2/model/convert_mplug_owl2_weight_to_hf.py:69
↓ 4 callersMethodregister
(options)
mPLUG-Owl/serve/io_utils.py:21
↓ 4 callersMethodremove
(self, path: str)
mPLUG-Owl/serve/io_utils.py:39
↓ 4 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
mPLUG-Owl2/mplug_owl2/model/modeling_llama2.py:22
↓ 3 callersMethod_register_module
(self, module, module_name=None, force=False)
mPLUG-Owl3/evaluation/tasks/task_define/registry.py:343
↓ 3 callersMethod_register_module
(self, module, module_name=None, force=False)
mPLUG-Owl/pipeline/data_utils/registry.py:343
↓ 3 callersMethod_split_heads
(self, tensor, num_heads, attn_head_size)
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:396
↓ 3 callersFunctionafter_process_image
(prompt)
mPLUG-Owl/serve/serve_utils.py:90
↓ 3 callersFunctionbuild_from_cfg
Build a module from config dict when it is a class configuration, or call a function from config dict when it is a function configuration. Ex
mPLUG-Owl3/evaluation/tasks/task_define/registry.py:92
↓ 3 callersFunctioncheck_mm_type
(mm_file)
mPLUG-Owl3/gradio_demo.py:190
↓ 3 callersFunctioncreate_component
(params, comp='Slider')
mPLUG-Owl3/gradio_demo.py:89
↓ 3 callersFunctioncreate_custom_forward
(module)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1876
↓ 3 callersFunctioncreate_custom_forward
(module)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:1684
↓ 3 callersFunctioncreate_multimodal_input
(upload_image_disabled=False, upload_video_disabled=False)
mPLUG-Owl3/gradio_demo.py:113
↓ 3 callersFunctionexpand2square
(pil_img, background_color)
mPLUG-Owl2/mplug_owl2/mm_utils.py:15
↓ 3 callersFunctionextract_answer
(model_output)
mPLUG-Owl3/evaluation/tasks/task_define/qbench.py:45
↓ 3 callersMethodgenerate
Overrides `generate` function to be able to use the model as a conditional generator. Args: pixel_values (`torch.FloatTe
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:1473
↓ 3 callersMethodget_input_embeddings
(self)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:1144
↓ 3 callersMethodget_worker_status
(self, worker_name: str)
mPLUG-Owl2/mplug_owl2/serve/controller.py:88
↓ 3 callersFunctionmaybe_zero_3
(param, ignore_status=False, name=None)
mPLUG-Owl2/mplug_owl2/train/train.py:104
↓ 3 callersFunctionnormalize_str
Normalize the str to lower case and make them float numbers if possible.
mPLUG-Owl2/mplug_owl2/evaluate/evaluate_mmmu.py:138
↓ 3 callersFunctionnormalize_str
Normalize the str to lower case and make them float numbers if possible.
mPLUG-Owl3/evaluation/tasks/task_define/qbench.py:247
↓ 3 callersFunctionpost_process_code
(code)
mPLUG-Owl/serve/model_utils.py:21
↓ 3 callersMethodpredict
(self, data)
mPLUG-Owl/serve/model_worker.py:139
↓ 3 callersMethodtranspose_for_scores
(self, x)
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:532
↓ 3 callersMethodtranspose_for_scores
(self, x)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:777
↓ 3 callersMethodtranspose_for_scores
(self, x)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:713
↓ 3 callersFunctionvote_last_response
(state, vote_type, model_selector, request: gr.Request)
mPLUG-Owl2/mplug_owl2/serve/gradio_web_server.py:83
↓ 3 callersFunctionvote_last_response
(state, vote_type, request: gr.Request)
mPLUG-Owl2/mplug_owl2/local_serve/local_web_server.py:47
↓ 3 callersFunctionvote_last_response
(state, vote_type, model_selector, request: gr.Request)
mPLUG-Owl/serve/serve_utils.py:44
↓ 3 callersFunctionwrite_json
(text, path)
mPLUG-Owl2/mplug_owl2/model/convert_mplug_owl2_weight_to_hf.py:74
↓ 2 callersMethod__init__
( self, vision_config=None, visual_abstractor_config=None, text_config=None, num_query_tokens=64, **kw
mPLUG-Owl/mplug_owl_video/configuration_mplug_owl.py:223
↓ 2 callersMethod__init__
( self, vision_config=None, visual_abstractor_config=None, text_config=None, num_query_tokens=64, **kw
mPLUG-Owl/mplug_owl/configuration_mplug_owl.py:225
↓ 2 callersMethod_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
mPLUG-Owl2/mplug_owl2/model/modeling_attn_mask_utils.py:150
↓ 2 callersFunction_import_flash_attn
()
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:78
↓ 2 callersMethod_make_causal_mask
Make causal mask used for bi-directional self-attention.
mPLUG-Owl2/mplug_owl2/model/modeling_attn_mask_utils.py:120
↓ 2 callersMethod_split_name
(self, path)
mPLUG-Owl/serve/io_utils.py:164
↓ 2 callersFunction_to_float
(text: str)
mPLUG-Owl3/evaluation/tasks/task_define/vqa.py:375
↓ 2 callersFunction_tokenize_fn
Tokenize a list of strings.
mPLUG-Owl2/mplug_owl2/train/train.py:217
↓ 2 callersFunctionbuild_processors
(processors_cfg)
mPLUG-Owl/pipeline/data_utils/processors/builder.py:8
↓ 2 callersFunctionchat
(img, msgs, ctx, params=None, vision_hidden_states=None)
mPLUG-Owl3/gradio_demo.py:118
↓ 2 callersFunctioncheck_answer
(predict, gt_answer)
mPLUG-Owl3/evaluation/tasks/task_define/mvbench.py:109
↓ 2 callersFunctioncheck_has_videos
(_question)
mPLUG-Owl3/gradio_demo.py:234
next →1–100 of 946, ranked by callers