MCPcopy Create free account

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

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

↓ 2 callersMethodget_queue_length
(self)
train/llava/serve/model_worker.py:94
↓ 2 callersMethodget_queue_length
(self)
train/llava/serve/sglang_worker.py:113
↓ 2 callersMethodget_sinusoid_encoding_table
Sinusoid position encoding table
eval/lmms-eval/lmms_eval/models/videochat2.py:354
↓ 2 callersFunctionget_spatio_temporal_features_torch
Computes spatio-temporal features from given features. Parameters: features (torch.Tensor): Input features to process. Returns:
eval/lmms-eval/lmms_eval/models/video_chatgpt/inference.py:16
↓ 2 callersMethodget_status
(self)
train/llava/serve/model_worker.py:100
↓ 2 callersMethodget_status
(self)
train/llava/serve/sglang_worker.py:119
↓ 2 callersFunctionget_subtask_list
(task_dict, task_root=None, depth=0)
eval/lmms-eval/lmms_eval/evaluator_utils.py:142
↓ 2 callersFunctionget_task_dict
Creates a dictionary of task objects from either a name of task, config, or prepared Task object. :param task_name_list: List[Union[str, Dict, Ta
eval/lmms-eval/lmms_eval/tasks/__init__.py:525
↓ 2 callersMethodget_worker_address
(self, model_name: str)
train/llava/serve/controller.py:117
↓ 2 callersMethodhas_test_docs
(self)
eval/lmms-eval/lmms_eval/api/task.py:1083
↓ 2 callersMethodhas_training_docs
Whether the task has a training set
eval/lmms-eval/lmms_eval/api/task.py:296
↓ 2 callersMethodhas_validation_docs
(self)
eval/lmms-eval/lmms_eval/api/task.py:1077
↓ 2 callersMethodinit_run
(self)
eval/lmms-eval/lmms_eval/logging_utils.py:87
↓ 2 callersMethodis_image_file
(self, filename)
train/llava/conversation.py:249
↓ 2 callersFunctionload_image_from_base64
(image)
train/llava/mm_utils.py:297
↓ 2 callersMethodload_video
(self, video_path, max_frames_num)
eval/lmms-eval/lmms_eval/models/oryx.py:211
↓ 2 callersMethodload_video
(self, video_path, max_frames_num, fps, force_sample=False)
eval/lmms-eval/lmms_eval/models/llava_vid.py:311
↓ 2 callersMethodload_video
(self, video_path, max_frames_num)
eval/lmms-eval/lmms_eval/models/vila.py:199
↓ 2 callersFunctionmake_context
( tokenizer: PreTrainedTokenizer, query: str, history: List[Tuple[str, str]] = None, system: s
eval/lmms-eval/lmms_eval/models/cambrian.py:62
↓ 2 callersFunctionmake_context
( tokenizer: PreTrainedTokenizer, query: str, history: List[Tuple[str, str]] = None, system: s
eval/lmms-eval/lmms_eval/models/model_utils/qwen/qwen_generate_utils.py:118
↓ 2 callersFunctionmake_conv
(prompt, answer)
train/llava/train/train_dpo.py:475
↓ 2 callersMethodmake_table
(columns: List[str], key: str = "results")
eval/lmms-eval/lmms_eval/logging_utils.py:171
↓ 2 callersFunctionmasked_whiten
Whiten values with masked values.
train/trl/core.py:171
↓ 2 callersMethodmodel
(self)
eval/lmms-eval/lmms_eval/models/auroracap.py:178
↓ 2 callersMethodpad_sequence
(self, input_ids, batch_first, padding_value)
eval/lmms-eval/lmms_eval/models/llava_onevision.py:207
↓ 2 callersMethodpad_sequence
(self, input_ids, batch_first, padding_value)
eval/lmms-eval/lmms_eval/models/llava_onevision_llada.py:227
↓ 2 callersFunctionparse_subtitle_time
(time_str)
eval/lmms-eval/lmms_eval/tasks/videomme/utils.py:94
↓ 2 callersFunctionparse_value
(item)
eval/lmms-eval/lmms_eval/__main__.py:37
↓ 2 callersFunctionpreprocess
Given a list of sources, each is a conversation list. This transform: 1. Add signal '### ' at the beginning each sentence, with end signal '\
train/llava/train/train.py:1003
↓ 2 callersFunctionpreprocess
Given a list of sources, each is a conversation list. This transform: 1. Add signal '### ' at the beginning each sentence, with end signal '\
train/llava/train/train_dpo.py:849
↓ 2 callersFunctionpreprocess_plain
( sources: Sequence[str], tokenizer: transformers.PreTrainedTokenizer, )
train/llava/train/train.py:981
↓ 2 callersFunctionpretty_print_semaphore
(semaphore)
train/llava/utils.py:195
↓ 2 callersMethodprocess_image
(self, image, image_process_mode, return_pil=False, image_format="PNG")
train/llava/conversation.py:188
↓ 2 callersMethodprocess_image
(self, image_file)
train/llava/train/train_dpo.py:1003
↓ 2 callersFunctionprocess_images
(images, size=1008)
eval/lmms-eval/lmms_eval/tasks/mmmu/utils_group_img.py:114
↓ 2 callersMethodprocess_results
Take a single document and the LMM results and evaluates, returning a dict where keys are the names of submetrics and values are the values of
eval/lmms-eval/lmms_eval/api/task.py:506
↓ 2 callersMethodrandom_masking
Perform per-sample random masking by per-sample shuffling. Per-sample shuffling is done by argsort random noise. x: [N, L, D]
train/llava/model/multimodal_resampler/masked_drop.py:56
↓ 2 callersFunctionrecord_video_length_packet
(container)
eval/lmms-eval/lmms_eval/models/model_utils/load_video.py:33
↓ 2 callersFunctionrefresh_index
( new_features: torch.Tensor, cached_features: torch.Tensor = None, transfer_ratio: float = 0.5,
train/llava/hooks/cache_hook_LLaDA_V.py:199
↓ 2 callersFunctionregister_fast_dllm_hook
Register fast dLLM cache hooks to the model. Args: model: The LLaDA model to register hooks to Returns: Fas
train/llava/hooks/fast_dllm_hook.py:485
↓ 2 callersMethodregister_to_controller
(self)
train/llava/serve/model_worker.py:69
↓ 2 callersMethodregister_to_controller
(self)
train/llava/serve/sglang_worker.py:88
↓ 2 callersMethodregister_worker
(self, worker_name: str, check_heart_beat: bool, worker_status: dict)
train/llava/serve/controller.py:69
↓ 2 callersMethodremove_worker
(self, worker_name: str)
train/llava/serve/controller.py:98
↓ 2 callersFunctionrotate_half
Rotates half the hidden dims of the input.
train/llava/model/language_model/modeling_llada.py:178
↓ 2 callersFunctionrotate_half
Rotates half the hidden dims of the input.
train/llada_v_prepare/files/modeling_llada.py:177
↓ 2 callersFunctionsample_stddev
(arr)
eval/lmms-eval/lmms_eval/api/metrics.py:329
↓ 2 callersFunctionsanitize_list
Takes possible nested list and recursively converts all inner component to strings
eval/lmms-eval/lmms_eval/utils.py:105
↓ 2 callersFunctionsanitize_task_name
Given the task name, returns a sanitized version of it.
eval/lmms-eval/lmms_eval/utils.py:254
↓ 2 callersMethodsave_pretrained
Saves all of the model weights
train/trl/models/modeling_sd_base.py:131
↓ 2 callersFunctionscheduler_step
Predict the sample at the previous timestep by reversing the SDE. Core function to propagate the diffusion process from the learned model ou
train/trl/models/modeling_sd_base.py:185
↓ 2 callersFunctionselect_best_resolution
Selects the best resolution from a list of possible resolutions based on the original size. Args: original_size (tuple): The origina
train/llava/mm_utils.py:120
↓ 2 callersMethodsend_heart_beat
(self)
train/llava/serve/model_worker.py:77
↓ 2 callersMethodsend_heart_beat
(self)
train/llava/serve/sglang_worker.py:96
↓ 2 callersMethodset_progress_bar_config
Sets the progress bar config for the pipeline
train/trl/models/modeling_sd_base.py:125
↓ 2 callersMethodshow_colour_legend
Print the colour legend.
train/trl/environment/base_environment.py:189
↓ 2 callersFunctionsimple_parse_args_string
Parses something like args1=val1,arg2=val2 Into a dictionary
eval/lmms-eval/lmms_eval/utils.py:117
↓ 2 callersFunctionsplit_to_even_chunks
Split a list of indices into `chunks` chunks of roughly equal lengths.
train/llava/train/llava_trainer.py:51
↓ 2 callersMethodstate_dict
r""" Returns the state dictionary of the model. We add the state dictionary of the value head to the state dictionary of the wrapped m
train/trl/models/modeling_value_head.py:205
↓ 2 callersMethodstep
Perform a single step of training. Args: epoch (int): The current epoch. global_step (int): The current glob
train/trl/trainer/ddpo_trainer.py:229
↓ 2 callersMethodstore_metrics
(self, metrics: Dict[str, float], train_eval: Literal["train", "eval"] = "train")
train/trl/trainer/dpo_trainer.py:1115
↓ 2 callersMethodtask_end_check
Check if the current generation sequence has finished.
train/trl/environment/base_environment.py:388
↓ 2 callersMethodtasks_end_check
Check if the current generation sequences have finished.
train/trl/environment/base_environment.py:377
↓ 2 callersMethodtext_encoder
Returns the text encoder used for encoding text inputs
train/trl/models/modeling_sd_base.py:112
↓ 2 callersMethodtok_encode
eval/lmms-eval/lmms_eval/models/llava_onevision.py:231
↓ 2 callersMethodtok_encode
eval/lmms-eval/lmms_eval/models/llava_onevision_llada.py:251
↓ 2 callersFunctiontrain
(attn_implementation=None)
train/llava/train/train.py:1766
↓ 2 callersMethodtraining_docs
:return: Iterable[obj] A iterable of any object, that doc_to_text can handle
eval/lmms-eval/lmms_eval/api/task.py:310
↓ 2 callersFunctiontrl_sanitze_kwargs_for_tagging
(model, tag_names, kwargs=None)
train/trl/trainer/utils.py:644
↓ 2 callersFunctionunpad_image
Unpads a PyTorch tensor of a padded and resized image. Args: tensor (torch.Tensor): The image tensor, assumed to be in CxHxW format.
train/llava/model/llava_arch.py:127
↓ 2 callersMethoduser
(self)
train/trl/models/utils.py:21
↓ 2 callersFunctionviolates_moderation
Check whether the text violates OpenAI moderation API.
train/llava/utils.py:173
↓ 2 callersFunctionweighted_mean
(items)
eval/lmms-eval/lmms_eval/api/metrics.py:450
↓ 1 callersFunctionFeedForward
(dim, mult=4)
train/llava/model/multimodal_resampler/perceiver.py:20
↓ 1 callersFunctionHD_transform
(img, im_num=16)
eval/lmms-eval/lmms_eval/models/xcomposer2_4KHD.py:248
↓ 1 callersFunctionHD_transform_padding
(frames, image_size=224, hd_num=6)
eval/lmms-eval/lmms_eval/models/internvideo2.py:116
↓ 1 callersFunctionHD_transform_padding
(frames, image_size=224, hd_num=6)
eval/lmms-eval/lmms_eval/models/videochat2.py:113
↓ 1 callersMethod__init__
regex_pattern: The basic regex pattern to use. If fails to match, we will use the customized match procedure - step 1
eval/lmms-eval/lmms_eval/tasks/realworldqa/utils.py:59
↓ 1 callersMethod__init__
( self, truncation: Optional[bool] = True, device: Optional[str] = "cuda:0", b
eval/lmms-eval/lmms_eval/models/moviechat.py:82
↓ 1 callersMethod__init__
( self, pretrained: str = "OpenGVLab/VideoChat2_HD_stage4_Mistral_7B_hf", modality: st
eval/lmms-eval/lmms_eval/models/videochat2.py:195
↓ 1 callersMethod__init__
(self, config: LLaDAConfig)
train/llava/model/language_model/llava_llada.py:47
↓ 1 callersMethod__init__
(self)
train/llava/model/multimodal_projector/builder.py:9
↓ 1 callersMethod__init__
(self, vision_tower, args, delay_load=False)
train/llava/model/multimodal_encoder/clip_encoder.py:13
↓ 1 callersMethod__init__
(self, data_path: str, tokenizer: transformers.PreTrainedTokenizer, data_args: DataArguments)
train/llava/train/train.py:1208
↓ 1 callersMethod__init__
Calculates the running mean and standard deviation of a data stream. Reference: https://github.com/OpenLMLab/MOSS-RLHF/blob/40b91eb2f
train/trl/trainer/utils.py:461
↓ 1 callersMethod_add_gumbel_noise
Add Gumbel noise for categorical sampling.
train/llava/hooks/fast_dllm_hook.py:449
↓ 1 callersFunction_add_speaker_and_signal
Add speaker and start/end signal on each round.
train/llava/train/train.py:368
↓ 1 callersFunction_add_speaker_and_signal
Add speaker and start/end signal on each round.
train/llava/train/train_dpo.py:342
↓ 1 callersFunction_adjust_config
(task_dict)
eval/lmms-eval/lmms_eval/evaluator.py:185
↓ 1 callersMethod_apply_rotary_pos_emb
Apply rotary position embedding to query and key tensors.
train/llava/hooks/fast_dllm_hook.py:368
↓ 1 callersMethod_build_conversation_mask_optimized
(self, conversation_ids)
train/llava/model/language_model/modeling_llada.py:1166
↓ 1 callersMethod_calc_stopped_samples
(self, prev_input_ids: Iterable[int])
eval/lmms-eval/lmms_eval/models/model_utils/qwen/qwen_generate_utils.py:323
↓ 1 callersMethod_calculate_samples
(self)
train/llava/train/train.py:1090
↓ 1 callersFunction_check_duplicates
helper function solely used in validating get_task_dict output. Takes the output of lmms_eval.evaluator_utils.get_subtask_list and returns a l
eval/lmms-eval/lmms_eval/tasks/__init__.py:504
↓ 1 callersMethod_class_has_config_in_constructor
(self, cls)
eval/lmms-eval/lmms_eval/tasks/__init__.py:230
↓ 1 callersMethod_config_check
(self)
train/trl/trainer/ddpo_trainer.py:550
↓ 1 callersMethod_config_is_group
(self, config)
eval/lmms-eval/lmms_eval/tasks/__init__.py:192
↓ 1 callersMethod_create_cache_slice
Create a sliced version of fast_dllm_cache for block processing.
train/llava/hooks/fast_dllm_hook.py:475
↓ 1 callersMethod_create_fast_attention_forward
Create fast attention forward method with caching support.
train/llava/hooks/fast_dllm_hook.py:58
↓ 1 callersFunction_decode_chatml
( tokens: List[int], *, stop_words: List[str], eod_token_ids: List[int], tokenizer: PreTrainedTokenizer, r
eval/lmms-eval/lmms_eval/models/model_utils/qwen/qwen_generate_utils.py:211
← previousnext →301–400 of 2,241, ranked by callers