Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TinyLLaVA/TinyLLaVA_Factory
/ functions
Functions
354 in github.com/TinyLLaVA/TinyLLaVA_Factory
⨍
Functions
354
◇
Types & classes
78
Method
__init__
(self)
tinyllava/eval/m4c_evaluator.py:222
Method
__init__
(self)
tinyllava/eval/m4c_evaluator.py:261
Method
__init__
(self)
tinyllava/eval/m4c_evaluator.py:277
Method
__init__
(self)
tinyllava/eval/m4c_evaluator.py:302
Method
__init__
(self, questions, image_folder, text_processor, image_processor)
tinyllava/eval/model_vqa_pope.py:33
Method
__init__
(self, training_arguments)
tinyllava/training_recipe/qlora_recipe.py:20
Method
__init__
(self, training_arguments)
tinyllava/training_recipe/base.py:9
Method
__init__
(self, training_arguments)
tinyllava/training_recipe/lora_recipe.py:20
Method
__init__
( self, batch_size: int, world_size: int, lengths: Optional[List[int]] = None,
tinyllava/train/tinyllava_trainer.py:92
Method
__iter__
(self)
tinyllava/train/tinyllava_trainer.py:112
Method
__len__
(self)
tinyllava/data/dataset.py:37
Method
__len__
(self)
tinyllava/eval/model_vqa_loader.py:56
Method
__len__
(self)
tinyllava/eval/model_vqa_pope.py:56
Method
__len__
(self)
tinyllava/train/tinyllava_trainer.py:109
Method
_get_train_sampler
(self)
tinyllava/train/tinyllava_trainer.py:122
Method
_init_weights
(self, module)
tinyllava/model/modeling_tinyllava.py:34
Method
_init_weights
Initialize the weights.
tinyllava/model/llm/openelm.py:395
Method
_init_weights
Initialize the weights
tinyllava/model/connector/qformer.py:730
Method
_insert_separator
(X, sep)
tinyllava/data/template/base.py:138
Method
_load_model
(self, vision_tower_name, **kwargs)
tinyllava/model/vision_tower/mof.py:74
Method
_make_masks
(self, labels, tokenizer, sep, eos_token_length, rounds)
tinyllava/data/template/llama_template.py:28
Method
_make_masks
(self, labels, tokenizer, sep, eos_token_length, rounds)
tinyllava/data/template/gemma_template.py:26
Method
_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
tinyllava/model/connector/qformer.py:771
Method
_reorder_cache
(past_key_values, beam_idx)
tinyllava/model/llm/openelm.py:1288
Method
_reorder_cache
(self, past, beam_idx)
tinyllava/model/connector/qformer.py:1186
Method
_supports_sdpa
(self)
tinyllava/model/modeling_tinyllava.py:54
Method
add_args
(self, model_args)
tinyllava/training_recipe/qlora_recipe.py:26
Function
add_text
(state, text, image, image_process_mode)
tinyllava/serve/app.py:64
Method
apply
(self, **kwargs)
tinyllava/data/template/formatter.py:19
Method
apply
(self, **kwargs)
tinyllava/data/template/formatter.py:25
Method
attention_hook
(module, input, output)
tinyllava_visualizer/tinyllava_visualizer.py:134
Function
clear_history
()
tinyllava/serve/app.py:59
Function
collate_fn
(batch)
tinyllava/eval/model_vqa_loader.py:60
Function
collate_fn
(batch)
tinyllava/eval/model_vqa_pope.py:60
Function
convert_caps
(results)
tinyllava/eval/eval_science_qa.py:19
Function
convert_legecy_weights_to_tinyllavafactory
(old_state_dict_path, new_state_dict_path=None)
tinyllava/model/convert_legecy_weights_to_tinyllavafactory.py:92
Method
copy
(self)
tinyllava/utils/message.py:33
Method
create_custom_forward
(module)
tinyllava/model/connector/qformer.py:599
Method
create_optimizer
Setup the optimizer. We provide a reasonable default that works well. If you want to use something else, you can pass a tuple in the
tinyllava/train/tinyllava_trainer.py:138
Method
custom_forward
(*inputs)
tinyllava/model/connector/qformer.py:600
Method
eval_pred_list
(self, pred_list)
tinyllava/eval/m4c_evaluator.py:264
Method
eval_pred_list
(self, pred_list)
tinyllava/eval/m4c_evaluator.py:289
Method
eval_pred_list
(self, pred_list)
tinyllava/eval/m4c_evaluator.py:321
Function
exists
(val)
tinyllava/model/connector/resampler.py:54
Method
extra_repr
(self)
tinyllava/model/llm/openelm.py:450
Method
extra_repr
(self)
tinyllava/model/llm/openelm.py:604
Method
extra_repr
(self)
tinyllava/model/llm/openelm.py:738
Method
feed_forward_chunk
(self, attention_output)
tinyllava/model/connector/qformer.py:542
Method
feed_forward_chunk_query
(self, attention_output)
tinyllava/model/connector/qformer.py:547
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
tinyllava/model/modeling_tinyllava.py:108
Method
forward
Forward pass through the OpenELMRMSNorm layer. Args: x (torch.Tensor): The input tensor. Returns: tor
tinyllava/model/llm/openelm.py:368
Method
forward
The forward function of RoPE embeddings. Args: query: Query embeddings in the transformer model. The shape of query embed
tinyllava/model/llm/openelm.py:503
Method
forward
Forward pass of multi-head self-attention. Args: hidden_states: Input tensor of the shape [batch size, sequence length, m
tinyllava/model/llm/openelm.py:610
Method
forward
Forward function of FFN layer. Args: x: Input tensor of the shape [batch size, sequence length, model dimension]. Returns:
tinyllava/model/llm/openelm.py:741
Method
forward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
tinyllava/model/llm/openelm.py:769
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
tinyllava/model/llm/openelm.py:909
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
tinyllava/model/llm/openelm.py:1125
Method
forward
(self, x)
tinyllava/model/connector/qformer.py:40
Method
forward
( self, input_ids=None, position_ids=None, query_embeds=None, past_key
tinyllava/model/connector/qformer.py:144
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
tinyllava/model/connector/qformer.py:235
Method
forward
(self, hidden_states, input_tensor)
tinyllava/model/connector/qformer.py:351
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
tinyllava/model/connector/qformer.py:388
Method
forward
(self, hidden_states)
tinyllava/model/connector/qformer.py:424
Method
forward
(self, hidden_states, input_tensor)
tinyllava/model/connector/qformer.py:437
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
tinyllava/model/connector/qformer.py:468
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
tinyllava/model/connector/qformer.py:561
Method
forward
(self, hidden_states)
tinyllava/model/connector/qformer.py:664
Method
forward
(self, hidden_states)
tinyllava/model/connector/qformer.py:683
Method
forward
(self, hidden_states)
tinyllava/model/connector/qformer.py:704
Method
forward
(self, sequence_output)
tinyllava/model/connector/qformer.py:715
Method
forward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
tinyllava/model/connector/qformer.py:870
Method
forward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
tinyllava/model/connector/qformer.py:1053
Method
forward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`, `optional`): Labels for computing the masked l
tinyllava/model/connector/qformer.py:1216
Method
forward
(self, x)
tinyllava/model/connector/base.py:28
Method
forward
(self, x)
tinyllava/model/connector/resampler.py:33
Method
forward
Args: x (torch.Tensor): image features shape (b, T, n1, D) latent (torch.Tensor): latent features
tinyllava/model/connector/resampler.py:82
Method
forward
(self, x)
tinyllava/model/connector/mof_mlp.py:29
Method
forward
(self, x, **kwargs)
tinyllava/model/vision_tower/base.py:47
Method
forward
(self, x, **kwargs)
tinyllava/model/vision_tower/mof.py:37
Method
forward
(self, x, **kwargs)
tinyllava/model/vision_tower/mof.py:91
Function
get_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
tinyllava/utils/data_utils.py:5
Method
get_attention_map
(self)
tinyllava/model/connector/qformer.py:224
Method
get_attn_gradients
(self)
tinyllava/model/connector/qformer.py:218
Method
get_decoder
(self)
tinyllava/model/modeling_tinyllava.py:93
Method
get_decoder
(self)
tinyllava/model/llm/openelm.py:1122
Method
get_input_embeddings
(self)
tinyllava/model/llm/openelm.py:1107
Method
get_input_embeddings
(self)
tinyllava/model/connector/qformer.py:765
Method
get_output_embeddings
(self)
tinyllava/model/modeling_tinyllava.py:84
Method
get_output_embeddings
(self)
tinyllava/model/llm/openelm.py:1113
Method
get_output_embeddings
(self)
tinyllava/model/connector/qformer.py:1047
Method
get_output_embeddings
(self)
tinyllava/model/connector/qformer.py:1210
Function
get_value_from_kwargs
(kwargs, name)
tinyllava/utils/data_utils.py:110
Method
get_w
(weights, keyword)
tinyllava/model/connector/qformer.py:68
Method
get_w
(weights, keyword)
tinyllava/model/connector/base.py:17
Method
get_w
(weights, keyword)
tinyllava/model/vision_tower/base.py:39
Method
get_w
(weights, keyword)
tinyllava/model/vision_tower/mof.py:85
Function
http_bot
(state, temperature, top_p, max_new_tokens)
tinyllava/serve/app.py:161
Method
image_hook
(module, input, output)
tinyllava_visualizer/tinyllava_visualizer.py:140
Method
images
(self)
tinyllava/utils/message.py:26
Method
lengths
(self)
tinyllava/data/dataset.py:41
← previous
next →
201–300 of 354, ranked by callers