MCPcopy Create free account

hub / github.com/Feng-Hong/WINO-DLLM / functions

Functions4,510 in github.com/Feng-Hong/WINO-DLLM

↓ 343 callersMethodto
r"""Move internal buffers of the ExponentialMovingAverage to `device`. Args: device: like `device` argument to `torch.Tensor.t
MMaDA/lmms_eval/lmms_eval/models/model_mmada/training_utils.py:192
↓ 162 callersMethodupdate
(self, val, n=1)
MMaDA/lmms_eval/lmms_eval/models/model_mmada/utils.py:193
↓ 144 callersMethoddecode
This method forwards all its arguments to CLIPTokenizerFast's [`~PreTrainedTokenizer.decode`]. Please refer to the docstring of thi
MMaDA/lmms_eval/lmms_eval/models/mplug_owl_video/processing_mplug_owl.py:108
↓ 108 callersMethodfrom_pretrained
(cls, path, model_cls)
MMaDA/lmms_eval/lmms_eval/models/model_mmada/training_utils.py:117
↓ 105 callersMethodto
r"""Move internal buffers of the ExponentialMovingAverage to `device`. Args: device: like `device` argument to `torch.Tensor.t
MMaDA/models/training_utils.py:192
↓ 88 callersMethodreadlines
(self, *args, **kwargs)
LLaDA/dataset_utils/eval_correctness_mbpp/execution.py:632
↓ 86 callersMethodgroup
(self)
MMaDA/lmms_eval/lmms_eval/api/group.py:84
↓ 84 callersMethodappend_message
(self, role, message)
MMaDA/lmms_eval/lmms_eval/models/video_chatgpt/video_conversation.py:66
↓ 69 callersMethodencode
(self, pixel_values, return_loss=False)
MMaDA/lmms_eval/lmms_eval/models/model_mmada/modeling_magvitv2.py:416
↓ 68 callersMethodcopy
(self)
MMaDA/lmms_eval/lmms_eval/models/video_chatgpt/video_conversation.py:100
↓ 67 callersFunctiongenerate_submission_file
(file_name, args, subpath="submissions")
MMaDA/lmms_eval/lmms_eval/tasks/_task_utils/file_utils.py:4
↓ 53 callersMethodload
(cls, path)
MMaDA/lmms_eval/lmms_eval/tasks/mmsearch/retrieve_content/tokenization/utils.py:16
↓ 51 callersMethodsave
(self, path)
MMaDA/lmms_eval/lmms_eval/tasks/mmsearch/retrieve_content/tokenization/utils.py:8
↓ 49 callersMethodgenerate
(self, request)
MMaDA/lmms_eval/lmms_eval/models/srt_api.py:167
↓ 44 callersMethodbatch_decode
This method forwards all its arguments to CLIPTokenizerFast's [`~PreTrainedTokenizer.batch_decode`]. Please refer to the docstring
MMaDA/lmms_eval/lmms_eval/models/mplug_owl_video/processing_mplug_owl.py:101
↓ 44 callersFunctiondoc_to_visual
(doc)
MMaDA/lmms_eval/lmms_eval/tasks/iconqa/utils.py:15
↓ 44 callersMethodget_prompt
(self, conv)
MMaDA/lmms_eval/lmms_eval/models/videochat2.py:308
↓ 40 callersMethodget_batched
Generates and yields batches from the reordered array. Parameters: - n (int): The size of each batch. Defaults to 1.
MMaDA/lmms_eval/lmms_eval/utils.py:889
↓ 39 callersMethodget_original
Restores the original order of elements from the reordered list. Parameters: - newarr (List): The reordered array.
MMaDA/lmms_eval/lmms_eval/utils.py:927
↓ 38 callersMethodadd_partial
(self, attr, req, res)
MMaDA/lmms_eval/lmms_eval/api/model.py:144
↓ 31 callersMethodcreate
(cls, index, value, numbering_type=NUMBERING_TYPES[1], small_unit=False)
MMaDA/lmms_eval/lmms_eval/tasks/librispeech/cn_tn.py:431
↓ 30 callersMethodmatch
Return the mean squared error.
MMaDA/lmms_eval/lmms_eval/tasks/megabench/metrics/scoring/mse.py:13
↓ 24 callersMethodrun
(requests)
MMaDA/lmms_eval/lmms_eval/models/srt_api.py:296
↓ 22 callersMethodparse
Parse the JSON object, including nested JSON strings.
MMaDA/lmms_eval/lmms_eval/tasks/megabench/metrics/parsing/json_parse.py:9
↓ 20 callersFunctionprocess_images
(images, size=1008)
MMaDA/lmms_eval/lmms_eval/tasks/mmvetv2/utils.py:125
↓ 20 callersMethodtie_weights
(self)
MMaDA/lmms_eval/lmms_eval/models/model_mmada/modeling_llada.py:1538
↓ 19 callersMethodpreprocess
(self, expression1, expression2)
MMaDA/lmms_eval/lmms_eval/tasks/olympiadbench/olympiadbench_evals.py:284
↓ 19 callersMethodupdate
(self, val, n=1)
MMaDA/models/utils.py:193
↓ 17 callersMethodtokenize
Tokenizes table cells
MMaDA/lmms_eval/lmms_eval/tasks/ocrbench_v2/TEDS_metric.py:83
↓ 16 callersMethod__init__
(self, config)
MMaDA/lmms_eval/lmms_eval/models/mplug_owl_video/modeling_mplug_owl.py:320
↓ 15 callersMethodcompute_score
Compute the evaluation score for keypoint estimation. Args: pred_keypoints (list or np.ndarray): List or array of predic
MMaDA/lmms_eval/lmms_eval/tasks/megabench/metrics/scoring/coordinate_sequence_match.py:13
↓ 15 callersFunctionread_video_pyav
Read video using the PyAV library. Args: video_path (str): The path to the video file. num_frm (int, optional): The max
MMaDA/lmms_eval/lmms_eval/models/model_utils/load_video.py:85
↓ 14 callersMethodread
(self, *args, **kwargs)
LLaDA/dataset_utils/eval_correctness_mbpp/execution.py:626
↓ 14 callersMethodto_dict
dumps the current config as a dictionary object, as a printable format. null fields will not be printed. Used for dumping results alon
MMaDA/lmms_eval/lmms_eval/api/task.py:160
↓ 13 callersFunction_get_library_root_logger
()
MMaDA/lmms_eval/lmms_eval/models/model_mmada/logging.py:69
↓ 13 callersFunction_get_library_root_logger
()
MMaDA/models/logging.py:69
↓ 13 callersFunctionget_ap
(predictions, labels, sim_threhold, tolerance, separator="\\t", delimiter="\\n", easy=1)
MMaDA/lmms_eval/lmms_eval/tasks/ocrbench_v2/TEDS_metric.py:772
↓ 12 callersFunctioncast_to_dict
Try to cast an object as a dict.
MMaDA/lmms_eval/lmms_eval/tasks/megabench/metrics/scoring/common/conversions.py:32
↓ 12 callersMethodcount
(splits, choices="ABCD", prefix="", suffix="")
MMaDA/lmms_eval/lmms_eval/tasks/mmbench/mmbench_evals.py:86
↓ 12 callersFunctionget_value_or_zero
(value)
MMaDA/lmms_eval/lmms_eval/tasks/ocrbench_v2/utils.py:84
↓ 12 callersMethodgroup
Groups elements of an iterable based on a provided function. Parameters: - arr (Iterable): The iterable to be grouped.
MMaDA/lmms_eval/lmms_eval/utils.py:952
↓ 12 callersFunctioninit_weights
Initialize weights of a linear or embedding module. :param config: The model config. :param module: The linear or embedding submodule to
LLaDA/modeling_llada.py:80
↓ 12 callersFunctioninit_weights
Initialize weights of a linear or embedding module. :param config: The model config. :param module: The linear or embedding submodul
MMaDA/lmms_eval/lmms_eval/models/model_mmada/modeling_llada.py:80
↓ 12 callersFunctioninit_weights
Initialize weights of a linear or embedding module. :param config: The model config. :param module: The linear or embedding submodul
MMaDA/models/modeling_llada.py:80
↓ 12 callersMethodprocessor
(self)
MMaDA/lmms_eval/lmms_eval/models/plm.py:112
↓ 11 callersMethod__init__
( self, config: ModelConfig, size: Optional[int] = None, low_precision: bool =
LLaDA/modeling_llada.py:274
↓ 11 callersMethod__init__
( self, config: ModelConfig, size: Optional[int] = None, low_precision: bo
MMaDA/lmms_eval/lmms_eval/models/model_mmada/modeling_llada.py:274
↓ 11 callersMethod__init__
( self, config: ModelConfig, size: Optional[int] = None, low_precision: bo
MMaDA/models/modeling_llada.py:274
↓ 10 callersFunctioncast_to_set
Try to cast an object as a set.
MMaDA/lmms_eval/lmms_eval/tasks/megabench/metrics/scoring/common/conversions.py:24
↓ 10 callersMethodreset_parameters
(self)
LLaDA/modeling_llada.py:588
↓ 10 callersMethodreset_parameters
(self)
MMaDA/lmms_eval/lmms_eval/models/model_mmada/modeling_llada.py:588
↓ 10 callersMethodreset_parameters
(self)
MMaDA/models/modeling_llada.py:588
↓ 10 callersMethodstate_dict
r""" Returns the state of the ExponentialMovingAverage as a dict. This method is used by accelerate during checkpointing to save the
MMaDA/lmms_eval/lmms_eval/models/model_mmada/training_utils.py:204
↓ 10 callersFunctionstr_to_list
Converts a string representation of an iterable to a set.
MMaDA/lmms_eval/lmms_eval/tasks/megabench/metrics/scoring/common/conversions.py:91
↓ 10 callersMethodtokenize
(self, sent: str)
MMaDA/lmms_eval/lmms_eval/tasks/covost2/utils.py:148
↓ 9 callersFunction_configure_library_root_logger
()
MMaDA/lmms_eval/lmms_eval/models/model_mmada/logging.py:73
↓ 9 callersFunction_configure_library_root_logger
()
MMaDA/models/logging.py:73
↓ 9 callersMethodapply
Defines the operation to perform on a list of the `inst.resps` properties of `Instance` objects. Should return the list of (filtered)
MMaDA/lmms_eval/lmms_eval/api/filter.py:23
↓ 9 callersMethodbuild
(cls, config: ModelConfig)
LLaDA/modeling_llada.py:451
↓ 9 callersMethodbuild
(cls, config: ModelConfig)
MMaDA/lmms_eval/lmms_eval/models/model_mmada/modeling_llada.py:451
↓ 9 callersMethodbuild
(cls, config: ModelConfig)
MMaDA/models/modeling_llada.py:451
↓ 9 callersFunctiondetailcaps_aggregation_result
(results, metric, args=None)
MMaDA/lmms_eval/lmms_eval/tasks/detailcaps/utils.py:68
↓ 9 callersFunctionmmupd_results_eval
(results, args, upd_type, question_type)
MMaDA/lmms_eval/lmms_eval/tasks/mmupd/utils.py:142
↓ 9 callersFunctiontime_limit
(seconds: float)
LLaDA/dataset_utils/eval_correctness_mbpp/execution.py:591
↓ 8 callersMethod__init__
(self, in_channels, with_conv)
MMaDA/lmms_eval/lmms_eval/models/model_mmada/common_modules.py:28
↓ 8 callersMethod__init__
(self, in_channels, with_conv)
MMaDA/models/common_modules.py:28
↓ 8 callersFunctioncoco_aggregation_result
(results, metric, args)
MMaDA/lmms_eval/lmms_eval/tasks/coco_cap/utils.py:72
↓ 8 callersMethoddoc_to_choice
(self, doc: Any)
MMaDA/lmms_eval/lmms_eval/api/task.py:1392
↓ 8 callersMethoddoc_to_target
(self, doc)
MMaDA/lmms_eval/lmms_eval/api/task.py:378
↓ 8 callersMethodevaluate
Computes TEDS score between the prediction and the ground truth of a given sample
MMaDA/lmms_eval/lmms_eval/tasks/ocrbench_v2/TEDS_metric.py:116
↓ 8 callersFunctionflickr_aggregation_result
(results, metric, args)
MMaDA/lmms_eval/lmms_eval/tasks/flickr30k/utils.py:44
↓ 8 callersFunctionnocaps_aggregation_result
(results, metric, args=None)
MMaDA/lmms_eval/lmms_eval/tasks/nocaps/utils.py:42
↓ 8 callersFunctionrefcoco_aggregation_result
(results, metric)
MMaDA/lmms_eval/lmms_eval/tasks/refcoco+/utils.py:50
↓ 8 callersFunctionrefcoco_aggregation_result
(results, metric)
MMaDA/lmms_eval/lmms_eval/tasks/refcoco/utils.py:50
↓ 8 callersFunctionrefcoco_aggregation_result
(results, metric)
MMaDA/lmms_eval/lmms_eval/tasks/refcocog/utils.py:50
↓ 8 callersFunctionscreenspot_aggregation_result
(results, metric)
MMaDA/lmms_eval/lmms_eval/tasks/screenspot/utils.py:40
↓ 8 callersFunctiontextcaps_aggregation_result
(results, metric, args=None)
MMaDA/lmms_eval/lmms_eval/tasks/textcaps/utils.py:39
↓ 8 callersMethodtokenize
(self, sent: str)
MMaDA/lmms_eval/lmms_eval/tasks/fleurs/utils.py:226
↓ 8 callersMethodtokenizer
(self)
MMaDA/lmms_eval/lmms_eval/models/ola.py:223
↓ 8 callersFunctionyoucook2_aggregate_results
(results, metric, **kwargs)
MMaDA/lmms_eval/lmms_eval/tasks/youcook2/utils.py:63
↓ 7 callersFunctionNormalize
(in_channels)
MMaDA/lmms_eval/lmms_eval/models/model_mmada/common_modules.py:21
↓ 7 callersFunctionNormalize
(in_channels)
MMaDA/models/common_modules.py:21
↓ 7 callersFunctioncal_per_metrics
(pred, gt)
MMaDA/lmms_eval/lmms_eval/tasks/ocrbench_v2/page_ocr_metric.py:17
↓ 7 callersMethodfrom_pretrained
(cls, path, model_cls)
MMaDA/models/training_utils.py:117
↓ 7 callersMethodget_model
(self)
MMaDA/lmms_eval/lmms_eval/models/video_chatgpt/model/video_chatgpt.py:167
↓ 7 callersMethodload_config
(self, config: Dict)
MMaDA/lmms_eval/lmms_eval/tasks/__init__.py:375
↓ 7 callersFunctionnum2chn
(number_string, numbering_type=NUMBERING_TYPES[1], big=False, traditional=False, alt_zero=False, alt_one=False
MMaDA/lmms_eval/lmms_eval/tasks/librispeech/cn_tn.py:641
↓ 7 callersFunctionrefcoco_bbox_rec_aggregation_result
Aggregate the results of the RefCOCO evaluation task using the specified metric. Args: - results (list of dict): List of result dictiona
MMaDA/lmms_eval/lmms_eval/tasks/refcoco+/utils_rec.py:163
↓ 7 callersFunctionrefcoco_bbox_rec_aggregation_result
Aggregate the results of the RefCOCO evaluation task using the specified metric. Args: - results (list of dict): List of result dictiona
MMaDA/lmms_eval/lmms_eval/tasks/refcoco/utils_rec.py:163
↓ 7 callersFunctionrefcoco_bbox_rec_aggregation_result
Aggregate the results of the RefCOCO evaluation task using the specified metric. Args: - results (list of dict): List of result dictiona
MMaDA/lmms_eval/lmms_eval/tasks/refcocog/utils_rec.py:163
↓ 7 callersFunctionscreenspot_rec_aggregation_result
Aggregate the results of the screenspot evaluation task using the specified metric. Args: - results (list of dict): List of result dicti
MMaDA/lmms_eval/lmms_eval/tasks/screenspot/utils_rec.py:129
↓ 7 callersMethodtest_docs
:return: Iterable[obj] A iterable of any object, that doc_to_text can handle
MMaDA/lmms_eval/lmms_eval/api/task.py:324
↓ 7 callersFunctionvalidate_point_inside_bounds
(x, y, imWidth, imHeight)
MMaDA/lmms_eval/lmms_eval/tasks/ocrbench_v2/spotting_eval/rrc_evaluation_funcs_1_1.py:304
↓ 7 callersMethodvalidation_docs
:return: Iterable[obj] A iterable of any object, that doc_to_text can handle
MMaDA/lmms_eval/lmms_eval/api/task.py:317
↓ 6 callersFunctionconvert_markdown_table_to_html
Converts a markdown table to the corresponding html string for TEDS computation.
MMaDA/lmms_eval/lmms_eval/tasks/ocrbench_v2/TEDS_metric.py:179
↓ 6 callersFunctionget_wups
calculate the wups score :param pred: :param truth: :return:
MMaDA/lmms_eval/lmms_eval/tasks/nextqa/utils.py:233
↓ 6 callersFunctionhash_string
(string: str)
MMaDA/lmms_eval/lmms_eval/utils.py:58
↓ 6 callersFunctionlevenshtein_distance
(s1, s2)
MMaDA/lmms_eval/lmms_eval/tasks/ocrbench_v2/vqa_metric.py:10
↓ 6 callersFunctionlistinstr
(lst, s)
MMaDA/lmms_eval/lmms_eval/models/xcomposer2_4KHD.py:276
↓ 6 callersFunctionmake_table
Generate table of results.
MMaDA/lmms_eval/lmms_eval/utils.py:447
next →1–100 of 4,510, ranked by callers