MCPcopy Create free account

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

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

↓ 1 callersFunctionmain
(args)
mPLUG-Owl2/mplug_owl2/serve/cli.py:35
↓ 1 callersFunctionmain
()
mPLUG-Owl2/mplug_owl2/model/convert_mplug_owl2_weight_to_hf.py:354
↓ 1 callersFunctionmain
()
mPLUG-Owl/pipeline/train.py:130
↓ 1 callersFunctionmake_supervised_data_module
Make dataset and collator for supervised fine-tuning.
mPLUG-Owl2/mplug_owl2/train/train.py:623
↓ 1 callersFunctionmapping_to_annotation
(results, raw_annotation)
mPLUG-Owl2/mplug_owl2/evaluate/evaluate_mmbench.py:51
↓ 1 callersFunctionmapping_to_annotation
(results, raw_annotation)
mPLUG-Owl3/evaluation/tasks/task_define/mmbench.py:126
↓ 1 callersFunctionmaybe_zero_3
(param, ignore_status=False, name=None)
mPLUG-Owl2/mplug_owl2/train/mplug_owl2_trainer.py:18
↓ 1 callersMethodnext_rand
(self)
mPLUG-Owl2/mplug_owl2/train/train.py:528
↓ 1 callersMethodpad_input
(self, hidden_states, indices, batch, seqlen)
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:171
↓ 1 callersFunctionparse_open_response
Parse the prediction from the generated response. Return a list of predicted strings or numbers.
mPLUG-Owl2/mplug_owl2/evaluate/evaluate_mmmu.py:184
↓ 1 callersMethodparse_pred_ans
(self, pred_ans)
mPLUG-Owl2/mplug_owl2/evaluate/evaluate_mme.py:44
↓ 1 callersFunctionposterize_level_to_args
(MAX_LEVEL)
mPLUG-Owl/pipeline/data_utils/randaugment.py:252
↓ 1 callersMethodpostprocess
(self, line: StandardData)
mPLUG-Owl3/evaluation/tasks/task_define/vqa.py:192
↓ 1 callersFunctionpreprocess
Given a list of sources, each is a conversation list. This transform: 1. Add signal '### ' at the beginning each sentence, with end signal '\
mPLUG-Owl2/mplug_owl2/train/train.py:401
↓ 1 callersFunctionpreprocess_multimodal
( sources: Sequence[str], data_args: DataArguments )
mPLUG-Owl2/mplug_owl2/train/train.py:276
↓ 1 callersFunctionpreprocess_plain
( sources: Sequence[str], tokenizer: transformers.PreTrainedTokenizer, )
mPLUG-Owl2/mplug_owl2/train/train.py:379
↓ 1 callersFunctionpreprocess_v1
( sources, tokenizer: transformers.PreTrainedTokenizer, has_image: bool = False )
mPLUG-Owl2/mplug_owl2/train/train.py:297
↓ 1 callersFunctionpretty_print_semaphore
(semaphore)
mPLUG-Owl2/mplug_owl2/utils.py:123
↓ 1 callersMethodprocessDigitArticle
(self, inText)
mPLUG-Owl2/mplug_owl2/evaluate/vqa_eval.py:265
↓ 1 callersMethodprocessDigitArticle
(self, inText)
mPLUG-Owl3/evaluation/vqa_utils/vqa_eval.py:261
↓ 1 callersMethodprocessPunctuation
(self, inText)
mPLUG-Owl3/evaluation/tasks/task_define/llava_interleave_bench.py:112
↓ 1 callersMethodprocess_data
(self, data, processor=None)
mPLUG-Owl/pipeline/data_utils/xgpt3_dataset.py:72
↓ 1 callersMethodprocess_digit_article
(self, in_text)
mPLUG-Owl2/mplug_owl2/evaluate/vqa_eval.py:528
↓ 1 callersMethodprocess_digit_article
(self, in_text)
mPLUG-Owl3/evaluation/vqa_utils/evalai_processor.py:197
↓ 1 callersMethodprocess_punctuation
(self, in_text)
mPLUG-Owl2/mplug_owl2/evaluate/vqa_eval.py:516
↓ 1 callersMethodprocess_punctuation
(self, in_text)
mPLUG-Owl3/evaluation/vqa_utils/evalai_processor.py:185
↓ 1 callersMethodprocess_result
(self, outputs)
mPLUG-Owl2/mplug_owl2/evaluate/evaluate_mme.py:107
↓ 1 callersMethodprocess_sample
(self,sample)
mPLUG-Owl3/evaluation/tasks/task_define/llava_interleave_bench.py:136
↓ 1 callersMethodprune_heads
(self, heads)
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:632
↓ 1 callersMethodprune_heads
(self, heads)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:864
↓ 1 callersMethodprune_heads
(self, heads)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:800
↓ 1 callersMethodqa_template
(self, data)
mPLUG-Owl3/evaluation/tasks/task_define/mvbench.py:278
↓ 1 callersFunctionread_frames_decord
(video_path, width=None, height=None, num_frames=8, sample='rand', fix_start=None, max_num_frames=-1, sta
mPLUG-Owl3/evaluation/tasks/task_define/video_utils.py:99
↓ 1 callersMethodreceive_heart_beat
(self, worker_name: str, queue_length: int)
mPLUG-Owl2/mplug_owl2/serve/controller.py:173
↓ 1 callersMethodrefresh_all_workers
(self)
mPLUG-Owl2/mplug_owl2/serve/controller.py:104
↓ 1 callersFunctionrelaxed_correctness
Calculates relaxed correctness. The correctness tolerates certain error ratio defined by max_relative_change. See https://arxiv.org/pdf/2203.
mPLUG-Owl3/evaluation/tasks/task_define/vqa.py:353
↓ 1 callersMethodremove
(self, path)
mPLUG-Owl/serve/io_utils.py:296
↓ 1 callersMethodremove_stable_workers_by_expiration
(self)
mPLUG-Owl2/mplug_owl2/serve/controller.py:183
↓ 1 callersFunctionreplace_llama_attn_with_flash_attn
()
mPLUG-Owl2/mplug_owl2/train/llama_flash_attn_monkey_patch.py:107
↓ 1 callersFunctionrespond
(_question, _chat_bot, _app_cfg, params_form)
mPLUG-Owl3/gradio_demo.py:255
↓ 1 callersFunctionrotate_level_to_args
(MAX_LEVEL, replace_value)
mPLUG-Owl/pipeline/data_utils/randaugment.py:259
↓ 1 callersFunctionsafe_save_model_for_hf_trainer
Collects the state dict and dump to disk.
mPLUG-Owl2/mplug_owl2/train/train.py:173
↓ 1 callersMethodsave_attention_map
(self, attention_map)
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:526
↓ 1 callersMethodsave_attention_map
(self, attention_map)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:771
↓ 1 callersMethodsave_attention_map
(self, attention_map)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:707
↓ 1 callersMethodsave_metrics
(self, metrics)
mPLUG-Owl3/evaluation/tasks/task_define/base.py:190
↓ 1 callersMethodsave_output_results
(self, results_after_post_process: List[Dict], )
mPLUG-Owl3/evaluation/tasks/task_define/base.py:184
↓ 1 callersMethodseek
(self, position)
mPLUG-Owl/serve/io_utils.py:380
↓ 1 callersMethodsetAccuracy
(self, accQA, accQuesType, accAnsType)
mPLUG-Owl2/mplug_owl2/evaluate/vqa_eval.py:280
↓ 1 callersMethodsetAccuracy
(self, accQA, accQuesType, accAnsType)
mPLUG-Owl3/evaluation/vqa_utils/vqa_eval.py:276
↓ 1 callersMethodsetEvalAnsType
(self, quesId, ansType, acc)
mPLUG-Owl2/mplug_owl2/evaluate/vqa_eval.py:306
↓ 1 callersMethodsetEvalAnsType
(self, quesId, ansType, acc)
mPLUG-Owl3/evaluation/vqa_utils/vqa_eval.py:300
↓ 1 callersMethodsetEvalQA
(self, quesId, acc)
mPLUG-Owl2/mplug_owl2/evaluate/vqa_eval.py:298
↓ 1 callersMethodsetEvalQA
(self, quesId, acc)
mPLUG-Owl3/evaluation/vqa_utils/vqa_eval.py:292
↓ 1 callersMethodsetEvalQuesType
(self, quesId, quesType, acc)
mPLUG-Owl2/mplug_owl2/evaluate/vqa_eval.py:301
↓ 1 callersMethodsetEvalQuesType
(self, quesId, quesType, acc)
mPLUG-Owl3/evaluation/vqa_utils/vqa_eval.py:295
↓ 1 callersFunctionset_args
(args)
mPLUG-Owl/pipeline/utils.py:16
↓ 1 callersMethodset_input_embeddings
(self, value)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1233
↓ 1 callersMethodset_input_embeddings
(self, value)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:1147
↓ 1 callersMethodset_output_embeddings
(self, new_embeddings)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1236
↓ 1 callersMethodset_output_embeddings
(self, new_embeddings)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:1150
↓ 1 callersFunctionsolarize_level_to_args
(MAX_LEVEL)
mPLUG-Owl/pipeline/data_utils/randaugment.py:241
↓ 1 callersMethodsplit_scope_key
Split scope and key. The first scope will be split from key. Examples: >>> Registry.split_scope_key('mmdet.ResNet')
mPLUG-Owl3/evaluation/tasks/task_define/registry.py:256
↓ 1 callersMethodsplit_scope_key
Split scope and key. The first scope will be split from key. Examples: >>> Registry.split_scope_key('mmdet.ResNet')
mPLUG-Owl/pipeline/data_utils/registry.py:256
↓ 1 callersFunctionsplit_to_even_chunks
Split a list of indices into `chunks` chunks of roughly equal lengths.
mPLUG-Owl2/mplug_owl2/train/mplug_owl2_trainer.py:38
↓ 1 callersMethodto_4d
Converts 2D attention mask to 4D attention mask by expanding mask to (bsz, head_dim=1, query_length, key_value_length) shape and by a
mPLUG-Owl2/mplug_owl2/model/modeling_attn_mask_utils.py:77
↓ 1 callersMethodto_json
(self,)
mPLUG-Owl3/evaluation/tasks/task_define/base.py:32
↓ 1 callersFunctiontokenize_prompts
Tokenize prompts and make them avaiable on all ranks.
mPLUG-Owl/mplug_owl_video/processing_mplug_owl.py:148
↓ 1 callersFunctiontokenize_prompts
Tokenize prompts and make them avaiable on all ranks.
mPLUG-Owl/mplug_owl/processing_mplug_owl.py:117
↓ 1 callersFunctiontrain_valid_test_datasets_provider
Build train and valid datasets.
mPLUG-Owl/pipeline/data_utils/__init__.py:4
↓ 1 callersFunctionuniform_sample
(l, n)
mPLUG-Owl3/gradio_demo.py:170
↓ 1 callersMethodunpad_input
(self, hidden_states, attention_mask)
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:162
↓ 1 callersMethodupdateProgress
(self, progress)
mPLUG-Owl2/mplug_owl2/evaluate/vqa_eval.py:311
↓ 1 callersMethodupdateProgress
(self, progress)
mPLUG-Owl3/evaluation/vqa_utils/vqa_eval.py:305
↓ 1 callersMethodupdate_rotary_pos_emb_cache
(self, seqlen, ntk_alpha=1.0)
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:1242
↓ 1 callersMethodword_tokenize
(self, word)
mPLUG-Owl2/mplug_owl2/evaluate/vqa_eval.py:511
↓ 1 callersMethodword_tokenize
(self, word)
mPLUG-Owl3/evaluation/vqa_utils/evalai_processor.py:180
↓ 1 callersMethodworker_api_generate_stream
(self, params)
mPLUG-Owl2/mplug_owl2/serve/controller.py:193
↓ 1 callersMethodworker_api_get_status
(self)
mPLUG-Owl2/mplug_owl2/serve/controller.py:220
↓ 1 callersFunctionwrite_model
(model_path, input_base_path, model_size, num_input_shards=1
mPLUG-Owl2/mplug_owl2/model/convert_mplug_owl2_weight_to_hf.py:79
Method__call__
(self, output_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs)
mPLUG-Owl2/mplug_owl2/mm_utils.py:101
Method__call__
(self, item)
mPLUG-Owl2/mplug_owl2/evaluate/vqa_eval.py:543
Method__call__
(self, instances: Sequence[Dict])
mPLUG-Owl2/mplug_owl2/train/train.py:595
Method__call__
(self, item)
mPLUG-Owl3/evaluation/vqa_utils/evalai_processor.py:212
Method__call__
(self, image_url, auto_retry=False, raise_error=False)
mPLUG-Owl3/evaluation/tasks/task_define/base.py:53
Method__call__
(self, text=None, images=None, videos=None, num_frames=4, return_tensors=None, **kwargs)
mPLUG-Owl/mplug_owl_video/processing_mplug_owl.py:44
Method__call__
(self, input_ids, scores)
mPLUG-Owl/serve/model_utils.py:36
Method__call__
(self, text=None, images=None, return_tensors=None, **kwargs)
mPLUG-Owl/mplug_owl/processing_mplug_owl.py:26
Method__call__
(self, img)
mPLUG-Owl/pipeline/data_utils/randaugment.py:327
Method__call__
(self, image, text)
mPLUG-Owl/pipeline/data_utils/processors/default_processor.py:23
Method__call__
(self, image, text)
mPLUG-Owl/pipeline/data_utils/processors/caption_processor.py:34
Method__contains__
(self, key)
mPLUG-Owl3/evaluation/tasks/task_define/registry.py:220
Method__contains__
(self, key)
mPLUG-Owl/pipeline/data_utils/registry.py:220
Method__enter__
(self)
mPLUG-Owl/serve/model_utils.py:88
Method__enter__
(self)
mPLUG-Owl/serve/io_utils.py:383
Method__enter__
(self)
mPLUG-Owl/serve/io_utils.py:406
Method__enter__
(self)
mPLUG-Owl/serve/io_utils.py:426
Method__exit__
(self, exc_type, exc_val, exc_tb)
mPLUG-Owl/serve/model_utils.py:91
Method__exit__
(self, *args)
mPLUG-Owl/serve/io_utils.py:386
Method__exit__
(self, *args)
mPLUG-Owl/serve/io_utils.py:409
← previousnext →301–400 of 946, ranked by callers