MCPcopy Create free account

hub / github.com/NVlabs/DoRA / functions

Functions2,507 in github.com/NVlabs/DoRA

Methodevaluate
import sacrebleu refs = [['The dog bit the man.', 'It was not unexpected.', 'The man bit him first.'], ['The dog had
image_video_text_understanding/VL-T5/src/mmt_data.py:360
Methodevaluate
(self, predicts, answers)
image_video_text_understanding/VL-T5/src/caption_raw_data.py:392
Methodevaluate
(self, quesid2ans: dict)
image_video_text_understanding/VL-T5/src/vqa_data.py:539
Methodevaluate
(self, quesid2ans: dict)
image_video_text_understanding/VL-T5/src/nlvr_data.py:422
Methodevaluate
(self, predicts, answers)
image_video_text_understanding/VL-T5/src/caption_data.py:419
Methodevaluate
(self, predicts, answers)
image_video_text_understanding/VL-T5/src/video/tvc_data.py:365
Methodevaluate
(self, predicts, answers)
image_video_text_understanding/VL-T5/src/video/yc2c_data.py:357
Methodevaluate_epoch
(self, eval_tuple: DataTuple, iters: int=-1)
image_video_text_understanding/CLIP-ViL/src/pretrain/lxmert_pretrain.py:375
Methodevaluate_raw
https://github.com/GT-Vision-Lab/VQA/blob/master/PythonEvaluationTools/vqaEvaluation/vqaEval.py
image_video_text_understanding/VL-T5/src/vqa_clip_data.py:581
Methodevaluate_raw
https://github.com/GT-Vision-Lab/VQA/blob/master/PythonEvaluationTools/vqaEvaluation/vqaEval.py
image_video_text_understanding/VL-T5/src/vqa_raw_data.py:554
Methodevaluate_train
(self, quesid2ans: dict)
image_video_text_understanding/VL-T5/src/nlvr_raw_data.py:379
Methodevaluate_train
(self, quesid2ans: dict)
image_video_text_understanding/VL-T5/src/nlvr_clip_data.py:382
Methodexpand2square
(pil_img, background_color=(122, 116, 104))
visual_instruction_tuning/llava/conversation.py:119
Methodexpand2square
(pil_img, background_color)
visual_instruction_tuning/llava/train/train.py:675
Methodexpand2square
(pil_img, background_color)
visual_instruction_tuning/llava/train/train_dora.py:687
Methodextend_vocab
(self, vocab_size)
image_video_text_understanding/VL-T5/src/modeling_t5.py:519
Methodextra_repr
(self)
image_video_text_understanding/VL-T5/src/trainer_base.py:110
Methodextra_repr
(self)
image_video_text_understanding/VL-T5/src/trainer_base.py:156
Methodfile_generator
(self)
image_video_text_understanding/VL-T5/inference/extracting_data.py:84
Functionfilename_to_url
Return the url and etag (which may be ``None``) stored for `filename`. Raise ``EnvironmentError`` if `filename` or its stored metadata do not
image_video_text_understanding/CLIP-ViL/src/lxrt/file_utils.py:55
Functionflag_last_response
(state, model_selector, request: gr.Request)
visual_instruction_tuning/llava/serve/gradio_web_server.py:107
Functionflash_attn_fn
(query, key, value, n_heads, past_key_value=None, softmax_scale=None, attn_bias=None, key_padding_mask=None, i
visual_instruction_tuning/llava/model/language_model/mpt/attention.py:71
Methodflat
(tokenized, names=None, max_len=None)
image_video_text_understanding/VL-T5/src/pretrain_vcr_data.py:275
Methodflat
(tokenized, names=None, max_len=None)
image_video_text_understanding/VL-T5/src/vcr_data.py:205
Functionforward
Wraps original forward to enable PrefixLM attention.
visual_instruction_tuning/llava/model/language_model/mpt/hf_prefixlm_converter.py:71
Functionforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None, position_i
visual_instruction_tuning/llava/train/llama_flash_attn_monkey_patch.py:16
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
visual_instruction_tuning/llava/model/language_model/llava_llama.py:56
Methodforward
(self, input_ids: torch.LongTensor, past_key_values: Optional[List[Tuple[torch.FloatTensor]]]=None, attention_
visual_instruction_tuning/llava/model/language_model/llava_mpt.py:72
Methodforward
qkv: (batch, seqlen, 3, nheads, headdim) bias: optional, shape broadcastible to (batch, nheads, seqlen, seqlen).
visual_instruction_tuning/llava/model/language_model/mpt/flash_attn_triton.py:404
Methodforward
q: (batch, seqlen_q, nheads, headdim) kv: (batch, seqlen_k, 2, nheads, headdim) bias: optional, shape broadcastib
visual_instruction_tuning/llava/model/language_model/mpt/flash_attn_triton.py:431
Methodforward
q: (batch_size, seqlen_q, nheads, headdim) k, v: (batch_size, seqlen_k, nheads, headdim) bias: optional, shape br
visual_instruction_tuning/llava/model/language_model/mpt/flash_attn_triton.py:460
Methodforward
(self, x)
visual_instruction_tuning/llava/model/language_model/mpt/blocks.py:17
Methodforward
(self, x: torch.Tensor, past_key_value: Optional[Tuple[torch.Tensor]]=None, attn_bias: Optional[torch.Tensor]=
visual_instruction_tuning/llava/model/language_model/mpt/blocks.py:34
Methodforward
(self, input_ids: torch.LongTensor, past_key_values: Optional[List[Tuple[torch.FloatTensor]]]=None, attention_
visual_instruction_tuning/llava/model/language_model/mpt/modeling_mpt.py:144
Methodforward
(self, input_ids: torch.LongTensor, past_key_values: Optional[List[Tuple[torch.FloatTensor]]]=None, attention_
visual_instruction_tuning/llava/model/language_model/mpt/modeling_mpt.py:273
Methodforward
(self, x)
visual_instruction_tuning/llava/model/language_model/mpt/norm.py:19
Methodforward
(self, x)
visual_instruction_tuning/llava/model/language_model/mpt/norm.py:43
Methodforward
(self, x)
visual_instruction_tuning/llava/model/language_model/mpt/norm.py:51
Methodforward
(self, x, past_key_value=None, attn_bias=None, attention_mask=None, is_causal=True, needs_weights=False)
visual_instruction_tuning/llava/model/language_model/mpt/attention.py:191
Methodforward
(self, x, past_key_value=None, attn_bias=None, attention_mask=None, is_causal=True, needs_weights=False)
visual_instruction_tuning/llava/model/language_model/mpt/attention.py:245
Methodforward
(self, input: Tensor, unembed: bool=False)
visual_instruction_tuning/llava/model/language_model/mpt/custom_embedding.py:8
Methodforward
(self, x, *args, **kwargs)
visual_instruction_tuning/llava/model/multimodal_projector/builder.py:10
Methodforward
(self, x)
visual_instruction_tuning/llava/model/multimodal_projector/builder.py:28
Methodforward
(self, images)
visual_instruction_tuning/llava/model/multimodal_encoder/clip_encoder.py:40
Methodforward
Forward pass of the model.
visual_instruction_tuning/peft/src/peft/peft_model.py:415
Methodforward
( self, input_ids=None, attention_mask=None, inputs_embeds=None, label
visual_instruction_tuning/peft/src/peft/peft_model.py:726
Methodforward
( self, input_ids=None, attention_mask=None, inputs_embeds=None, label
visual_instruction_tuning/peft/src/peft/peft_model.py:900
Methodforward
( self, input_ids=None, attention_mask=None, inputs_embeds=None, decod
visual_instruction_tuning/peft/src/peft/peft_model.py:1068
Methodforward
( self, input_ids=None, attention_mask=None, inputs_embeds=None, label
visual_instruction_tuning/peft/src/peft/peft_model.py:1319
Methodforward
( self, input_ids=None, attention_mask=None, token_type_ids=None, posi
visual_instruction_tuning/peft/src/peft/peft_model.py:1489
Methodforward
( self, input_ids=None, attention_mask=None, inputs_embeds=None, outpu
visual_instruction_tuning/peft/src/peft/peft_model.py:1666
Methodforward
(self, *args, **kwargs)
visual_instruction_tuning/peft/src/peft/utils/other.py:149
Methodforward
(self, x: torch.Tensor)
visual_instruction_tuning/peft/src/peft/tuners/ia3.py:532
Methodforward
(self, x: torch.Tensor)
visual_instruction_tuning/peft/src/peft/tuners/dora.py:723
Methodforward
(self, indices)
visual_instruction_tuning/peft/src/peft/tuners/prompt_tuning.py:127
Methodforward
(self, *args, **kwargs)
visual_instruction_tuning/peft/src/peft/tuners/adalora.py:226
Methodforward
(self, x: torch.Tensor)
visual_instruction_tuning/peft/src/peft/tuners/adalora.py:493
Methodforward
(self, x: torch.Tensor)
visual_instruction_tuning/peft/src/peft/tuners/adalora.py:558
Methodforward
(self, prefix: torch.Tensor)
visual_instruction_tuning/peft/src/peft/tuners/prefix_tuning.py:103
Methodforward
(self, x: torch.Tensor)
visual_instruction_tuning/peft/src/peft/tuners/lora.py:892
Methodforward
(self, x: torch.Tensor)
visual_instruction_tuning/peft/src/peft/tuners/lora.py:985
Methodforward
(self, x: torch.Tensor)
visual_instruction_tuning/peft/src/peft/tuners/lora.py:1077
Methodforward
(self, x: torch.Tensor)
visual_instruction_tuning/peft/src/peft/tuners/lora.py:1136
Methodforward
(self, indices)
visual_instruction_tuning/peft/src/peft/tuners/p_tuning.py:161
Methodforward
Forward pass for the adapter which wraps the original LlamaAttention module. "Official" paper implementation: https://github
visual_instruction_tuning/peft/src/peft/tuners/adaption_prompt.py:305
Methodforward
(self, x)
image_video_text_understanding/CLIP-ViL/clip/model.py:43
Methodforward
(self, x: torch.Tensor)
image_video_text_understanding/CLIP-ViL/clip/model.py:96
Methodforward
(self, x)
image_video_text_understanding/CLIP-ViL/clip/model.py:129
Methodforward
(self, x, skip_last_layer=False)
image_video_text_understanding/CLIP-ViL/clip/model.py:200
Methodforward
(self, x: torch.Tensor)
image_video_text_understanding/CLIP-ViL/clip/model.py:222
Methodforward
(self, x: torch.Tensor)
image_video_text_understanding/CLIP-ViL/clip/model.py:229
Methodforward
(self, x: torch.Tensor, text_mask = None)
image_video_text_understanding/CLIP-ViL/clip/model.py:252
Methodforward
(self, x: torch.Tensor, text_mask=None)
image_video_text_understanding/CLIP-ViL/clip/model.py:265
Methodforward
(self, x: torch.Tensor, skip_last_layer=False, text_embedding=None, text_mask=None)
image_video_text_understanding/CLIP-ViL/clip/model.py:289
Methodforward
(self, x)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:136
Methodforward
(self, input_ids, token_type_ids=None)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:255
Methodforward
(self, hidden_states, context, attention_mask=None)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:297
Methodforward
(self, hidden_states, input_tensor, task)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:339
Methodforward
(self, input_tensor, ctx_tensor, ctx_att_mask=None, task=None)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:356
Methodforward
(self, input_tensor, attention_mask, task=None)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:368
Methodforward
(self, hidden_states)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:384
Methodforward
(self, hidden_states, input_tensor, task)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:402
Methodforward
(self, hidden_states, attention_mask, task=None)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:420
Methodforward
(self, lang_feats, lang_attention_mask, visn_feats, visn_attention_mask, task=None)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:472
Methodforward
(self, visn_input)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:502
Methodforward
(self, visn_feats)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:544
Methodforward
(self, lang_feats, lang_attention_mask, visn_feats, visn_attention_mask=None, task=None)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:610
Methodforward
(self, hidden_states)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:710
Methodforward
(self, hidden_states)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:729
Methodforward
(self, hidden_states)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:749
Methodforward
(self, hidden_states)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:766
Methodforward
(self, hidden_states)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:788
Methodforward
(self, sequence_output, pooled_output)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:802
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, visual_feats=None, visual_attentio
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:980
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, masked_lm_labels=None, visual_feat
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:1058
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, visual_feats=None, visual_attentio
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:1145
Methodforward
(self, sents, feats, visual_attention_mask=None, task=None)
image_video_text_understanding/CLIP-ViL/src/lxrt/entry.py:129
Methodforward
(self, x)
image_video_text_understanding/CLIP-ViL/src/lxrt/adapters/adapter_utils.py:12
Methodforward
(self, task_embedding)
image_video_text_understanding/CLIP-ViL/src/lxrt/adapters/adapter_utils.py:41
Methodforward
(self, input)
image_video_text_understanding/CLIP-ViL/src/lxrt/adapters/adapter_utils.py:56
← previousnext →1,801–1,900 of 2,507, ranked by callers