MCPcopy Create free account

hub / github.com/LLaVA-VL/LLaVA-NeXT / functions

Functions1,515 in github.com/LLaVA-VL/LLaVA-NeXT

↓ 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
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
llava/mm_utils.py:119
↓ 2 callersMethodsend_heart_beat
(self)
llava/serve/model_worker.py:77
↓ 2 callersMethodsend_heart_beat
(self)
llava/serve/sglang_worker.py:96
↓ 2 callersMethodset_grad_checkpointing
(self, enable=True)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/model.py:249
↓ 2 callersMethodset_progress_bar_config
Sets the progress bar config for the pipeline
trl/models/modeling_sd_base.py:125
↓ 2 callersFunctionset_ulysses_sequence_parallel_group
Set ulysses sequence parallel process group.
llava-critic-r1/EasyR1/verl/utils/ulysses.py:31
↓ 2 callersMethodshow_colour_legend
Print the colour legend.
trl/environment/base_environment.py:189
↓ 2 callersFunctionsplit_to_even_chunks
Split a list of indices into `chunks` chunks of roughly equal lengths.
llava/train/llava_trainer.py:67
↓ 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
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
trl/trainer/ddpo_trainer.py:229
↓ 2 callersMethodstore_metrics
(self, metrics: Dict[str, float], train_eval: Literal["train", "eval"] = "train")
trl/trainer/dpo_trainer.py:1115
↓ 2 callersMethodtask_end_check
Check if the current generation sequence has finished.
trl/environment/base_environment.py:388
↓ 2 callersMethodtasks_end_check
Check if the current generation sequences have finished.
trl/environment/base_environment.py:377
↓ 2 callersMethodtext_encoder
Returns the text encoder used for encoding text inputs
trl/models/modeling_sd_base.py:112
↓ 2 callersFunctiontrain
(attn_implementation=None)
llava/train/train.py:1452
↓ 2 callersFunctiontrl_sanitze_kwargs_for_tagging
(model, tag_names, kwargs=None)
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.
llava/model/llava_arch.py:127
↓ 2 callersMethodupdate_options
(self, options: Dict)
llava-critic-r1/EasyR1/verl/single_controller/ray/base.py:172
↓ 2 callersFunctionviolates_moderation
Check whether the text violates OpenAI moderation API.
llava/utils.py:173
↓ 2 callersFunctionwhitespace_clean
(text)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/tokenizer.py:68
↓ 2 callersMethodzo_forward
Compute the loss. Args: model (nn.Module): The model. inputs (Dict): Batch of inputs. Returns:
llava/train/llava_trainer.py:315
↓ 1 callersFunctionFeedForward
(dim, mult=4)
llava/model/multimodal_resampler/perceiver.py:20
↓ 1 callersMethod__init__
(self, config: Qwen2Config)
llava/model/language_model/llava_qwen.py:42
↓ 1 callersMethod__init__
(self, config: Qwen2MoeConfig)
llava/model/language_model/llava_qwen_moe.py:42
↓ 1 callersMethod__init__
(self, config: LlamaConfig)
llava/model/language_model/llava_llama.py:47
↓ 1 callersMethod__init__
(self, config: GemmaConfig)
llava/model/language_model/llava_gemma.py:37
↓ 1 callersMethod__init__
(self, config: MptConfig)
llava/model/language_model/llava_mpt.py:31
↓ 1 callersMethod__init__
(self, config: MixtralConfig)
llava/model/language_model/llava_mixtral.py:37
↓ 1 callersMethod__init__
(self, config: MistralConfig)
llava/model/language_model/llava_mistral.py:41
↓ 1 callersMethod__init__
(self)
llava/model/multimodal_projector/builder.py:9
↓ 1 callersMethod__init__
(self, vision_tower, args, delay_load=False)
llava/model/multimodal_encoder/mlcd_encoder.py:16
↓ 1 callersMethod__init__
(self, vision_tower, args, delay_load=False)
llava/model/multimodal_encoder/clip_encoder.py:13
↓ 1 callersMethod__init__
( self, dim, pt_seq_len, ft_seq_len=None, custom_freqs=None, f
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/rope.py:33
↓ 1 callersMethod__init__
(self, use_pooler_output=True)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/hf_model.py:67
↓ 1 callersMethod__init__
(self)
llava/model/multimodal_encoder/eva_clip/eva_clip_processors.py:13
↓ 1 callersMethod__init__
Calculates the running mean and standard deviation of a data stream. Reference: https://github.com/OpenLMLab/MOSS-RLHF/blob/40b91eb2f
trl/trainer/utils.py:461
↓ 1 callersFunction_add_speaker_and_signal
Add speaker and start/end signal on each round.
llava/train/train.py:361
↓ 1 callersFunction_add_speaker_and_signal
Add speaker and start/end signal on each round.
llava/train/train_dpo.py:342
↓ 1 callersMethod_balance_batch
Reorder the data on single controller such that each dp rank gets similar total tokens
llava-critic-r1/EasyR1/verl/trainer/ray_trainer.py:442
↓ 1 callersMethod_bind_worker_method
Bind the worker method to the WorkerGroup
llava-critic-r1/EasyR1/verl/single_controller/base/worker_group.py:134
↓ 1 callersFunction_bind_workers_method_to_parent
Binds the methods of each worker to the WorkerDict. Note that we only bind public methods that are decorated by register
llava-critic-r1/EasyR1/verl/single_controller/ray/base.py:414
↓ 1 callersMethod_block_until_all_workers_alive
(self)
llava-critic-r1/EasyR1/verl/single_controller/base/worker_group.py:113
↓ 1 callersMethod_build_model_optimizer
( self, model_config: ModelConfig, fsdp_config: FSDPConfig, optim_config: Opti
llava-critic-r1/EasyR1/verl/workers/fsdp_workers.py:161
↓ 1 callersMethod_build_rollout
(self)
llava-critic-r1/EasyR1/verl/workers/fsdp_workers.py:324
↓ 1 callersFunction_build_vision_tower
(vision_tower_path: str, embed_dim: int, vision_cfg: CLIPVisionCfg, **kwargs)
llava/model/multimodal_encoder/eva_clip/eva_vit.py:800
↓ 1 callersFunction_camel2snake
(s)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/hf_model.py:31
↓ 1 callersFunction_check_and_sort_partitions
(partitions)
llava-critic-r1/EasyR1/verl/utils/seqlen_balancing.py:168
↓ 1 callersFunction_check_dispatch_mode
(dispatch_mode: Union[Dispatch, Dict[Literal["dispatch_fn", "collect_fn"], FunctionType]])
llava-critic-r1/EasyR1/verl/single_controller/base/decorator.py:168
↓ 1 callersFunction_check_execute_mode
(execute_mode: Execute)
llava-critic-r1/EasyR1/verl/single_controller/base/decorator.py:178
↓ 1 callersMethod_check_resource_available
Check if the resource pool can be satisfied in this ray cluster.
llava-critic-r1/EasyR1/verl/trainer/ray_trainer.py:106
↓ 1 callersFunction_concat_data_proto_or_future
(outputs: List[DataProto])
llava-critic-r1/EasyR1/verl/single_controller/base/decorator.py:76
↓ 1 callersMethod_config_check
(self)
trl/trainer/ddpo_trainer.py:550
↓ 1 callersMethod_configure_before_init
(self, register_center_name: str, rank: int)
llava-critic-r1/EasyR1/verl/single_controller/base/worker.py:113
↓ 1 callersMethod_configure_with_meta
This function should only be called inside by WorkerGroup
llava-critic-r1/EasyR1/verl/single_controller/base/worker.py:158
↓ 1 callersFunction_custom_flash_attention_forward
Patches flash attention forward to handle 3D position ids in mrope. (3, batch_size, seq_length)
llava-critic-r1/EasyR1/verl/models/transformers/flash_attention_utils.py:61
↓ 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
trl/trainer/ppo_trainer.py:825
↓ 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
llava/model/language_model/modeling_llama.py:478
↓ 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
llava/model/language_model/modeling_llama.py:659
↓ 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
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
trl/trainer/ddpo_trainer.py:429
↓ 1 callersMethod_get_free_port
(self)
llava-critic-r1/EasyR1/verl/single_controller/base/worker.py:54
↓ 1 callersFunction_get_logit_bias
(model_path: str, trust_remote_code: bool)
llava-critic-r1/EasyR1/verl/workers/rollout/vllm_rollout_spmd.py:41
↓ 1 callersFunction_get_model_size
Compute the model size.
llava-critic-r1/EasyR1/verl/utils/model_utils.py:38
↓ 1 callersMethod_get_node_ip
(self)
llava-critic-r1/EasyR1/verl/single_controller/base/worker.py:45
↓ 1 callersFunction_get_variance
(self, timestep, prev_timestep)
trl/models/modeling_sd_base.py:170
↓ 1 callersMethod_has_lm_head
(self)
trl/models/modeling_value_head.py:296
↓ 1 callersFunction_in_projection_packed
https://github.com/pytorch/pytorch/blob/db2a237763eb8693a20788be94f8c192e762baa8/torch/nn/functional.py#L4726
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transformer.py:123
↓ 1 callersMethod_init_rope
(self)
llava/model/language_model/modeling_llama.py:276
↓ 1 callersMethod_init_weights
r""" Initializes the weights of the value head. The default initialization strategy is random. Users can pass a different initializati
trl/models/modeling_value_head.py:118
↓ 1 callersMethod_init_weights
r""" We initialize the weights of the value head.
trl/models/modeling_value_head.py:373
↓ 1 callersMethod_init_with_detached_workers
(self, worker_names: List[str])
llava-critic-r1/EasyR1/verl/single_controller/ray/base.py:244
↓ 1 callersMethod_init_with_resource_pool
( self, resource_pool: RayResourcePool, ray_cls_with_init: RayClassWithInitArgs, bin_pack: bool, detac
llava-critic-r1/EasyR1/verl/single_controller/ray/base.py:249
↓ 1 callersMethod_is_worker_alive
(self, worker)
llava-critic-r1/EasyR1/verl/single_controller/base/worker_group.py:110
↓ 1 callersMethod_kl_penalty
(self, logprob: torch.FloatTensor, ref_logprob: torch.FloatTensor)
trl/trainer/ppo_trainer.py:1069
↓ 1 callersMethod_load_checkpoint
(self)
llava-critic-r1/EasyR1/verl/trainer/ray_trainer.py:420
↓ 1 callersMethod_make_weight_iterator
( self, actor_weights: Dict[str, Union[torch.Tensor, DTensor]] )
llava-critic-r1/EasyR1/verl/workers/sharding_manager/fsdp_vllm.py:82
↓ 1 callersFunction_mask_targets
(target, tokenized_lens, speakers)
llava/train/train.py:350
↓ 1 callersFunction_mask_targets
(target, tokenized_lens, speakers)
llava/train/train_dpo.py:331
↓ 1 callersFunction_materialize_futures
(*args, **kwargs)
llava-critic-r1/EasyR1/verl/single_controller/base/decorator.py:182
↓ 1 callersMethod_maybe_log_val_generations
Log a table of validation samples
llava-critic-r1/EasyR1/verl/trainer/ray_trainer.py:256
↓ 1 callersFunction_natural_key
(string_)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/factory.py:29
↓ 1 callersFunction_natural_key
(string_)
llava/model/multimodal_encoder/eva_clip/factory.py:15
↓ 1 callersMethod_optimizer_step
(self)
llava-critic-r1/EasyR1/verl/workers/critic/dp_critic.py:124
↓ 1 callersMethod_optimizer_step
(self)
llava-critic-r1/EasyR1/verl/workers/actor/dp_actor.py:188
↓ 1 callersMethod_prepare_deepspeed
(self, model: PreTrainedModelWrapper)
trl/trainer/dpo_trainer.py:343
↓ 1 callersMethod_prepare_deepspeed
(self, model: PreTrainedModelWrapper)
trl/trainer/ppo_trainer.py:1373
↓ 1 callersMethod_prepare_non_packed_dataloader
( self, tokenizer, dataset, dataset_text_field, max_seq_length,
trl/trainer/sft_trainer.py:371
↓ 1 callersMethod_prepare_packed_dataloader
( self, tokenizer, dataset, dataset_text_field, max_seq_length,
trl/trainer/sft_trainer.py:424
↓ 1 callersMethod_rename_weight_keys
(self, actor_weights: Dict[str, Union[torch.Tensor, DTensor]], model: PreTrainedModel)
llava-critic-r1/EasyR1/verl/workers/sharding_manager/fsdp_vllm.py:62
↓ 1 callersMethod_save_checkpoint
(self, model, trial, metrics=None)
llava/train/llava_trainer.py:664
↓ 1 callersMethod_save_mezo_state
Save the MeZO state checkpoint that includes the noise seeds and the accumulated grad estimates.
llava/train/llava_trainer.py:432
↓ 1 callersMethod_set_signature_columns_if_needed
(self)
trl/trainer/ppo_trainer.py:377
↓ 1 callersMethod_setup_optimizer
(self, trainable_layers_parameters)
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
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.
trl/trainer/ppo_trainer.py:538
↓ 1 callersMethod_train_batched_samples
Train on a batch of samples. Main training segment Args: inner_epoch (int): The current inner epoch epoch (i
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
trl/trainer/sft_trainer.py:466
↓ 1 callersMethod_upad_input
(self, query_layer, key_layer, value_layer, attention_mask, query_length)
llava/model/language_model/modeling_llama.py:535
↓ 1 callersMethod_upad_input
(self, query_layer, key_layer, value_layer, attention_mask, query_length)
llava/model/language_model/modeling_llama.py:712
← previousnext →301–400 of 1,515, ranked by callers