MCPcopy Create free account

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

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

↓ 4 callersMethodhas_test_docs
Whether the task has a test set
eval/lmms-eval/lmms_eval/api/task.py:306
↓ 4 callersMethodhas_validation_docs
Whether the task has a validation set
eval/lmms-eval/lmms_eval/api/task.py:301
↓ 4 callersMethodinit
(self)
train/llava/cache/Cache.py:39
↓ 4 callersFunctionis_higher_better
(metric_name)
eval/lmms-eval/lmms_eval/api/registry.py:154
↓ 4 callersFunctionis_non_str_iterable
(obj)
eval/lmms-eval/lmms_eval/api/metrics.py:455
↓ 4 callersFunctionis_npu_available
Checks if `torch_npu` is installed and potentially if a NPU is in the environment
train/trl/import_utils.py:100
↓ 4 callersFunctionis_rich_available
()
train/trl/import_utils.py:76
↓ 4 callersFunctionpad_to_length
(tensor: torch.Tensor, length: int, pad_value: Union[int, float], dim: int = -1)
train/trl/trainer/utils.py:531
↓ 4 callersMethodprepare_inputs_labels_for_multimodal
(self, input_ids, position_ids, attention_mask, past_key_values, labels, images, modalities=["image"], image_s
train/llava/model/llava_arch.py:350
↓ 4 callersFunctionprocess_highres_image
(image, processor, grid_pinpoints)
train/llava/mm_utils.py:99
↓ 4 callersFunctionprocess_highres_image_crop_split
(image, data_args, processor=None)
train/llava/mm_utils.py:88
↓ 4 callersFunctionproject
(x_input: torch.Tensor)
train/llava/hooks/cache_hook_LLaDA_V.py:253
↓ 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
train/llava/model/language_model/modeling_llada.py:246
↓ 4 callersFunctionrepeat_kv
(hidden_states: torch.Tensor, n_rep: int)
train/llava/hooks/cache_hook_LLaDA_V.py:138
↓ 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
train/llada_v_prepare/files/modeling_llada.py:245
↓ 4 callersMethodsample
Draw the first `n` samples in order from the specified split. Used for tasks with "canonical" ordered fewshot examples, such as MMLU
eval/lmms-eval/lmms_eval/api/samplers.py:61
↓ 4 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
eval/lmms-eval/lmms_eval/api/task.py:160
↓ 4 callersMethodto_dict
(self)
train/trl/trainer/ppo_config.py:171
↓ 4 callersMethodtrain
(self, mode=True)
train/llava/model/multimodal_encoder/imagebind.py:35
↓ 3 callersMethod__init__
pass a string `regex` to run `re.compile(r"regex")` on. `fallback` defines the output returned if no matches for the regex are locate
eval/lmms-eval/lmms_eval/filters/extraction.py:36
↓ 3 callersMethod_get_current_device
r""" Get the current device. For GPU, we return the local process index using the `accelerate.PartialState` object to handle corner ca
train/trl/models/modeling_base.py:366
↓ 3 callersMethod_get_item
(self, i)
train/llava/train/train.py:1403
↓ 3 callersMethod_get_tasklist
(self, name)
eval/lmms-eval/lmms_eval/tasks/__init__.py:216
↓ 3 callersFunction_get_video_file
(prefix: str, video_name: str, suffix: str)
eval/lmms-eval/lmms_eval/tasks/_task_utils/video_loader.py:12
↓ 3 callersFunction_left_broadcast
As opposed to the default direction of broadcasting (right to left), this function broadcasts from left to right Args: in
train/trl/models/modeling_sd_base.py:156
↓ 3 callersMethod_name_is_tag
(self, name)
eval/lmms-eval/lmms_eval/tasks/__init__.py:172
↓ 3 callersFunction_sacreformat
Format refs and preds for sacrebleu corpus calculation. It is very particular
eval/lmms-eval/lmms_eval/api/metrics.py:459
↓ 3 callersMethod_save
(self, output_dir: Optional[str] = None, state_dict=None)
train/llava/train/llava_trainer.py:512
↓ 3 callersMethod_split_kwargs
Separate the kwargs from the arguments that we support inside `supported_args` and the ones that we don't.
train/trl/models/modeling_base.py:384
↓ 3 callersMethodappend_segment
Append a new segment to the history. args: text (`str`): The text of the new segment. tokens (`torch.LongTen
train/trl/environment/base_environment.py:88
↓ 3 callersFunctionapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch.Tensor`): T
train/llava/model/language_model/modeling_llada.py:185
↓ 3 callersFunctionapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch.Tensor`): T
train/llada_v_prepare/files/modeling_llada.py:184
↓ 3 callersMethodbatched_forward_pass
Calculate model outputs in multiple batches. Args: queries (`torch.LongTensor`): List of tensors contain
train/trl/trainer/ppo_trainer.py:899
↓ 3 callersFunctionbuild_filter_ensemble
Create a filtering pipeline.
eval/lmms-eval/lmms_eval/filters/__init__.py:29
↓ 3 callersFunctionbuild_transform
(input_size)
eval/lmms-eval/lmms_eval/models/internvl2.py:30
↓ 3 callersMethodcan_infer
(self, answer, choices)
eval/lmms-eval/lmms_eval/tasks/mmbench/mmbench_evals.py:123
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/slime.py:186
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/internvideo2.py:289
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/llava.py:186
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/llava_onevision_moviechat.py:248
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/llava_onevision.py:220
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/internvl2.py:218
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/xcomposer2_4KHD.py:122
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/moviechat.py:228
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/llama_vid.py:270
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/llava_vid.py:266
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/video_llava.py:148
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/mplug_owl_video.py:137
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/qwen2_vl.py:128
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/qwen2_audio.py:146
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/mantis.py:188
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/internvl.py:336
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/longva.py:216
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/vila.py:179
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/video_chatgpt.py:196
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/tinyllava.py:162
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/videochat2.py:297
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/llava_onevision_llada.py:240
↓ 3 callersMethoddevice
(self)
eval/lmms-eval/lmms_eval/models/xcomposer2d5.py:124
↓ 3 callersFunctiondynamic_preprocess
(image, min_num=1, max_num=6, image_size=448, use_thumbnail=False)
eval/lmms-eval/lmms_eval/models/internvl2.py:52
↓ 3 callersMethodencode_images
(self, images)
train/llava/model/llava_arch.py:192
↓ 3 callersMethodfeature_select
(self, image_forward_outs)
train/llava/model/multimodal_encoder/clip_encoder.py:46
↓ 3 callersMethodflatten
(self, input)
eval/lmms-eval/lmms_eval/models/videochat2.py:434
↓ 3 callersMethodforward
(self, x)
train/llava/model/language_model/modeling_llada.py:223
↓ 3 callersMethodforward
(self, x)
train/llada_v_prepare/files/modeling_llada.py:222
↓ 3 callersMethodget_2dPool
(self, image_feature, stride=2)
train/llava/model/llava_arch.py:171
↓ 3 callersMethodget_config
(self, key: str)
eval/lmms-eval/lmms_eval/api/task.py:1571
↓ 3 callersFunctionget_length_grouped_indices
Return a list of indices so that each slice of `batch_size` consecutive indices correspond to elements of similar lengths. To do this, the in
train/llava/train/llava_trainer.py:129
↓ 3 callersMethodget_output_embeddings
(self)
eval/lmms-eval/lmms_eval/models/mplug_owl_video/modeling_mplug_owl.py:1201
↓ 3 callersMethodget_worker_status
(self, worker_name: str)
train/llava/serve/controller.py:85
↓ 3 callersFunctionhash_args
(attr, args)
eval/lmms-eval/lmms_eval/api/model.py:131
↓ 3 callersFunctioninitialize_model
Initializes the model with given parameters. Parameters: model_name (str): Name of the model to initialize. projection_path (str, op
eval/lmms-eval/lmms_eval/models/video_chatgpt/eval/model_utils.py:83
↓ 3 callersMethodinitialize_vision_modules
(self, model_args, fsdp=None)
train/llava/model/llava_arch.py:54
↓ 3 callersMethodinitialize_vision_tokenizer
(self, model_args, tokenizer)
train/llava/model/llava_arch.py:661
↓ 3 callersFunctionis_diffusers_available
()
train/trl/import_utils.py:61
↓ 3 callersFunctionis_wandb_available
()
train/trl/import_utils.py:80
↓ 3 callersFunctionload_data
(data_path)
train/llava/train/train_dpo.py:900
↓ 3 callersMethodload_model
(self, device_map=None)
train/llava/model/multimodal_encoder/siglip_encoder.py:563
↓ 3 callersMethodload_model
(self, device_map="auto")
train/llava/model/multimodal_encoder/open_clip_encoder.py:40
↓ 3 callersMethodload_model
(self, device_map=None)
train/llava/model/multimodal_encoder/clip_encoder.py:35
↓ 3 callersMethodload_model
(self)
train/llava/model/multimodal_encoder/hf_vision.py:23
↓ 3 callersFunctionload_video
Load video frames from a video file. Parameters: vis_path (str): Path to the video file. n_clips (int): Number of clips to extract f
eval/lmms-eval/lmms_eval/models/video_chatgpt/eval/model_utils.py:14
↓ 3 callersMethodload_video
(self, video_path, max_frames_num)
eval/lmms-eval/lmms_eval/models/llava_onevision.py:370
↓ 3 callersMethodload_video
(self, video_path, max_frames_num)
eval/lmms-eval/lmms_eval/models/llava_onevision_llada.py:413
↓ 3 callersFunctionlogprobs_from_logits
See: https://github.com/pytorch/pytorch/issues/563#issuecomment-330103591
train/trl/core.py:126
↓ 3 callersFunctionmasked_var
Compute variance of tensor with masked values.
train/trl/core.py:155
↓ 3 callersFunctionmaybe_zero_3
(param, ignore_status=False, name=None)
train/llava/train/train.py:197
↓ 3 callersFunctionmaybe_zero_3
(param, ignore_status=False, name=None)
train/llava/train/train_dpo.py:171
↓ 3 callersFunctionmean
(arr)
eval/lmms-eval/lmms_eval/api/metrics.py:25
↓ 3 callersFunctionnormalize_str
Normalize the str to lower case and make them float numbers if possible. https://github.com/MMMU-Benchmark/MMMU/blob/51ce7f3e829c16bb44bc5445
eval/lmms-eval/lmms_eval/tasks/mmmu_pro/utils.py:376
↓ 3 callersFunctionnormalize_str
Normalize the str to lower case and make them float numbers if possible. https://github.com/MMMU-Benchmark/MMMU/blob/51ce7f3e829c16bb44bc5445
eval/lmms-eval/lmms_eval/tasks/mmmu/utils.py:371
↓ 3 callersFunctionnormalize_str
Normalize the str to lower case and make them float numbers if possible. https://github.com/MMMU-Benchmark/MMMU/blob/51ce7f3e829c16bb44bc5445
eval/lmms-eval/lmms_eval/tasks/mmmu/utils_group_img.py:476
↓ 3 callersMethodnull_ref_context
Context manager for handling null reference model (that is, peft adapter manipulation).
train/trl/trainer/dpo_trainer.py:629
↓ 3 callersFunctionpreprocess_multimodal
(sources: Sequence[str], data_args: DataArguments)
train/llava/train/train.py:388
↓ 3 callersMethodprocess_image
(self, image, overwrite_image_aspect_ratio=None)
train/llava/train/train.py:1101
↓ 3 callersMethodprocess_image
(self, image_file, overwrite_image_aspect_ratio=None)
train/llava/train/train.py:1312
↓ 3 callersFunctionsave_progress
(progress_file, progress_data)
train/playground/sgl_llava_inference_multinode.py:26
↓ 3 callersMethodset_config
Set or update the configuration for a given key.
eval/lmms-eval/lmms_eval/api/task.py:610
↓ 3 callersFunctionset_seed
Helper function for reproducible behavior to set the seed in `random`, `numpy`, and `torch`. Args: seed (`int`): The seed to set.
train/trl/core.py:235
↓ 3 callersMethodtrain
(self, *args, **kwargs)
train/trl/trainer/sft_trainer.py:295
← previousnext →101–200 of 2,241, ranked by callers