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
forward
(self, hidden_states)
llava/model/multimodal_resampler/qformer.py:555
Method
forward
(self, hidden_states)
llava/model/multimodal_resampler/qformer.py:576
Method
forward
(self, sequence_output)
llava/model/multimodal_resampler/qformer.py:587
Method
forward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
llava/model/multimodal_resampler/qformer.py:731
Method
forward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
llava/model/multimodal_resampler/qformer.py:884
Method
forward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`, `optional`): Labels for computing the masked l
llava/model/multimodal_resampler/qformer.py:1039
Method
forward
(self, image_features, *args, **kwargs)
llava/model/multimodal_resampler/qformer.py:1135
Method
forward
(self, x, *args, **kwargs)
llava/model/multimodal_resampler/builder.py:13
Method
forward
(self, image_features, images, *args, **kwargs)
llava/model/multimodal_resampler/spatial_pool.py:23
Method
forward
Args: x (torch.Tensor): image features shape (b, T, n1, D) latent (torch.Tensor): latent features
llava/model/multimodal_resampler/perceiver.py:44
Method
forward
Args: x (torch.Tensor): image features shape (b, T, F, v, D) Returns: shape (b, T, n, D) wher
llava/model/multimodal_resampler/perceiver.py:104
Method
forward
(self, image_features, *args, **kwargs)
llava/model/multimodal_resampler/perceiver.py:144
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
llava/model/language_model/llava_qwen.py:63
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
llava/model/language_model/llava_qwen_moe.py:63
Method
forward
(self, hidden_states)
llava/model/language_model/modeling_llama.py:82
Method
forward
(self, x, position_ids, seq_len=None)
llava/model/language_model/modeling_llama.py:123
Method
forward
(self, x, position_ids, seq_len=None)
llava/model/language_model/modeling_llama.py:145
Method
forward
(self, x, position_ids, seq_len=None)
llava/model/language_model/modeling_llama.py:155
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
llava/model/language_model/modeling_llama.py:303
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.LongTensor] = None
llava/model/language_model/modeling_llama.py:400
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.LongTensor] = None
llava/model/language_model/modeling_llama.py:581
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
llava/model/language_model/modeling_llama.py:751
Method
forward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
llava/model/language_model/modeling_llama.py:852
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
llava/model/language_model/modeling_llama.py:1083
Method
forward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
llava/model/language_model/modeling_llama.py:1260
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
llava/model/language_model/modeling_llama.py:1462
Method
forward
r""" start_positions (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for position (index) of the start of the la
llava/model/language_model/modeling_llama.py:1579
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
llava/model/language_model/llava_llama.py:69
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
llava/model/language_model/llava_gemma.py:56
Method
forward
( self, input_ids: Optional[torch.LongTensor] = None, past_key_values: Optional[Tuple[
llava/model/language_model/llava_mpt.py:68
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
llava/model/language_model/llava_mixtral.py:57
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
llava/model/language_model/llava_mistral.py:62
Method
forward
(self, x, *args, **kwargs)
llava/model/multimodal_projector/builder.py:12
Method
forward
(self, x)
llava/model/multimodal_projector/builder.py:27
Method
forward
(self, x, *args, **kwargs)
llava/model/multimodal_projector/pooler_projector.py:22
Method
forward
(self, x)
llava/model/multimodal_encoder/imagebind.py:42
Method
forward
(self, images)
llava/model/multimodal_encoder/mlcd_encoder.py:73
Method
forward
(self, images)
llava/model/multimodal_encoder/mlcd_encoder.py:166
Method
forward
(self, pixel_values: torch.FloatTensor)
llava/model/multimodal_encoder/siglip_encoder.py:169
Method
forward
Input shape: Batch x Time x Channel
llava/model/multimodal_encoder/siglip_encoder.py:197
Method
forward
(self, hidden_states: torch.Tensor)
llava/model/multimodal_encoder/siglip_encoder.py:251
Method
forward
Args: hidden_states (`torch.FloatTensor`): Input to the layer of shape `(batch, seq_len, embed_dim)`.
llava/model/multimodal_encoder/siglip_encoder.py:269
Method
forward
r""" Args: inputs_embeds (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`): Optionally,
llava/model/multimodal_encoder/siglip_encoder.py:340
Method
forward
r""" Returns:
llava/model/multimodal_encoder/siglip_encoder.py:419
Method
forward
(self, hidden_state)
llava/model/multimodal_encoder/siglip_encoder.py:470
Method
forward
r""" Returns: Examples: ```python >>> from PIL import Image >>> import requests >>> from transformer
llava/model/multimodal_encoder/siglip_encoder.py:499
Method
forward
(self, images)
llava/model/multimodal_encoder/siglip_encoder.py:576
Method
forward
(self, images)
llava/model/multimodal_encoder/open_clip_encoder.py:105
Method
forward
(self, images)
llava/model/multimodal_encoder/clip_encoder.py:68
Method
forward
(self, images)
llava/model/multimodal_encoder/clip_encoder.py:160
Method
forward
(self, images)
llava/model/multimodal_encoder/hf_vision.py:63
Method
forward
(self, images)
llava/model/multimodal_encoder/dev_eva_clip/eva_vit.py:106
Method
forward
(self, image_features, text_features, logit_scale=1.0)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/loss.py:88
Method
forward
(self, t, start_index=0)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/rope.py:73
Method
forward
(self, t, patch_indices_keep=None)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/rope.py:115
Method
forward
(ctx, tensor, rank, world_size)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/utils.py:309
Method
forward
(self, x: torch.Tensor)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/modified_resnet.py:38
Method
forward
(self, x)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/modified_resnet.py:64
Method
forward
(self, x)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/modified_resnet.py:171
Method
forward
(self, img)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transform.py:23
Method
forward
(self, x)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/timm_model.py:111
Method
forward
(self, x: BaseModelOutput, attention_mask: TensorType)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/hf_model.py:49
Method
forward
(self, x: BaseModelOutput, attention_mask: TensorType)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/hf_model.py:58
Method
forward
(self, x: BaseModelOutput, attention_mask: TensorType)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/hf_model.py:72
Method
forward
(self, x: TensorType)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/hf_model.py:207
Method
forward
(self, x: torch.Tensor)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transformer.py:43
Method
forward
(self, x: torch.Tensor)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transformer.py:57
Method
forward
(self, x: torch.Tensor)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transformer.py:65
Method
forward
(self, x)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transformer.py:75
Method
forward
(self, x)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transformer.py:91
Method
forward
(self, x, attn_mask: Optional[torch.Tensor] = None)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transformer.py:188
Method
forward
(self, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, attn_mask: Optional[torch.Tensor] = None)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transformer.py:271
Method
forward
(self, q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, attn_mask: Optional[torch.Tensor] = None)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transformer.py:352
Method
forward
(self, q: torch.Tensor, k: torch.Tensor = None, v: torch.Tensor = None, attn_mask: Optional[torch.Tensor] = No
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transformer.py:404
Method
forward
(self, x: torch.Tensor, attn_mask: Optional[torch.Tensor] = None)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transformer.py:448
Method
forward
(self, x: torch.Tensor, attn_mask: Optional[torch.Tensor] = None)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transformer.py:476
Method
forward
(self, x: torch.Tensor, return_all_features: bool = False)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transformer.py:567
Method
forward
(self, text, return_all_features: bool = False)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transformer.py:668
Method
forward
(self, x)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/eva_vit_model.py:40
Method
forward
(self, x)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/eva_vit_model.py:69
Method
forward
(self, x)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/eva_vit_model.py:96
Method
forward
(self, x, rel_pos_bias=None, attn_mask=None)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/eva_vit_model.py:169
Method
forward
(self, x, rel_pos_bias=None, attn_mask=None)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/eva_vit_model.py:292
Method
forward
(self, x, **kwargs)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/eva_vit_model.py:325
Method
forward
(self)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/eva_vit_model.py:360
Method
forward
(self, x, return_all_features=False)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/eva_vit_model.py:566
Method
forward
(self, hidden_states)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/model.py:51
Method
forward
(self, image, text)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/model.py:275
Method
forward
(self, image, text)
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/model.py:320
Method
forward
(self, seqlen: int)
llava/model/multimodal_encoder/mlcd/vit_rope2d_hf.py:37
Method
forward
(self, pixel_values: torch.FloatTensor)
llava/model/multimodal_encoder/mlcd/vit_rope2d_hf.py:78
Method
forward
Input shape: Batch x Seq x Hidden Size
llava/model/multimodal_encoder/mlcd/vit_rope2d_hf.py:119
Method
forward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
llava/model/multimodal_encoder/mlcd/vit_rope2d_hf.py:155
Method
forward
r""" Args: inputs_embeds (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`): Optionally,
llava/model/multimodal_encoder/mlcd/vit_rope2d_hf.py:203
Method
forward
r""" Returns:
llava/model/multimodal_encoder/mlcd/vit_rope2d_hf.py:310
Method
forward
r""" Returns: Examples: ```python >>> from PIL import Image >>> import requests >>> from transformer
llava/model/multimodal_encoder/mlcd/vit_rope2d_hf.py:416
Method
forward
(self, images)
llava/model/multimodal_encoder/eva_clip/eva_clip_encoder.py:41
Method
forward
(self, t, patch_indices_keep=None)
llava/model/multimodal_encoder/eva_clip/eva_vit.py:69
Method
forward
(self, x: torch.Tensor)
llava/model/multimodal_encoder/eva_clip/eva_vit.py:91
Method
forward
(self, x)
llava/model/multimodal_encoder/eva_clip/eva_vit.py:109
← previous
next →
1,101–1,200 of 1,515, ranked by callers