MCPcopy Create free account

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

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

Methodprepare_inputs_for_generation
(self, input_ids, past_key_values=None, attention_mask=None, inputs_embeds=None, **kwargs)
llava/model/language_model/modeling_llama.py:1351
Methodprepare_inputs_for_generation
(self, input_ids, past_key_values=None, inputs_embeds=None, **kwargs)
llava/model/language_model/llava_llama.py:144
Methodprepare_inputs_for_generation
(self, input_ids, past_key_values=None, inputs_embeds=None, **kwargs)
llava/model/language_model/llava_gemma.py:110
Methodprepare_inputs_for_generation
(self, input_ids, past_key_values=None, inputs_embeds=None, **kwargs)
llava/model/language_model/llava_mpt.py:97
Methodprepare_inputs_for_generation
(self, input_ids, past_key_values=None, inputs_embeds=None, **kwargs)
llava/model/language_model/llava_mixtral.py:131
Methodprepare_inputs_for_generation
(self, input_ids, past_key_values=None, inputs_embeds=None, **kwargs)
llava/model/language_model/llava_mistral.py:115
Methodpreprocess
(self, images, return_tensors)
llava/model/multimodal_encoder/eva_clip/eva_clip_processors.py:52
Methodpreprocess_data
All gather across tp group to make each rank has identical input.
llava-critic-r1/EasyR1/verl/workers/sharding_manager/fsdp_vllm.py:139
Methodpreprocess_data
AllGather data from sp region This is because the data is first sharded along the FSDP dimension as we utilize the DP_COMPUTE
llava-critic-r1/EasyR1/verl/workers/sharding_manager/fsdp_ulysses.py:43
Functionpreprocess_multimodal
(sources: Sequence[str], data_args: DataArguments)
llava/train/train_dpo.py:362
Methodprint_size
(self, prefix: str = "")
llava-critic-r1/EasyR1/verl/protocol.py:224
Functionprocess_one_shard
(rank, model_state_dict_lst)
llava-critic-r1/EasyR1/scripts/model_merger.py:106
Functionprocess_video
( video: str, min_pixels: Optional[int], max_pixels: Optional[int], video_fps: float, return_fps: bool = F
llava-critic-r1/EasyR1/verl/utils/dataset.py:88
Functionprocess_video_with_pyav
(video_file, data_args)
llava/utils.py:48
Methodpush_to_hub
Overwrite the `push_to_hub` method in order to force-add the tag "sft" when pushing the model on the Hub. Please refer to `~transform
trl/trainer/sft_trainer.py:317
Methodpush_to_hub
r""" Push the pretrained model to the hub. This method is a wrapper around `transformers.PreTrainedModel.push_to_hub`. Please refer to
trl/models/modeling_base.py:482
Methodpush_to_hub
(self, *args, **kwargs)
trl/models/modeling_value_head.py:368
Functionqwen2_vl_attn_forward
( self: "Qwen2VLAttention", hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] =
llava-critic-r1/EasyR1/verl/models/transformers/qwen2_vl.py:139
Methodrank
(self)
llava-critic-r1/EasyR1/verl/single_controller/base/worker.py:191
Functionrank_print
(*args)
llava/utils.py:81
Functionrearrange_micro_batches
Split the batch into a list of micro_batches, where the max_token_len is smaller than max_token_len and the number of valid tokens in each micro b
llava-critic-r1/EasyR1/verl/utils/seqlen_balancing.py:222
Functionreceive_heart_beat
(request: Request)
llava/serve/controller.py:260
Functionrefresh_all_workers
()
llava/serve/controller.py:242
Functionregenerate
(state, image_process_mode, request: gr.Request)
llava/serve/gradio_multi_image.py:114
Functionregenerate
(state, image_process_mode, request: gr.Request)
llava/serve/gradio_web_server.py:107
Functionregister
(dispatch_mode=Dispatch.ALL_TO_ALL, execute_mode=Execute.ALL, blocking=True, materialize_futures=True)
llava-critic-r1/EasyR1/verl/single_controller/base/decorator.py:198
Functionregister_pooler
Decorator registering pooler class
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/hf_model.py:39
Functionregister_worker
(request: Request)
llava/serve/controller.py:236
Functionrelease_model_semaphore
(fn=None)
llava/serve/model_worker.py:222
Functionrelease_model_semaphore
(fn=None)
llava/serve/sglang_worker.py:195
Methodrename
Note that this function only rename the key in the batch
llava-critic-r1/EasyR1/verl/protocol.py:400
Functionreplace_llama_attn_with_flash_attn
()
llava/train/llama_flash_attn_monkey_patch.py:82
Methodrescale
(param, layer_id)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/eva_vit_model.py:484
Methodrescale
(param, layer_id)
llava/model/multimodal_encoder/eva_clip/eva_vit.py:620
Methodreset_classifier
(self, num_classes, global_pool="")
llava/model/multimodal_encoder/eva_clip/eva_vit.py:661
Functionresize_rel_pos_embed
(state_dict, model, interpolation: str = "bicubic", seq_dim=1)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/utils.py:140
Functionrespond_to_batch
Sample text from language model.
trl/core.py:220
Methodrun
Run the environment on a list of queries. Args: queries (list[str]): A list of queries to run the model in the environme
trl/environment/base_environment.py:263
Functionsafe_tokenizer_llama3
(text)
llava/train/train.py:666
Methodsave_attn_gradients
(self, attn_gradients)
llava/model/multimodal_resampler/qformer.py:133
Methodsave_checkpoint
(self, models, weights, output_dir)
trl/models/modeling_sd_base.py:600
Methodsave_checkpoint
(self, path: str)
llava-critic-r1/EasyR1/verl/utils/checkpoint/fsdp_checkpoint_manager.py:80
Methodsave_checkpoint
(self, *args, **kwargs)
llava-critic-r1/EasyR1/verl/utils/checkpoint/checkpoint_manager.py:70
Methodsave_pretrained
(self, output_dir)
trl/models/modeling_sd_base.py:572
Methodsave_to_disk
(self, filepath: str)
llava-critic-r1/EasyR1/verl/protocol.py:214
Methodscheduler
Returns the scheduler associated with the pipeline used for the diffusion process
trl/models/modeling_sd_base.py:105
Methodscheduler
(self)
trl/models/modeling_sd_base.py:561
Methodscheduler_step
(self, *args, **kwargs)
trl/models/modeling_sd_base.py:545
Methodset_additional_resource
(self, additional_resource)
llava-critic-r1/EasyR1/verl/single_controller/ray/base.py:169
Methodset_decoder
(self, decoder)
llava/model/language_model/modeling_llama.py:1252
Methodset_device_hook
(module, input, outputs)
trl/models/modeling_value_head.py:246
Methodset_device_hook
r""" A hook that sets the device of the output of the model to the device of the first parameter of the model.
trl/models/modeling_value_head.py:328
Methodset_grad_checkpointing
(self, enable=True)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/modified_resnet.py:160
Methodset_grad_checkpointing
(self, enable=True)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/timm_model.py:105
Methodset_grad_checkpointing
(self, enable=True)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/hf_model.py:231
Methodset_grad_checkpointing
(self, enable=True)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transformer.py:560
Methodset_grad_checkpointing
(self, enable=True)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transformer.py:649
Methodset_grad_checkpointing
(self, enable=True)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/eva_vit_model.py:515
Methodset_grad_checkpointing
(self, enable=True)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/model.py:304
Methodset_grad_checkpointing
(self, enable=True)
llava/model/multimodal_encoder/eva_clip/eva_vit.py:651
Methodset_input_embeddings
(self, value)
llava/model/multimodal_resampler/qformer.py:640
Methodset_input_embeddings
(self, value)
llava/model/language_model/modeling_llama.py:1079
Methodset_input_embeddings
(self, value)
llava/model/language_model/modeling_llama.py:1243
Methodset_input_embeddings
(self, value)
llava/model/language_model/modeling_llama.py:1458
Methodset_input_embeddings
(self, value)
llava/model/language_model/modeling_llama.py:1575
Methodset_output_embeddings
(self, new_embeddings)
llava/model/multimodal_resampler/qformer.py:881
Methodset_output_embeddings
(self, new_embeddings)
llava/model/multimodal_resampler/qformer.py:1036
Methodset_output_embeddings
(self, new_embeddings)
llava/model/language_model/modeling_llama.py:1249
Methodset_progress_bar_config
(self, *args, **kwargs)
trl/models/modeling_sd_base.py:578
Methodsetup
Load the model into memory to make running multiple predictions efficient
predict.py:76
Functionsetup_chat_format
Setup chat format by adding special tokens to the tokenizer, setting the correct format, and extending the embedding layer of the model based on
trl/models/utils.py:43
Methodshow_text
Print the text history.
trl/environment/base_environment.py:142
Methodshow_tokens
Print the history tokens.
trl/environment/base_environment.py:164
Methodsin_cached
(self)
llava/model/language_model/modeling_llama.py:113
Methodspread
(self)
llava-critic-r1/EasyR1/verl/utils/seqlen_balancing.py:71
Methodstart_worker_aliveness_check
(self, every_n_seconds=1)
llava-critic-r1/EasyR1/verl/single_controller/base/worker_group.py:121
Methodstate_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:352
Methodstep
Run an optimisation step given a list of input_ids, attention_mask, and labels or a list of text and text_labels. Args: i
trl/trainer/iterative_sft_trainer.py:207
Methodstep
(self, *args)
trl/trainer/base.py:36
Methodstore
(self)
llava-critic-r1/EasyR1/verl/single_controller/base/worker_group.py:51
Methodsystem
(self)
trl/models/utils.py:17
Methodtext_encoder
(self)
trl/models/modeling_sd_base.py:565
Methodto_dict
(self)
trl/trainer/model_config.py:63
Methodto_dict
(self)
trl/trainer/ddpo_config.py:101
Functiontokenize
Returns the tokenized representation of given input string(s) Parameters ---------- texts : Union[str, List[str]] An input s
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/tokenizer.py:158
Methodtokenize
(element)
trl/trainer/sft_trainer.py:385
Methodtokenize_row
Tokenize a single row from a DPO specific dataset. At this stage, we don't convert to PyTorch tensors yet; we just handle the truncation
trl/trainer/dpo_trainer.py:505
Methodtokenizer
(self)
trl/models/modeling_sd_base.py:557
Methodtorch_call
(self, examples: List[Union[List[int], Any, Dict[str, Any]]])
trl/trainer/utils.py:119
Functiontrace_model
(model, batch_size=256, device=torch.device("cpu"))
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/model.py:422
Methodtrain
(self, mode=True)
llava/model/multimodal_encoder/dev_eva_clip/eva_vit.py:100
Methodunet
(self)
trl/models/modeling_sd_base.py:549
Methodupdate
(self, current, n_steps)
trl/trainer/utils.py:46
Methodupdate
(self, current, n_steps)
trl/trainer/utils.py:59
Methodupdate
(self, prompts, rewards)
trl/trainer/utils.py:576
Methodupdate
(self, current_kl: float, n_steps: int)
llava-critic-r1/EasyR1/verl/trainer/core_algos.py:56
Methodupdate
(self, current_kl: float, n_steps: int)
llava-critic-r1/EasyR1/verl/trainer/core_algos.py:71
Methodupdate_critic
Update the critic
llava-critic-r1/EasyR1/verl/workers/critic/base.py:40
Methodupdate_critic
(self, data: DataProto)
llava-critic-r1/EasyR1/verl/workers/critic/dp_critic.py:169
Methodupdate_policy
(self, data: DataProto)
llava-critic-r1/EasyR1/verl/workers/actor/dp_actor.py:245
← previousnext →1,401–1,500 of 1,515, ranked by callers