MCPcopy Create free account

hub / github.com/ML-GSAI/LLaDA-V / functions

Functions2,241 in github.com/ML-GSAI/LLaDA-V

↓ 143 callersMethodupdate
Updates running moments from batch's moments computed across ranks
train/trl/trainer/utils.py:473
↓ 117 callersMethodfrom_pretrained
(cls, pretrained_model_name_or_path: Union[str, os.PathLike], **kwargs)
train/llava/model/multimodal_encoder/siglip_encoder.py:103
↓ 86 callersFunctionrank0_print
(*args)
train/llava/utils.py:73
↓ 78 callersMethodappend_message
(self, role, message)
eval/lmms-eval/lmms_eval/models/video_chatgpt/video_conversation.py:66
↓ 78 callersMethoddecode
This method forwards all its arguments to CLIPTokenizerFast's [`~PreTrainedTokenizer.decode`]. Please refer to the docstring of this
eval/lmms-eval/lmms_eval/models/mplug_owl_video/processing_mplug_owl.py:108
↓ 71 callersMethodfrom_pretrained
(cls, pretrained_model_name_or_path: Union[str, os.PathLike], **kwargs)
eval/lmms-eval/lmms_eval/models/mplug_owl_video/configuration_mplug_owl.py:107
↓ 67 callersFunctiontokenizer_image_token
(prompt, tokenizer, image_token_index=IMAGE_TOKEN_INDEX, return_tensors=None)
train/llava/mm_utils.py:342
↓ 41 callersMethodget_prompt
(self, conv)
eval/lmms-eval/lmms_eval/models/videochat2.py:308
↓ 40 callersMethodcopy
(self)
eval/lmms-eval/lmms_eval/models/video_chatgpt/video_conversation.py:100
↓ 35 callersMethodbatch_decode
This method forwards all its arguments to CLIPTokenizerFast's [`~PreTrainedTokenizer.batch_decode`]. Please refer to the docstring of
eval/lmms-eval/lmms_eval/models/mplug_owl_video/processing_mplug_owl.py:101
↓ 34 callersMethodgenerate
( self, pixel_values: Optional[torch.FloatTensor] = None, input_ids: Optional[torch.Fl
eval/lmms-eval/lmms_eval/models/internvl.py:370
↓ 33 callersMethodflatten
(self, input)
eval/lmms-eval/lmms_eval/models/oryx.py:323
↓ 31 callersMethodpreprocess
(self, images, return_tensors)
train/llava/model/multimodal_encoder/siglip_encoder.py:47
↓ 29 callersMethodget_model
(self)
train/llava/model/llava_arch.py:165
↓ 27 callersMethodget_batched
Generates and yields batches from the reordered array. Parameters: - n (int): The size of each batch. Defaults to 1.
eval/lmms-eval/lmms_eval/utils.py:889
↓ 26 callersMethodget_original
Restores the original order of elements from the reordered list. Parameters: - newarr (List): The reordered array.
eval/lmms-eval/lmms_eval/utils.py:927
↓ 24 callersMethodsave_pretrained
r""" Save the pretrained model to a directory. This method is a wrapper around `transformers.PreTrainedModel.save_pretrained`. Please
train/trl/models/modeling_base.py:498
↓ 24 callersMethodto_gradio_chatbot
(self)
train/llava/conversation.py:257
↓ 23 callersFunctionload_pretrained_model
(model_path, model_base, model_name, load_8bit=False, load_4bit=False, device_map="auto", torch_dtype="float16
train/llava/model/builder.py:27
↓ 23 callersFunctionprocess_images
(images, image_processor, model_cfg)
train/llava/mm_utils.py:315
↓ 23 callersMethodstate_dict
r""" Return the state_dict of the pretrained model.
train/trl/models/modeling_base.py:527
↓ 22 callersMethodadd_partial
(self, attr, req, res)
eval/lmms-eval/lmms_eval/api/model.py:144
↓ 22 callersMethodappend_message
(self, role, message)
train/llava/conversation.py:185
↓ 22 callersMethodcopy
(self)
train/llava/conversation.py:295
↓ 22 callersMethodlog
Log `logs` on the various objects watching training, including stored metrics. Args: logs (`Dict[str, float]`):
train/trl/trainer/dpo_trainer.py:1162
↓ 20 callersFunctiongenerate_submission_file
(file_name, args, subpath="submissions")
eval/lmms-eval/lmms_eval/tasks/_task_utils/file_utils.py:4
↓ 20 callersFunctionis_peft_available
()
train/trl/import_utils.py:24
↓ 18 callersMethodset_cache
( self, layer_id: int, feature_name: str, features: torch.Tensor, cache_type: str )
train/llava/cache/Cache.py:51
↓ 18 callersMethodwrite
(self, buf)
train/llava/utils.py:143
↓ 17 callersFunctionmasked_mean
Compute mean of tensor with a masked values.
train/trl/core.py:147
↓ 16 callersMethod__init__
(self, config)
eval/lmms-eval/lmms_eval/models/mplug_owl_video/modeling_mplug_owl.py:320
↓ 16 callersFunctionread_video_pyav
(video_path, num_frm=8)
eval/lmms-eval/lmms_eval/models/model_utils/load_video.py:44
↓ 15 callersMethod__init__
(self, model_args, vision_tower)
train/llava/model/multimodal_resampler/qformer.py:1103
↓ 15 callersMethodmodel
(self)
eval/lmms-eval/lmms_eval/models/oryx.py:162
↓ 14 callersMethodget_prompt
(self)
train/llava/conversation.py:47
↓ 14 callersMethodtokenizer
Returns the tokenizer used for tokenizing text inputs
train/trl/models/modeling_sd_base.py:98
↓ 12 callersMethodget_cache
( self, layer_id: int, feature_name: str, cache_type: str )
train/llava/cache/Cache.py:58
↓ 12 callersFunctionget_model_name_from_path
(model_path)
train/llava/mm_utils.py:364
↓ 11 callersMethodpost_init
r""" Post initialization method. This method is called after the model is instantiated and loaded from a checkpoint. It can be used to
train/trl/models/modeling_base.py:533
↓ 9 callersMethod__init__
(self, config)
train/llava/model/language_model/modeling_llada.py:213
↓ 9 callersMethod__init__
(self, config)
train/llava/model/multimodal_encoder/siglip_encoder.py:244
↓ 9 callersMethod__init__
(self, config)
train/llada_v_prepare/files/modeling_llada.py:212
↓ 9 callersMethodget_images
(self, return_pil=False, return_path=False)
train/llava/conversation.py:234
↓ 9 callersMethodget_vision_tower
(self)
train/llava/model/llava_arch.py:48
↓ 9 callersMethodgroup
(self)
eval/lmms-eval/lmms_eval/api/group.py:84
↓ 8 callersMethodautocast
Returns the autocast context manager
train/trl/models/modeling_sd_base.py:119
↓ 8 callersMethoddoc_to_choice
(self, doc: Any)
eval/lmms-eval/lmms_eval/api/task.py:1336
↓ 8 callersMethoddoc_to_target
(self, doc)
eval/lmms-eval/lmms_eval/api/task.py:378
↓ 8 callersFunctionexpand2square
(pil_img, background_color)
train/llava/mm_utils.py:301
↓ 8 callersMethodget_input_embeddings
(self)
train/llava/model/multimodal_resampler/qformer.py:637
↓ 7 callersMethodfrom_pretrained
r""" Instantiates a new model from a pretrained model from `transformers`. The pretrained model is loaded using the `from_pretrained`
train/trl/models/modeling_base.py:103
↓ 7 callersMethodget_input_embeddings
(self)
eval/lmms-eval/lmms_eval/models/mplug_owl_video/modeling_mplug_owl.py:1192
↓ 7 callersMethodgroup
Groups elements of an iterable based on a provided function. Parameters: - arr (Iterable): The iterable to be grouped.
eval/lmms-eval/lmms_eval/utils.py:952
↓ 7 callersMethodrun
Run the environment on a list of queries. Args: queries (list[str]): A list of queries to run the model in the environme
train/trl/environment/base_environment.py:263
↓ 7 callersMethodtranspose_for_scores
(self, x)
train/llava/model/multimodal_resampler/qformer.py:145
↓ 6 callersMethodcount
(splits, choices="ABCD", prefix="", suffix="")
eval/lmms-eval/lmms_eval/tasks/mmbench/mmbench_evals.py:86
↓ 6 callersMethodget_model
(self)
eval/lmms-eval/lmms_eval/models/video_chatgpt/model/video_chatgpt.py:167
↓ 6 callersFunctionhash_string
(string: str)
eval/lmms-eval/lmms_eval/utils.py:58
↓ 6 callersFunctionlistinstr
(lst, s)
eval/lmms-eval/lmms_eval/models/xcomposer2_4KHD.py:276
↓ 6 callersFunctionmake_table
Generate table of results.
eval/lmms-eval/lmms_eval/utils.py:447
↓ 6 callersMethodtest_docs
:return: Iterable[obj] A iterable of any object, that doc_to_text can handle
eval/lmms-eval/lmms_eval/api/task.py:324
↓ 6 callersMethodvalidation_docs
:return: Iterable[obj] A iterable of any object, that doc_to_text can handle
eval/lmms-eval/lmms_eval/api/task.py:317
↓ 5 callersMethod_name_is_registered
(self, name)
eval/lmms-eval/lmms_eval/tasks/__init__.py:162
↓ 5 callersMethodapply
Defines the operation to perform on a list of the `inst.resps` properties of `Instance` objects. Should return the list of (filtered)
eval/lmms-eval/lmms_eval/api/filter.py:23
↓ 5 callersFunctionbuild_logger
(logger_name, logger_filename)
train/llava/utils.py:87
↓ 5 callersMethodconcatenated_forward
Run the given model on the given batch of inputs, concatenating the chosen and rejected inputs together. We do this to avoid doing two forwar
train/trl/trainer/dpo_trainer.py:846
↓ 5 callersMethoddoc_to_text
(self, doc)
eval/lmms-eval/lmms_eval/api/task.py:374
↓ 5 callersMethodgenerate
Generate response with the model given the query tensor. call the `generate` method of the model. Args: query_te
train/trl/trainer/ppo_trainer.py:406
↓ 5 callersMethodget_input_embeddings
(self)
train/llada_v_prepare/files/modeling_llada.py:938
↓ 5 callersMethodget_output_embeddings
(self)
train/llava/model/language_model/modeling_llada.py:1154
↓ 5 callersMethodget_prompt
(self)
eval/lmms-eval/lmms_eval/models/video_chatgpt/video_conversation.py:31
↓ 5 callersMethodget_vision_tower
(self)
train/llava/model/llava_arch.py:168
↓ 5 callersFunctionis_xpu_available
()
train/trl/import_utils.py:84
↓ 5 callersMethodlist_all_tasks
(self, list_groups=True, list_tags=True, list_subtasks=True)
eval/lmms-eval/lmms_eval/tasks/__init__.py:97
↓ 5 callersMethodload_json_data
(self, json_path)
train/playground/data_checker.py:29
↓ 5 callersMethodpad_sequence
(self, input_ids, batch_first, padding_value)
train/llava/train/train.py:1524
↓ 5 callersMethodpost_init
(self, results: Dict[str, Any])
eval/lmms-eval/lmms_eval/loggers/wandb_logger.py:54
↓ 5 callersFunctionprocess_anyres_image
Process an image with variable resolutions. Args: image (PIL.Image.Image): The input image to be processed. processor: The i
train/llava/mm_utils.py:244
↓ 5 callersMethodprocess_images
(self, images, image_processor, model_cfg)
eval/lmms-eval/lmms_eval/models/auroracap.py:218
↓ 5 callersMethodpush_to_hub
Overwrite the `push_to_hub` method in order to force-add the tag "sft" when pushing the model on the Hub. Please refer to `~transform
train/trl/trainer/dpo_trainer.py:1179
↓ 5 callersFunctionrotate_half
Rotates half the hidden dims of the input.
train/llava/hooks/cache_hook_LLaDA_V.py:9
↓ 5 callersMethodto_dict
Serializes this instance to a Python dictionary. Override the default [`~PretrainedConfig.to_dict`]. Returns: `Dict[str,
eval/lmms-eval/lmms_eval/models/mplug_owl_video/configuration_mplug_owl.py:274
↓ 4 callersMethod_get_config
(self, name)
eval/lmms-eval/lmms_eval/tasks/__init__.py:207
↓ 4 callersFunction_tokenize_str
(role, content)
eval/lmms-eval/lmms_eval/models/cambrian.py:79
↓ 4 callersFunction_tokenize_str
(role, content)
eval/lmms-eval/lmms_eval/models/model_utils/qwen/qwen_generate_utils.py:135
↓ 4 callersFunctioncall_attention_on_qkv
(q_tensor, k_tensor, v_tensor, original_full_attention_bias,
train/llava/hooks/cache_hook_LLaDA_V.py:263
↓ 4 callersFunctioncompute_mlp
(input_to_mlp: torch.Tensor)
train/llava/hooks/cache_hook_LLaDA_V.py:299
↓ 4 callersFunctioncreate_custom_forward
(module)
eval/lmms-eval/lmms_eval/models/mplug_owl_video/modeling_mplug_owl.py:1803
↓ 4 callersMethodcreate_options_prompt
(self, row_data, option_candidate)
eval/lmms-eval/lmms_eval/tasks/mmbench/mmbench_evals.py:22
↓ 4 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/oryx.py:191
↓ 4 callersMethoddevice
(self)
train/llava/model/multimodal_encoder/imagebind.py:68
↓ 4 callersMethoddict
(self)
train/llava/conversation.py:298
↓ 4 callersMethoddoc_to_target
(self, doc: dict)
eval/lmms-eval/lmms_eval/api/task.py:1281
↓ 4 callersMethoddoc_to_text
(self, doc)
eval/lmms-eval/lmms_eval/api/task.py:1244
↓ 4 callersMethodeval_result
(self, results, eval_method)
eval/lmms-eval/lmms_eval/tasks/mmbench/mmbench_evals.py:239
↓ 4 callersFunctionexists
(val)
train/llava/model/multimodal_resampler/perceiver.py:16
↓ 4 callersFunctionflatten_dict
Flatten dictionary and concatenate nested keys with separator.
train/trl/core.py:72
↓ 4 callersFunctionget_file_datetime
Given the results and sample results filenames, extracts and returns the datetime.
eval/lmms-eval/lmms_eval/utils.py:235
↓ 4 callersFunctionget_length_grouped_indices_auto_single
(lengths, batch_size, world_size, generator=None)
train/llava/train/llava_trainer.py:152
↓ 4 callersFunctionget_metric_aggregation
(name)
eval/lmms-eval/lmms_eval/api/registry.py:145
next →1–100 of 2,241, ranked by callers