MCPcopy Create free account

hub / github.com/TinyLLaVA/TinyLLaVA_Factory / functions

Functions354 in github.com/TinyLLaVA/TinyLLaVA_Factory

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
Methodadd_args
(self, model_args)
tinyllava/training_recipe/qlora_recipe.py:26
Functionadd_text
(state, text, image, image_process_mode)
tinyllava/serve/app.py:64
Methodapply
(self, **kwargs)
tinyllava/data/template/formatter.py:19
Methodapply
(self, **kwargs)
tinyllava/data/template/formatter.py:25
Methodattention_hook
(module, input, output)
tinyllava_visualizer/tinyllava_visualizer.py:134
Functionclear_history
()
tinyllava/serve/app.py:59
Functioncollate_fn
(batch)
tinyllava/eval/model_vqa_loader.py:60
Functioncollate_fn
(batch)
tinyllava/eval/model_vqa_pope.py:60
Functionconvert_caps
(results)
tinyllava/eval/eval_science_qa.py:19
Functionconvert_legecy_weights_to_tinyllavafactory
(old_state_dict_path, new_state_dict_path=None)
tinyllava/model/convert_legecy_weights_to_tinyllavafactory.py:92
Methodcopy
(self)
tinyllava/utils/message.py:33
Methodcreate_custom_forward
(module)
tinyllava/model/connector/qformer.py:599
Methodcreate_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
Methodcustom_forward
(*inputs)
tinyllava/model/connector/qformer.py:600
Methodeval_pred_list
(self, pred_list)
tinyllava/eval/m4c_evaluator.py:264
Methodeval_pred_list
(self, pred_list)
tinyllava/eval/m4c_evaluator.py:289
Methodeval_pred_list
(self, pred_list)
tinyllava/eval/m4c_evaluator.py:321
Functionexists
(val)
tinyllava/model/connector/resampler.py:54
Methodextra_repr
(self)
tinyllava/model/llm/openelm.py:450
Methodextra_repr
(self)
tinyllava/model/llm/openelm.py:604
Methodextra_repr
(self)
tinyllava/model/llm/openelm.py:738
Methodfeed_forward_chunk
(self, attention_output)
tinyllava/model/connector/qformer.py:542
Methodfeed_forward_chunk_query
(self, attention_output)
tinyllava/model/connector/qformer.py:547
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
tinyllava/model/modeling_tinyllava.py:108
Methodforward
Forward pass through the OpenELMRMSNorm layer. Args: x (torch.Tensor): The input tensor. Returns: tor
tinyllava/model/llm/openelm.py:368
Methodforward
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
Methodforward
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
Methodforward
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
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
tinyllava/model/llm/openelm.py:769
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
tinyllava/model/llm/openelm.py:909
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
tinyllava/model/llm/openelm.py:1125
Methodforward
(self, x)
tinyllava/model/connector/qformer.py:40
Methodforward
( self, input_ids=None, position_ids=None, query_embeds=None, past_key
tinyllava/model/connector/qformer.py:144
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
tinyllava/model/connector/qformer.py:235
Methodforward
(self, hidden_states, input_tensor)
tinyllava/model/connector/qformer.py:351
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
tinyllava/model/connector/qformer.py:388
Methodforward
(self, hidden_states)
tinyllava/model/connector/qformer.py:424
Methodforward
(self, hidden_states, input_tensor)
tinyllava/model/connector/qformer.py:437
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
tinyllava/model/connector/qformer.py:468
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
tinyllava/model/connector/qformer.py:561
Methodforward
(self, hidden_states)
tinyllava/model/connector/qformer.py:664
Methodforward
(self, hidden_states)
tinyllava/model/connector/qformer.py:683
Methodforward
(self, hidden_states)
tinyllava/model/connector/qformer.py:704
Methodforward
(self, sequence_output)
tinyllava/model/connector/qformer.py:715
Methodforward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
tinyllava/model/connector/qformer.py:870
Methodforward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
tinyllava/model/connector/qformer.py:1053
Methodforward
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
Methodforward
(self, x)
tinyllava/model/connector/base.py:28
Methodforward
(self, x)
tinyllava/model/connector/resampler.py:33
Methodforward
Args: x (torch.Tensor): image features shape (b, T, n1, D) latent (torch.Tensor): latent features
tinyllava/model/connector/resampler.py:82
Methodforward
(self, x)
tinyllava/model/connector/mof_mlp.py:29
Methodforward
(self, x, **kwargs)
tinyllava/model/vision_tower/base.py:47
Methodforward
(self, x, **kwargs)
tinyllava/model/vision_tower/mof.py:37
Methodforward
(self, x, **kwargs)
tinyllava/model/vision_tower/mof.py:91
Functionget_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
Methodget_attention_map
(self)
tinyllava/model/connector/qformer.py:224
Methodget_attn_gradients
(self)
tinyllava/model/connector/qformer.py:218
Methodget_decoder
(self)
tinyllava/model/modeling_tinyllava.py:93
Methodget_decoder
(self)
tinyllava/model/llm/openelm.py:1122
Methodget_input_embeddings
(self)
tinyllava/model/llm/openelm.py:1107
Methodget_input_embeddings
(self)
tinyllava/model/connector/qformer.py:765
Methodget_output_embeddings
(self)
tinyllava/model/modeling_tinyllava.py:84
Methodget_output_embeddings
(self)
tinyllava/model/llm/openelm.py:1113
Methodget_output_embeddings
(self)
tinyllava/model/connector/qformer.py:1047
Methodget_output_embeddings
(self)
tinyllava/model/connector/qformer.py:1210
Functionget_value_from_kwargs
(kwargs, name)
tinyllava/utils/data_utils.py:110
Methodget_w
(weights, keyword)
tinyllava/model/connector/qformer.py:68
Methodget_w
(weights, keyword)
tinyllava/model/connector/base.py:17
Methodget_w
(weights, keyword)
tinyllava/model/vision_tower/base.py:39
Methodget_w
(weights, keyword)
tinyllava/model/vision_tower/mof.py:85
Functionhttp_bot
(state, temperature, top_p, max_new_tokens)
tinyllava/serve/app.py:161
Methodimage_hook
(module, input, output)
tinyllava_visualizer/tinyllava_visualizer.py:140
Methodimages
(self)
tinyllava/utils/message.py:26
Methodlengths
(self)
tinyllava/data/dataset.py:41
← previousnext →201–300 of 354, ranked by callers