MCPcopy Create free account

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

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

↓ 1 callersFunction_decode_default
( tokens: List[int], *, stop_words: List[str], eod_words: List[str], tokenizer: PreTrained
eval/lmms-eval/lmms_eval/models/model_utils/qwen/qwen_generate_utils.py:178
↓ 1 callersMethod_early_stop
r""" Handles the early stopping logic. If the policy KL is greater than the target KL, then the gradient is zeroed and the optimizatio
train/trl/trainer/ppo_trainer.py:825
↓ 1 callersMethod_fast_generate_with_embeds
Fast generation with embeddings using dLLM cache optimization. This method incorporates all fast dLLM related optimizations.
train/llava/hooks/fast_dllm_hook.py:174
↓ 1 callersMethod_flash_attention_forward
Calls the forward method of Flash Attention - if the input hidden states contain at least one padding token first unpad the input, th
train/llava/model/language_model/modeling_llada.py:505
↓ 1 callersMethod_flash_attention_forward
Calls the forward method of Flash Attention - if the input hidden states contain at least one padding token first unpad the input, th
train/llada_v_prepare/files/modeling_llada.py:504
↓ 1 callersMethod_generate_batched
Generate responses for a list of query tensors. args: query_tensors (list[torch.Tensor]): A list of query tensors to gen
train/trl/environment/base_environment.py:407
↓ 1 callersMethod_generate_samples
Generate samples from the model Args: iterations (int): Number of iterations to generate samples for batch_s
train/trl/trainer/ddpo_trainer.py:429
↓ 1 callersMethod_get_config
Get configuration parameters.
eval/lmms-eval/lmms_eval/logging_utils.py:106
↓ 1 callersMethod_get_config
Get configuration parameters.
eval/lmms-eval/lmms_eval/loggers/wandb_logger.py:59
↓ 1 callersMethod_get_model_name
Extracts the model name from the model arguments.
eval/lmms-eval/lmms_eval/loggers/evaluation_tracker.py:62
↓ 1 callersMethod_get_num_transfer_tokens
Precompute the number of tokens to transition at each step.
train/llava/hooks/fast_dllm_hook.py:460
↓ 1 callersMethod_get_task_and_group
Creates a dictionary of tasks index with the following metadata, - `type`, that can be either `task`, `python_task`, `group` or `tags`.
eval/lmms-eval/lmms_eval/tasks/__init__.py:378
↓ 1 callersFunction_get_unpad_data
(attention_mask)
train/llava/model/language_model/modeling_llada.py:65
↓ 1 callersFunction_get_unpad_data
(attention_mask)
train/llada_v_prepare/files/modeling_llada.py:64
↓ 1 callersFunction_get_variance
(self, timestep, prev_timestep)
train/trl/models/modeling_sd_base.py:170
↓ 1 callersMethod_get_yaml_path
(self, name)
eval/lmms-eval/lmms_eval/tasks/__init__.py:202
↓ 1 callersFunction_handle_non_serializable
Handle non-serializable objects by converting them to serializable types. Args: o (Any): The object to be handled. Returns:
eval/lmms-eval/lmms_eval/loggers/utils.py:35
↓ 1 callersMethod_has_lm_head
(self)
train/trl/models/modeling_value_head.py:296
↓ 1 callersMethod_init_rope
(self)
train/llava/model/language_model/modeling_llada.py:296
↓ 1 callersMethod_init_rope
(self)
train/llada_v_prepare/files/modeling_llada.py:295
↓ 1 callersMethod_init_weights
r""" Initializes the weights of the value head. The default initialization strategy is random. Users can pass a different initializati
train/trl/models/modeling_value_head.py:118
↓ 1 callersMethod_init_weights
r""" We initialize the weights of the value head.
train/trl/models/modeling_value_head.py:373
↓ 1 callersMethod_kl_penalty
(self, logprob: torch.FloatTensor, ref_logprob: torch.FloatTensor)
train/trl/trainer/ppo_trainer.py:1069
↓ 1 callersMethod_load_individual_task_or_group
( self, name_or_config: Optional[Union[str, dict]] = None, parent_name: Optional[str]
eval/lmms-eval/lmms_eval/tasks/__init__.py:234
↓ 1 callersMethod_log_results_as_artifact
Log results as JSON artifact to W&B.
eval/lmms-eval/lmms_eval/logging_utils.py:217
↓ 1 callersMethod_log_results_as_artifact
Log results as JSON artifact to W&B.
eval/lmms-eval/lmms_eval/loggers/wandb_logger.py:156
↓ 1 callersMethod_log_results_as_table
Generate and log evaluation results as a table to W&B.
eval/lmms-eval/lmms_eval/logging_utils.py:157
↓ 1 callersMethod_log_results_as_table
Generate and log evaluation results as a table to W&B.
eval/lmms-eval/lmms_eval/loggers/wandb_logger.py:106
↓ 1 callersFunction_mask_targets
(target, tokenized_lens, speakers)
train/llava/train/train.py:357
↓ 1 callersFunction_mask_targets
(target, tokenized_lens, speakers)
train/llava/train/train_dpo.py:331
↓ 1 callersMethod_maybe_log_save_evaluate
(self)
train/trl/trainer/iterative_sft_trainer.py:313
↓ 1 callersMethod_name_is_group
(self, name)
eval/lmms-eval/lmms_eval/tasks/__init__.py:177
↓ 1 callersMethod_name_is_python_task
(self, name)
eval/lmms-eval/lmms_eval/tasks/__init__.py:182
↓ 1 callersFunction_padding_224
(frames)
eval/lmms-eval/lmms_eval/models/internvideo2.py:117
↓ 1 callersFunction_padding_224
(frames)
eval/lmms-eval/lmms_eval/models/videochat2.py:114
↓ 1 callersMethod_post_request
(self, payload)
eval/lmms-eval/lmms_eval/tasks/mathverse/mathverse_evals.py:97
↓ 1 callersMethod_post_request
(self, payload)
eval/lmms-eval/lmms_eval/tasks/mmbench/mmbench_evals.py:131
↓ 1 callersMethod_post_request
(self, payload)
eval/lmms-eval/lmms_eval/tasks/mathvista/mathvista_evals.py:171
↓ 1 callersMethod_prepare_deepspeed
(self, model: PreTrainedModelWrapper)
train/trl/trainer/dpo_trainer.py:343
↓ 1 callersMethod_prepare_deepspeed
(self, model: PreTrainedModelWrapper)
train/trl/trainer/ppo_trainer.py:1373
↓ 1 callersMethod_prepare_metric_and_aggregation
(self)
eval/lmms-eval/lmms_eval/api/task.py:813
↓ 1 callersMethod_prepare_model_specific_config
(self)
eval/lmms-eval/lmms_eval/api/task.py:788
↓ 1 callersMethod_prepare_non_packed_dataloader
( self, tokenizer, dataset, dataset_text_field, max_seq_length,
train/trl/trainer/sft_trainer.py:371
↓ 1 callersMethod_prepare_packed_dataloader
( self, tokenizer, dataset, dataset_text_field, max_seq_length,
train/trl/trainer/sft_trainer.py:424
↓ 1 callersMethod_preprocess_accelerate
r""" Some pre-processing hacks to make the model `accelerate` compatible. Check https://github.com/huggingface/transformers/pull/21707
eval/lmms-eval/lmms_eval/models/mplug_owl_video/modeling_mplug_owl.py:1357
↓ 1 callersMethod_rope_scaling_validation
Validate the `rope_scaling` configuration.
train/llava/model/language_model/configuration_llada.py:156
↓ 1 callersMethod_rope_scaling_validation
Validate the `rope_scaling` configuration.
train/llada_v_prepare/files/configuration_llada.py:156
↓ 1 callersMethod_sanitize_results_dict
Sanitize the results dictionary.
eval/lmms-eval/lmms_eval/logging_utils.py:117
↓ 1 callersMethod_sanitize_results_dict
Sanitize the results dictionary.
eval/lmms-eval/lmms_eval/loggers/wandb_logger.py:70
↓ 1 callersMethod_save_checkpoint
(self, model, trial, metrics=None)
train/llava/train/llava_trainer.py:438
↓ 1 callersMethod_set_signature_columns_if_needed
(self)
train/trl/trainer/ppo_trainer.py:377
↓ 1 callersMethod_setup_optimizer
(self, trainable_layers_parameters)
train/trl/trainer/ddpo_trainer.py:405
↓ 1 callersMethod_step_safety_checker
Check if the input data is valid for training. Args: input_ids (List[`torch.LongTensor`]): List of tenso
train/trl/trainer/iterative_sft_trainer.py:156
↓ 1 callersMethod_step_safety_checker
Check if the input data is valid for training. Args: batch_size (int): Batch size from the config file.
train/trl/trainer/ppo_trainer.py:538
↓ 1 callersFunction_tokenize_prompt
(prompt, tokenizer, add_BOS=False, media_info={"<image>": 65, "<|video|>": 65}, **kwargs)
eval/lmms-eval/lmms_eval/models/mplug_owl_video/processing_mplug_owl.py:232
↓ 1 callersFunction_tokenize_prompts_and_batch
Given a set of prompts and number of tokens to generate: - tokenize prompts - set the sequence length to be the max of length of prompts
eval/lmms-eval/lmms_eval/models/mplug_owl_video/processing_mplug_owl.py:190
↓ 1 callersMethod_tokens_match
(self, prev_tokens: torch.LongTensor, tokens: List[int])
eval/lmms-eval/lmms_eval/models/model_utils/qwen/qwen_generate_utils.py:310
↓ 1 callersMethod_train_batched_samples
Train on a batch of samples. Main training segment Args: inner_epoch (int): The current inner epoch epoch (i
train/trl/trainer/ddpo_trainer.py:491
↓ 1 callersMethod_trl_activate_neftune
r""" Activates the neftune as presented in this code: https://github.com/neelsjain/NEFTune and paper: https://arxiv.org/abs/2310.05914
train/trl/trainer/sft_trainer.py:466
↓ 1 callersMethod_upad_input
(self, query_layer, key_layer, value_layer, attention_mask, query_length)
train/llava/model/language_model/modeling_llada.py:566
↓ 1 callersMethod_upad_input
(self, query_layer, key_layer, value_layer, attention_mask, query_length)
train/llada_v_prepare/files/modeling_llada.py:565
↓ 1 callersMethod_update_causal_mask
(self, attention_mask, input_tensor, cache_position, is_causal=True)
train/llava/model/language_model/modeling_llada.py:1070
↓ 1 callersMethod_update_causal_mask
(self, attention_mask, input_tensor, cache_position, is_causal=True)
train/llada_v_prepare/files/modeling_llada.py:1066
↓ 1 callersMethodadd_and_load_reward_modeling_adapter
r""" Add and load a reward modeling adapter. This method can only be used if the model is a `PeftModel` and if you have initialized th
train/trl/models/modeling_base.py:415
↓ 1 callersMethodadd_token_per_frame
(self, image_feature)
train/llava/model/llava_arch.py:245
↓ 1 callersFunctionanls
https://github.com/QwenLM/Qwen-VL/blob/master/eval_mm/infographicsvqa_eval.py
eval/lmms-eval/lmms_eval/tasks/docvqa/utils.py:45
↓ 1 callersFunctionanls
https://github.com/QwenLM/Qwen-VL/blob/master/eval_mm/infographicsvqa_eval.py
eval/lmms-eval/lmms_eval/tasks/infovqa/utils.py:45
↓ 1 callersMethodanswer
(self, img_list, input_text, max_new_tokens=300, num_beams=1, min_length=1, top_p=0.9, repetition_penalty=1.0,
eval/lmms-eval/lmms_eval/models/moviechat.py:285
↓ 1 callersMethodapply
(self, resps, docs)
eval/lmms-eval/lmms_eval/tasks/muirbench/utils.py:87
↓ 1 callersMethodapply
(self, resps, docs)
eval/lmms-eval/lmms_eval/tasks/ai2d/utils.py:53
↓ 1 callersFunctionapply_delta
(base_model_path, target_model_path, delta_path)
train/llava/model/apply_delta.py:14
↓ 1 callersMethodapply_filters
(self)
eval/lmms-eval/lmms_eval/api/task.py:592
↓ 1 callersFunctionapply_rotary_pos_emb
(q, k, cos, sin, position_ids=None, unsqueeze_dim=1)
train/llava/hooks/cache_hook_LLaDA_V.py:15
↓ 1 callersFunctionbootstrap_stderr
(f, xs, iters)
eval/lmms-eval/lmms_eval/api/metrics.py:505
↓ 1 callersMethodbuild_Qformer
(self, vision_width, cross_attention_freq, num_query_token)
train/llava/model/multimodal_resampler/qformer.py:1117
↓ 1 callersMethodbuild_all_requests
Build a set of Instances for a task, and store them in task.instances
eval/lmms-eval/lmms_eval/api/task.py:382
↓ 1 callersFunctionbuild_demo
(embed_mode)
train/llava/serve/gradio_multi_image.py:333
↓ 1 callersFunctionbuild_demo
(embed_mode)
train/llava/serve/gradio_web_server.py:326
↓ 1 callersMethodbuild_option_str
(self, option_list)
eval/lmms-eval/lmms_eval/tasks/mmbench/mmbench_evals.py:33
↓ 1 callersMethodbuild_prompt
(self, question, options, prediction)
eval/lmms-eval/lmms_eval/tasks/mmbench/mmbench_evals.py:59
↓ 1 callersMethodcalculate_aggregate_metric
(self, bootstrap_iters=100000)
eval/lmms-eval/lmms_eval/evaluator_utils.py:106
↓ 1 callersMethodcalculate_hit_rates
(self, data)
eval/lmms-eval/lmms_eval/tasks/mmbench/mmbench_evals.py:223
↓ 1 callersFunctioncalculate_image_dimensions_multiprocess
(filtered_data, images_folder, num_processes=256)
train/playground/2d_hist.py:33
↓ 1 callersMethodcalculate_loss
Calculate the loss for a batch of an unpacked sample Args: latents (torch.Tensor): The latents sampled f
train/trl/trainer/ddpo_trainer.py:325
↓ 1 callersFunctioncalculate_tokenized_lengths
(data)
train/playground/2d_hist.py:57
↓ 1 callersMethodcan_infer_option
(self, answer, num_choice=5)
eval/lmms-eval/lmms_eval/tasks/mmbench/mmbench_evals.py:81
↓ 1 callersMethodcan_infer_text
(self, answer, choices)
eval/lmms-eval/lmms_eval/tasks/mmbench/mmbench_evals.py:109
↓ 1 callersFunctioncheck_is_number
Check if the given string a number. https://github.com/MMMU-Benchmark/MMMU/blob/51ce7f3e829c16bb44bc5445782686b4c3508794/eval/eval_utils.py#L
eval/lmms-eval/lmms_eval/tasks/mmmu_pro/utils.py:363
↓ 1 callersFunctioncheck_is_number
Check if the given string a number. https://github.com/MMMU-Benchmark/MMMU/blob/51ce7f3e829c16bb44bc5445782686b4c3508794/eval/eval_utils.py#L
eval/lmms-eval/lmms_eval/tasks/mmmu/utils.py:358
↓ 1 callersFunctioncheck_is_number
Check if the given string a number. https://github.com/MMMU-Benchmark/MMMU/blob/51ce7f3e829c16bb44bc5445782686b4c3508794/eval/eval_utils.py#L
eval/lmms-eval/lmms_eval/tasks/mmmu/utils_group_img.py:463
↓ 1 callersMethodcheck_item_structure
(self, item)
train/playground/data_checker.py:62
↓ 1 callersFunctioncli_evaluate
(args: Union[argparse.Namespace, None] = None)
eval/lmms-eval/lmms_eval/__main__.py:271
↓ 1 callersFunctioncli_evaluate_single
(args: Union[argparse.Namespace, None] = None)
eval/lmms-eval/lmms_eval/__main__.py:363
↓ 1 callersFunctionclip_by_value
Tensor extension to torch.clamp https://github.com/pytorch/pytorch/issues/2793#issuecomment-428784713
train/trl/core.py:180
↓ 1 callersMethodcollate
(self, batch)
train/llava/train/train_dpo.py:1192
↓ 1 callersMethodcompute_advantages
( self, values: torch.FloatTensor, rewards: torch.FloatTensor, mask: torch.Flo
train/trl/trainer/ppo_trainer.py:1085
↓ 1 callersMethodcompute_loss
( self, model: Union[PreTrainedModel, nn.Module], inputs: Dict[str, Union[torch.Tensor
train/trl/trainer/dpo_trainer.py:1005
↓ 1 callersMethodcompute_loss
( self, model: Union[PreTrainedModel, nn.Module], inputs: Dict[str, Union[torch.Tensor
train/trl/trainer/reward_trainer.py:196
↓ 1 callersMethodcompute_reward
Compute the reward for a list of histories.
train/trl/environment/base_environment.py:353
↓ 1 callersMethodcompute_rewards
(self, prompt_image_pairs, is_async=False)
train/trl/trainer/ddpo_trainer.py:212
← previousnext →401–500 of 2,241, ranked by callers