MCPcopy Create free account

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

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

↓ 1 callersFunctionget_anyres_image_grid_shape
Calculate the shape of the image patch grid after the preprocessing for images of any resolution. Args: image_size (tuple): The size
llava/mm_utils.py:213
↓ 1 callersMethodget_availale_master_addr_port
(self)
llava-critic-r1/EasyR1/verl/single_controller/base/worker.py:59
↓ 1 callersMethodget_batch_logps
Compute the log probabilities of the given labels under the given logits. Args: logits: Logits of the model (unnormalized). Shape
trl/trainer/dpo_trainer.py:796
↓ 1 callersMethodget_batch_samples
Generate samples from the model and reference model for the given batch of inputs.
trl/trainer/dpo_trainer.py:1029
↓ 1 callersFunctionget_checkpoint_tracker_filename
Tracker file rescords the latest chckpoint during training to restart from.
llava-critic-r1/EasyR1/verl/utils/checkpoint/checkpoint_manager.py:131
↓ 1 callersFunctionget_chunk
(lst, n, k)
llava/eval/model_vqa.py:29
↓ 1 callersFunctionget_constant_schedule_with_warmup
Get the lr scheduler for constant lr.
llava-critic-r1/EasyR1/verl/utils/torch_functional.py:190
↓ 1 callersFunctionget_device_flops
(unit: str = "T")
llava-critic-r1/EasyR1/verl/utils/flops_counter.py:27
↓ 1 callersFunctionget_formatting_func_from_dataset
r""" Finds the correct formatting function based on the dataset structure. Currently supported datasets are: - `ChatML` with [{"role": str, "c
trl/extras/dataset_formatting.py:60
↓ 1 callersFunctionget_fsdp_wrap_policy
Get FSDP wrap policy for the model. Args: module: The module to get wrap policy for
llava-critic-r1/EasyR1/verl/utils/fsdp_utils.py:52
↓ 1 callersFunctionget_global_statistics
Computes element-wise mean and variance of the tensor across processes. Reference: https://github.com/OpenLMLab/MOSS-RLHF/blob/40b91eb2f2b71b
trl/trainer/utils.py:501
↓ 1 callersFunctionget_init_fn
(model: nn.Module, device: Union[str, torch.device])
llava-critic-r1/EasyR1/verl/utils/fsdp_utils.py:30
↓ 1 callersFunctionget_mm_adapter_state_maybe_zero_3
(named_params, keys_to_match)
llava/train/train.py:239
↓ 1 callersFunctionget_mm_adapter_state_maybe_zero_3
(named_params, keys_to_match)
llava/train/train_dpo.py:220
↓ 1 callersFunctionget_modality_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
llava/train/llava_trainer.py:105
↓ 1 callersFunctionget_modality_length_grouped_indices_auto
(lengths, batch_size, world_size, generator=None)
llava/train/llava_trainer.py:183
↓ 1 callersFunctionget_model
(model_args, training_args, bnb_model_from_pretrained_args)
llava/train/train.py:1299
↓ 1 callersFunctionget_model
(model_args, training_args, bnb_model_from_pretrained_args)
llava/train/train_dpo.py:1314
↓ 1 callersMethodget_model
(self)
llava/model/language_model/llava_qwen.py:60
↓ 1 callersMethodget_model
(self)
llava/model/language_model/llava_qwen_moe.py:60
↓ 1 callersMethodget_model
(self)
llava/model/language_model/llava_llama.py:66
↓ 1 callersMethodget_model
(self)
llava/model/language_model/llava_gemma.py:53
↓ 1 callersMethodget_model
(self)
llava/model/language_model/llava_mixtral.py:54
↓ 1 callersMethodget_model
(self)
llava/model/language_model/llava_mistral.py:59
↓ 1 callersFunctionget_model_config
(model_name)
llava/model/multimodal_encoder/eva_clip/factory.py:56
↓ 1 callersMethodget_partitions
(self)
llava-critic-r1/EasyR1/verl/utils/seqlen_balancing.py:56
↓ 1 callersFunctionget_peft_state_maybe_zero_3
(named_params, bias)
llava/train/train.py:206
↓ 1 callersFunctionget_peft_state_maybe_zero_3
(named_params, bias)
llava/train/train_dpo.py:187
↓ 1 callersFunctionget_peft_state_non_lora_maybe_zero_3
(named_params, require_grad_only=True)
llava/train/train.py:231
↓ 1 callersFunctionget_peft_state_non_lora_maybe_zero_3
(named_params, require_grad_only=True)
llava/train/train_dpo.py:212
↓ 1 callersFunctionget_predefined_dispatch_fn
(dispatch_mode: Dispatch)
llava-critic-r1/EasyR1/verl/single_controller/base/decorator.py:126
↓ 1 callersFunctionget_predefined_execute_fn
Note that here we only asks execute_all and execute_rank_zero to be implemented Leave the choice of how these two functions handle argument '
llava-critic-r1/EasyR1/verl/single_controller/base/decorator.py:156
↓ 1 callersFunctionget_random_string
(length: int)
llava-critic-r1/EasyR1/verl/single_controller/ray/base.py:37
↓ 1 callersFunctionget_requires
()
llava-critic-r1/EasyR1/setup.py:29
↓ 1 callersFunctionget_rope_index
Gets the position ids for Qwen2-VL, it should be generated before sharding the sequence. The batch dim has been removed and the input_ids sho
llava-critic-r1/EasyR1/verl/models/transformers/qwen2_vl.py:36
↓ 1 callersMethodget_sft_loss
(self, logits, labels)
trl/trainer/dpo_trainer.py:833
↓ 1 callersFunctionget_tokenize_len
(prompts)
llava/train/train.py:937
↓ 1 callersFunctionget_tokenize_len
(prompts)
llava/train/train_dpo.py:879
↓ 1 callersMethodget_train_dataloader
Returns the training [`~torch.utils.data.DataLoader`]. Will use no sampler if `train_dataset` does not implement `__len__`, a random
llava/train/llava_trainer.py:540
↓ 1 callersMethodget_trainable_layers
Returns the trainable parameters of the pipeline
trl/models/modeling_sd_base.py:137
↓ 1 callersFunctionget_ulysses_sequence_parallel_rank
Get ulysses sequence parallel rank.
llava-critic-r1/EasyR1/verl/utils/ulysses.py:55
↓ 1 callersFunctionget_variable_length_grouped_indices
(lengths, batch_size, world_size, megabatch_mult=8, generator=None)
llava/train/llava_trainer.py:89
↓ 1 callersFunctionget_version
()
llava-critic-r1/EasyR1/setup.py:21
↓ 1 callersMethodinit_parameters
(self)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/modified_resnet.py:139
↓ 1 callersMethodinit_parameters
(self)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transformer.py:632
↓ 1 callersMethodinit_workers
Init resource pool and worker group
llava-critic-r1/EasyR1/verl/trainer/ray_trainer.py:329
↓ 1 callersFunctioninsert_separator
(X, sep)
llava/mm_utils.py:344
↓ 1 callersFunctioninstructions_formatting_function
r""" return a callable function that takes in an "instructions" dataset and returns a formatted dataset, based on the tokenizer apply chat tem
trl/extras/dataset_formatting.py:34
↓ 1 callersFunctionis_accelerate_greater_20_0
()
trl/import_utils.py:32
↓ 1 callersFunctionis_bitsandbytes_available
()
trl/import_utils.py:65
↓ 1 callersFunctionis_global_master
(args)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/utils.py:290
↓ 1 callersFunctionis_local_master
(args)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/utils.py:293
↓ 1 callersFunctionis_pretrained_cfg
(model: str, tag: str)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/pretrained.py:204
↓ 1 callersFunctionis_sci_notation
(number: float)
llava-critic-r1/EasyR1/verl/utils/py_functional.py:30
↓ 1 callersFunctionis_torch_greater_2_0
()
trl/import_utils.py:49
↓ 1 callersFunctionis_torchvision_available
()
trl/import_utils.py:72
↓ 1 callersFunctionis_transformers_greater_than
(version: str)
trl/import_utils.py:44
↓ 1 callersFunctionis_unsloth_available
()
trl/import_utils.py:28
↓ 1 callersMethodis_video_file
(self, filename)
llava/conversation.py:248
↓ 1 callersMethodjudge_multi_choice
(self,sample)
llava/eval/evaluate_interleave.py:100
↓ 1 callersFunctionkarmarkar_karp
(seqlen_list: List[int], k_partitions: int, equal_size: bool)
llava-critic-r1/EasyR1/verl/utils/seqlen_balancing.py:97
↓ 1 callersFunctionlist_models
enumerate available model architectures based on config files
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/factory.py:57
↓ 1 callersMethodlist_models
(self)
llava/serve/controller.py:109
↓ 1 callersFunctionlist_openai_models
Returns the names of available CLIP models
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/openai.py:18
↓ 1 callersFunctionlist_pretrained_models_by_tag
return all models having the specified pretrain tag
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/pretrained.py:186
↓ 1 callersFunctionlist_pretrained_tags_by_model
return all pretrain tags for the specified model architecture
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/pretrained.py:196
↓ 1 callersFunctionload
(module, prefix="")
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/factory.py:208
↓ 1 callersFunctionload_checkpoint
(model, checkpoint_path, model_key="model|module|state_dict", strict=True)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/factory.py:113
↓ 1 callersMethodload_checkpoint
Light wrapper around accelerate's register_lad_state_pre_hook which is run before loading state
trl/models/modeling_sd_base.py:149
↓ 1 callersFunctionload_clip_visual_state_dict
(checkpoint_path: str, map_location: str = "cpu", is_openai: bool = False, skip_list: list = [])
llava/model/multimodal_encoder/eva_clip/eva_vit.py:743
↓ 1 callersFunctionload_data
(json_path)
scripts/archived/data_info.py:9
↓ 1 callersFunctionload_data
(json_path)
playground/2d_hist.py:12
↓ 1 callersMethodload_data
(self)
playground/data_checker.py:16
↓ 1 callersFunctionload_from_hf
(repo_id, filename, subfolder=None)
llava/model/builder.py:99
↓ 1 callersFunctionload_image
(image_file)
predict.py:140
↓ 1 callersFunctionload_image
(image_file)
llava/serve/cli.py:18
↓ 1 callersMethodload_model
(self)
llava/model/multimodal_encoder/imagebind.py:27
↓ 1 callersFunctionload_openai_model
Load a CLIP model Parameters ---------- name : str A model name listed by `clip.available_models()`, or the path to a model check
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/openai.py:23
↓ 1 callersFunctionload_pretrained_checkpoint
(model, visual_checkpoint_path, text_checkpoint_path, strict=True, visual_model=None, text_model=None, model_k
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/factory.py:270
↓ 1 callersFunctionload_progress
(progress_file)
playground/sgl_llava_inference_multinode.py:18
↓ 1 callersMethodload_rng_state
(rng_state: Dict[str, Any])
llava-critic-r1/EasyR1/verl/utils/checkpoint/checkpoint_manager.py:103
↓ 1 callersFunctionload_state_dict
(checkpoint_path: str, map_location: str = "cpu", model_key: str = "model|module|state_dict", is_openai: bool
llava/model/multimodal_encoder/eva_clip/eva_vit.py:714
↓ 1 callersFunctionload_video
(video_path,args)
playground/demo/video_demo.py:70
↓ 1 callersFunctionload_video_base64
(path)
playground/demo/video_demo.py:93
↓ 1 callersMethodlocal_mkdir
(path: str)
llava-critic-r1/EasyR1/verl/utils/checkpoint/checkpoint_manager.py:74
↓ 1 callersMethodlog_generation
(self, samples: List[Tuple[str, str, str, float]], step: int)
llava-critic-r1/EasyR1/verl/utils/logger/logger.py:160
↓ 1 callersFunctionlog_probs_from_logits_flash_attn
(logits: torch.Tensor, labels: torch.Tensor)
llava-critic-r1/EasyR1/verl/utils/torch_functional.py:38
↓ 1 callersFunctionlog_seqlen_unbalance
(seqlen_list: List[int], partitions: List[List[int]], prefix)
llava-critic-r1/EasyR1/verl/utils/seqlen_balancing.py:184
↓ 1 callersMethodloss
( self, advantages: torch.Tensor, clip_range: float, ratio: torch.Tensor,
trl/trainer/ddpo_trainer.py:391
↓ 1 callersMethodloss
Calculate policy and value losses. Args: old_logprobs (`torch.FloatTensor`): Log probabilities of the mo
trl/trainer/ppo_trainer.py:1113
↓ 1 callersFunctionmain
(args)
llava/serve/cli.py:27
↓ 1 callersFunctionmain
()
llava/serve/test_message.py:9
↓ 1 callersFunctionmain
()
scripts/archived/data_info.py:58
↓ 1 callersFunctionmain
(file_path, image_root, operation, video_root, threshold=None)
playground/data_checker.py:335
↓ 1 callersFunctionmain
()
playground/equal_splitter.py:25
↓ 1 callersFunctionmain
(args)
playground/sgl_llava_inference_multinode.py:41
↓ 1 callersFunctionmain
()
playground/2d_hist.py:66
↓ 1 callersFunctionmain
()
llava-critic-r1/EasyR1/setup.py:41
↓ 1 callersFunctionmain
()
llava-critic-r1/EasyR1/verl/trainer/main.py:99
↓ 1 callersFunctionmake_delta
(base_model_path, target_model_path, delta_path, hub_repo_id)
llava/model/make_delta.py:14
← previousnext →501–600 of 1,515, ranked by callers