Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LLaVA-VL/LLaVA-NeXT
/ functions
Functions
1,515 in github.com/LLaVA-VL/LLaVA-NeXT
⨍
Functions
1,515
◇
Types & classes
291
↳
Endpoints
23
Method
prepare_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
Method
prepare_inputs_for_generation
(self, input_ids, past_key_values=None, inputs_embeds=None, **kwargs)
llava/model/language_model/llava_llama.py:144
Method
prepare_inputs_for_generation
(self, input_ids, past_key_values=None, inputs_embeds=None, **kwargs)
llava/model/language_model/llava_gemma.py:110
Method
prepare_inputs_for_generation
(self, input_ids, past_key_values=None, inputs_embeds=None, **kwargs)
llava/model/language_model/llava_mpt.py:97
Method
prepare_inputs_for_generation
(self, input_ids, past_key_values=None, inputs_embeds=None, **kwargs)
llava/model/language_model/llava_mixtral.py:131
Method
prepare_inputs_for_generation
(self, input_ids, past_key_values=None, inputs_embeds=None, **kwargs)
llava/model/language_model/llava_mistral.py:115
Method
preprocess
(self, images, return_tensors)
llava/model/multimodal_encoder/eva_clip/eva_clip_processors.py:52
Method
preprocess_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
Method
preprocess_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
Function
preprocess_multimodal
(sources: Sequence[str], data_args: DataArguments)
llava/train/train_dpo.py:362
Method
print_size
(self, prefix: str = "")
llava-critic-r1/EasyR1/verl/protocol.py:224
Function
process_one_shard
(rank, model_state_dict_lst)
llava-critic-r1/EasyR1/scripts/model_merger.py:106
Function
process_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
Function
process_video_with_pyav
(video_file, data_args)
llava/utils.py:48
Method
push_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
Method
push_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
Method
push_to_hub
(self, *args, **kwargs)
trl/models/modeling_value_head.py:368
Function
qwen2_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
Method
rank
(self)
llava-critic-r1/EasyR1/verl/single_controller/base/worker.py:191
Function
rank_print
(*args)
llava/utils.py:81
Function
rearrange_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
Function
receive_heart_beat
(request: Request)
llava/serve/controller.py:260
Function
refresh_all_workers
()
llava/serve/controller.py:242
Function
regenerate
(state, image_process_mode, request: gr.Request)
llava/serve/gradio_multi_image.py:114
Function
regenerate
(state, image_process_mode, request: gr.Request)
llava/serve/gradio_web_server.py:107
Function
register
(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
Function
register_pooler
Decorator registering pooler class
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/hf_model.py:39
Function
register_worker
(request: Request)
llava/serve/controller.py:236
Function
release_model_semaphore
(fn=None)
llava/serve/model_worker.py:222
Function
release_model_semaphore
(fn=None)
llava/serve/sglang_worker.py:195
Method
rename
Note that this function only rename the key in the batch
llava-critic-r1/EasyR1/verl/protocol.py:400
Function
replace_llama_attn_with_flash_attn
()
llava/train/llama_flash_attn_monkey_patch.py:82
Method
rescale
(param, layer_id)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/eva_vit_model.py:484
Method
rescale
(param, layer_id)
llava/model/multimodal_encoder/eva_clip/eva_vit.py:620
Method
reset_classifier
(self, num_classes, global_pool="")
llava/model/multimodal_encoder/eva_clip/eva_vit.py:661
Function
resize_rel_pos_embed
(state_dict, model, interpolation: str = "bicubic", seq_dim=1)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/utils.py:140
Function
respond_to_batch
Sample text from language model.
trl/core.py:220
Method
run
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
Function
safe_tokenizer_llama3
(text)
llava/train/train.py:666
Method
save_attn_gradients
(self, attn_gradients)
llava/model/multimodal_resampler/qformer.py:133
Method
save_checkpoint
(self, models, weights, output_dir)
trl/models/modeling_sd_base.py:600
Method
save_checkpoint
(self, path: str)
llava-critic-r1/EasyR1/verl/utils/checkpoint/fsdp_checkpoint_manager.py:80
Method
save_checkpoint
(self, *args, **kwargs)
llava-critic-r1/EasyR1/verl/utils/checkpoint/checkpoint_manager.py:70
Method
save_pretrained
(self, output_dir)
trl/models/modeling_sd_base.py:572
Method
save_to_disk
(self, filepath: str)
llava-critic-r1/EasyR1/verl/protocol.py:214
Method
scheduler
Returns the scheduler associated with the pipeline used for the diffusion process
trl/models/modeling_sd_base.py:105
Method
scheduler
(self)
trl/models/modeling_sd_base.py:561
Method
scheduler_step
(self, *args, **kwargs)
trl/models/modeling_sd_base.py:545
Method
set_additional_resource
(self, additional_resource)
llava-critic-r1/EasyR1/verl/single_controller/ray/base.py:169
Method
set_decoder
(self, decoder)
llava/model/language_model/modeling_llama.py:1252
Method
set_device_hook
(module, input, outputs)
trl/models/modeling_value_head.py:246
Method
set_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
Method
set_grad_checkpointing
(self, enable=True)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/modified_resnet.py:160
Method
set_grad_checkpointing
(self, enable=True)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/timm_model.py:105
Method
set_grad_checkpointing
(self, enable=True)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/hf_model.py:231
Method
set_grad_checkpointing
(self, enable=True)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transformer.py:560
Method
set_grad_checkpointing
(self, enable=True)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transformer.py:649
Method
set_grad_checkpointing
(self, enable=True)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/eva_vit_model.py:515
Method
set_grad_checkpointing
(self, enable=True)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/model.py:304
Method
set_grad_checkpointing
(self, enable=True)
llava/model/multimodal_encoder/eva_clip/eva_vit.py:651
Method
set_input_embeddings
(self, value)
llava/model/multimodal_resampler/qformer.py:640
Method
set_input_embeddings
(self, value)
llava/model/language_model/modeling_llama.py:1079
Method
set_input_embeddings
(self, value)
llava/model/language_model/modeling_llama.py:1243
Method
set_input_embeddings
(self, value)
llava/model/language_model/modeling_llama.py:1458
Method
set_input_embeddings
(self, value)
llava/model/language_model/modeling_llama.py:1575
Method
set_output_embeddings
(self, new_embeddings)
llava/model/multimodal_resampler/qformer.py:881
Method
set_output_embeddings
(self, new_embeddings)
llava/model/multimodal_resampler/qformer.py:1036
Method
set_output_embeddings
(self, new_embeddings)
llava/model/language_model/modeling_llama.py:1249
Method
set_progress_bar_config
(self, *args, **kwargs)
trl/models/modeling_sd_base.py:578
Method
setup
Load the model into memory to make running multiple predictions efficient
predict.py:76
Function
setup_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
Method
show_text
Print the text history.
trl/environment/base_environment.py:142
Method
show_tokens
Print the history tokens.
trl/environment/base_environment.py:164
Method
sin_cached
(self)
llava/model/language_model/modeling_llama.py:113
Method
spread
(self)
llava-critic-r1/EasyR1/verl/utils/seqlen_balancing.py:71
Method
start_worker_aliveness_check
(self, every_n_seconds=1)
llava-critic-r1/EasyR1/verl/single_controller/base/worker_group.py:121
Method
state_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
Method
step
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
Method
step
(self, *args)
trl/trainer/base.py:36
Method
store
(self)
llava-critic-r1/EasyR1/verl/single_controller/base/worker_group.py:51
Method
system
(self)
trl/models/utils.py:17
Method
text_encoder
(self)
trl/models/modeling_sd_base.py:565
Method
to_dict
(self)
trl/trainer/model_config.py:63
Method
to_dict
(self)
trl/trainer/ddpo_config.py:101
Function
tokenize
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
Method
tokenize
(element)
trl/trainer/sft_trainer.py:385
Method
tokenize_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
Method
tokenizer
(self)
trl/models/modeling_sd_base.py:557
Method
torch_call
(self, examples: List[Union[List[int], Any, Dict[str, Any]]])
trl/trainer/utils.py:119
Function
trace_model
(model, batch_size=256, device=torch.device("cpu"))
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/model.py:422
Method
train
(self, mode=True)
llava/model/multimodal_encoder/dev_eva_clip/eva_vit.py:100
Method
unet
(self)
trl/models/modeling_sd_base.py:549
Method
update
(self, current, n_steps)
trl/trainer/utils.py:46
Method
update
(self, current, n_steps)
trl/trainer/utils.py:59
Method
update
(self, prompts, rewards)
trl/trainer/utils.py:576
Method
update
(self, current_kl: float, n_steps: int)
llava-critic-r1/EasyR1/verl/trainer/core_algos.py:56
Method
update
(self, current_kl: float, n_steps: int)
llava-critic-r1/EasyR1/verl/trainer/core_algos.py:71
Method
update_critic
Update the critic
llava-critic-r1/EasyR1/verl/workers/critic/base.py:40
Method
update_critic
(self, data: DataProto)
llava-critic-r1/EasyR1/verl/workers/critic/dp_critic.py:169
Method
update_policy
(self, data: DataProto)
llava-critic-r1/EasyR1/verl/workers/actor/dp_actor.py:245
← previous
next →
1,401–1,500 of 1,515, ranked by callers