MCPcopy Create free account

hub / github.com/NVlabs/DoRA / functions

Functions2,507 in github.com/NVlabs/DoRA

Methodget_prompt
(self, bsz, device)
image_video_text_understanding/VL-T5/src/modeling_t5.py:208
Methodget_prompt
(self, bsz, device)
image_video_text_understanding/VL-T5/src/modeling_t5.py:497
Methodget_prompt
(self, bsz, device)
image_video_text_understanding/VL-T5/src/prompt/prompt_modeling.py:20
Functionget_relative_distance
Args pos: [B, N, 4] (x1, x2, y1, y2) Return out : [B, N, N, 4]
image_video_text_understanding/VL-T5/src/utils.py:23
Functionget_status
(request: Request)
visual_instruction_tuning/llava/serve/model_worker.py:247
Methodget_task
(self, task)
image_video_text_understanding/VL-T5/src/lora/controller.py:72
Methodget_vis_residual
(self, bsz, device)
image_video_text_understanding/VL-T5/src/modeling_bart.py:767
Methodget_vocab
(self)
image_video_text_understanding/VL-T5/src/tokenization.py:62
Methodget_w
(weights, keyword)
visual_instruction_tuning/llava/model/llava_arch.py:79
Functionget_worker_address
(request: Request)
visual_instruction_tuning/llava/serve/controller.py:262
Functionground_caption
For VG Args: captions n_ground Returns: source_text target_text Ex) (in vocab ids)
image_video_text_understanding/VL-T5/src/preprocess.py:157
Functionheart_beat_controller
(controller)
visual_instruction_tuning/llava/serve/controller.py:51
Functionheart_beat_worker
(controller)
visual_instruction_tuning/llava/serve/model_worker.py:37
Methodhidden_size
(self)
visual_instruction_tuning/llava/model/multimodal_encoder/clip_encoder.py:73
Functionhttp_bot
(state, model_selector, temperature, top_p, max_new_tokens, request: gr.Request)
visual_instruction_tuning/llava/serve/gradio_web_server.py:156
Methodid2ans
(self, ans_id)
image_video_text_understanding/VL-T5/src/qa_answer_table.py:69
Methodid2ans_map
(self)
image_video_text_understanding/CLIP-ViL/src/pretrain/qa_answer_table.py:70
Methodid2ans_map
(self)
image_video_text_understanding/VL-T5/src/qa_answer_table.py:75
Functionimage_to_byte_array
(image)
image_video_text_understanding/CLIP-ViL/src/pretrain/lxmert_data.py:92
Methodimg2txts
(self)
image_video_text_understanding/CLIP-ViL/src/tasks/snli_data.py:216
Methodinit_bert_weights
Initialize the weights.
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:823
Methodinit_bert_weights
Initialize the weights.
image_video_text_understanding/VL-T5/src/trainer_base.py:690
Methodinit_bert_weights
Initialize the weights.
commonsense_reasoning/peft/src/peft/tuners/bottleneck.py:330
Methodinit_bert_weights
Initialize the weights.
commonsense_reasoning/peft/src/peft/tuners/bottleneck.py:455
Functioninit_empty_weights
Meta initialization context manager. A context manager under which models are initialized with all parameters on the meta device, therefore c
visual_instruction_tuning/llava/model/language_model/mpt/meta_init_context.py:6
Functioninit_to_zero
(name)
visual_instruction_tuning/llava/model/language_model/mpt/flash_attn_triton.py:300
Functioninitialize_optimizer
(visual_model, lr, momentum, weight_decay)
image_video_text_understanding/CLIP-ViL/src/lxrt/visual_transformers.py:66
Functionis_interactive
()
image_video_text_understanding/VL-T5/src/param.py:33
Functionis_main_process
()
image_video_text_understanding/VL-T5/src/dist_utils.py:65
Functionkaiming_normal_param_init_fn_
(module: nn.Module, n_layers: int, d_model: Optional[int]=None, init_div_is_residual: Union[int, float, str, b
visual_instruction_tuning/llava/model/language_model/mpt/param_init_fns.py:162
Functionkaiming_uniform_param_init_fn_
(module: nn.Module, n_layers: int, d_model: Optional[int]=None, init_div_is_residual: Union[int, float, str, b
visual_instruction_tuning/llava/model/language_model/mpt/param_init_fns.py:155
Functionlambda_policy_fn
(module)
visual_instruction_tuning/peft/src/peft/utils/other.py:239
Functionlambda_policy_fn
(module)
commonsense_reasoning/peft/src/peft/utils/other.py:132
Methodlengths
(self)
visual_instruction_tuning/llava/train/train.py:648
Methodlengths
(self)
visual_instruction_tuning/llava/train/train_dora.py:660
Functionlist_models
()
visual_instruction_tuning/llava/serve/controller.py:256
Functionllama_compute_query_states
Compute query states for Llama models specifically. They need to be recomputed as the forward() method of the original LlamaModel in the tra
visual_instruction_tuning/peft/src/peft/tuners/adaption_prompt.py:61
Methodload
(self, path, loc=None)
image_video_text_understanding/VL-T5/src/trainer_base.py:719
MethodloadAnns
(self, ann_ids=[])
image_video_text_understanding/VL-T5/src/refcoco_utils.py:229
MethodloadCats
(self, cat_ids=[])
image_video_text_understanding/VL-T5/src/refcoco_utils.py:241
MethodloadImgs
(self, image_ids=[])
image_video_text_understanding/VL-T5/src/refcoco_utils.py:235
Methodload_data
(self, name, number)
image_video_text_understanding/CLIP-ViL/src/tasks/gqa_data.py:88
Functionload_demo
(url_params, request: gr.Request)
visual_instruction_tuning/llava/serve/gradio_web_server.py:58
Functionload_demo_refresh_model_list
(request: gr.Request)
visual_instruction_tuning/llava/serve/gradio_web_server.py:72
Functionload_frcnn_pkl_from_url
(url)
image_video_text_understanding/VL-T5/inference/utils.py:524
Functionload_instruction
(args)
commonsense_reasoning/commonsense_evaluate.py:304
Functionload_instruction
(args)
commonsense_reasoning/evaluate.py:265
Functionload_labels
(objs=OBJECTS, attrs=ATTRIBUTES)
image_video_text_understanding/VL-T5/inference/utils.py:80
Functionload_lxmert_qa
Load model weights from LXMERT pre-training. The answers in the fine-tuned QA task (indicated by label2ans) would also be properly in
image_video_text_understanding/VL-T5/src/qa_answer_table.py:89
Functionload_state_dict_flexible
(model, state_dict)
image_video_text_understanding/CLIP-ViL/src/tools/load_stagte_dict.py:3
Functionload_tf_weights_in_t5
Load tf checkpoints in a pytorch model.
image_video_text_understanding/VL-T5/src/my_transformers/modeling_t5.py:83
Methodlora_dropout_layer
(x)
visual_instruction_tuning/peft/src/peft/tuners/adalora.py:349
Functionlora_state_dict
(model: nn.Module, bias: str = 'none')
image_video_text_understanding/VL-T5/src/lora/utils.py:33
Functionmain
(task, **kwargs)
visual_instruction_tuning/scripts/convert_sqa_to_llava.py:83
Functionmain
( load_8bit: bool = False, base_model: str = "", lora_weights: str = "tloen/alpaca-lora-7b", s
commonsense_reasoning/generate.py:23
Functionmain
( load_8bit: bool = False, base_model: str = "", lora_weights: str = "tloen/alpaca-lor
commonsense_reasoning/evaluate.py:29
Functionmake_inputs_require_grad
(module, input, output)
visual_instruction_tuning/llava/train/train.py:850
Functionmake_inputs_require_grad
(module, input, output)
visual_instruction_tuning/llava/train/train_dora.py:837
Functionmake_inputs_require_grad
(module, input, output)
visual_instruction_tuning/peft/src/peft/utils/other.py:96
Functionmake_inputs_require_grad
(module, input, output)
commonsense_reasoning/peft/src/peft/utils/other.py:62
Methodmake_inputs_require_grad
(module, input, output)
visual_instruction_tuning/peft/src/peft/peft_model.py:325
Methodmake_inputs_require_grad
(module, input, output)
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:108
Methodmake_inputs_require_grad
(module, input, output)
visual_instruction_tuning/peft/tests/testing_common.py:219
Methodmake_inputs_require_grad
(module, input, output)
visual_instruction_tuning/peft/tests/test_gpu_examples.py:476
Methodmake_inputs_require_grad
(module, input, output)
commonsense_reasoning/peft/tests/test_peft_model.py:98
Functionmake_uid
(img_id, dset, sent_idx)
image_video_text_understanding/VL-T5/src/pretrain_vcr_data.py:47
Functionmark_only_lora_as_trainable
(model: nn.Module, bias: str = 'none')
image_video_text_understanding/VL-T5/src/lora/utils.py:13
Methodmerge
(self)
visual_instruction_tuning/peft/src/peft/tuners/adalora.py:403
Methodmerge
(self)
visual_instruction_tuning/peft/src/peft/tuners/lora.py:881
Methodmerge
(self)
visual_instruction_tuning/peft/src/peft/tuners/lora.py:948
Methodmerge_adapter
This method merges the LoRa layers into the base model.
visual_instruction_tuning/peft/src/peft/tuners/dora.py:471
Methodmerge_adapter
This method merges the LoRa layers into the base model.
visual_instruction_tuning/peft/src/peft/tuners/lora.py:427
Methodmerge_and_unload
r""" This method merges the LoRa layers into the base model. This is needed if someone wants to use the base model as a standalone mod
visual_instruction_tuning/peft/src/peft/tuners/dora.py:555
Methodmerge_and_unload
r""" This method merges the LoRa layers into the base model. This is needed if someone wants to use the base model as a standalone mod
visual_instruction_tuning/peft/src/peft/tuners/lora.py:614
Methodmodality_lengths
(self)
visual_instruction_tuning/llava/train/train.py:656
Methodmodality_lengths
(self)
visual_instruction_tuning/llava/train/train_dora.py:668
Methodmodules_to_save
(self)
commonsense_reasoning/peft/src/peft/tuners/dora.py:266
Methodmodules_to_save
(self)
commonsense_reasoning/peft/src/peft/tuners/bottleneck.py:208
Methodmodules_to_save
(self)
commonsense_reasoning/peft/src/peft/tuners/lora.py:217
Functionneox_param_init_fn_
From section 2.3.1 of GPT-NeoX-20B: An Open-Source AutoregressiveLanguage Model — Black et. al. (2022) see https://github.com/EleutherAI/gpt-
visual_instruction_tuning/llava/model/language_model/mpt/param_init_fns.py:142
Methodnum_answers
(self)
image_video_text_understanding/CLIP-ViL/src/tasks/gqa_data.py:68
Methodnum_answers
(self)
image_video_text_understanding/CLIP-ViL/src/tasks/vqa_data.py:87
Methodnum_answers
(self)
image_video_text_understanding/CLIP-ViL/src/pretrain/qa_answer_table.py:80
Methodnum_answers
(self)
image_video_text_understanding/VL-T5/src/vqa_clip_data.py:488
Methodnum_answers
(self)
image_video_text_understanding/VL-T5/src/vqa_raw_data.py:461
Methodnum_answers
(self)
image_video_text_understanding/VL-T5/src/gqa_clip_data.py:400
Methodnum_answers
(self)
image_video_text_understanding/VL-T5/src/gqa_raw_data.py:439
Methodnum_answers
(self)
image_video_text_understanding/VL-T5/src/gqa_data.py:414
Methodnum_answers
(self)
image_video_text_understanding/VL-T5/src/qa_answer_table.py:85
Methodnum_answers
(self)
image_video_text_understanding/VL-T5/src/vqa_data.py:476
Methodnum_cell_anchors
Returns: list[int]: Each int is the number of anchors at every pixel location, on that feature map.
image_video_text_understanding/VL-T5/inference/modeling_frcnn.py:1395
Methodnum_patches
(self)
visual_instruction_tuning/llava/model/multimodal_encoder/clip_encoder.py:77
Methodnum_samples
(self)
image_video_text_understanding/VL-T5/src/nlvr_raw_data.py:305
Methodnum_samples
(self)
image_video_text_understanding/VL-T5/src/nlvr_clip_data.py:308
Methodnum_samples
(self)
image_video_text_understanding/VL-T5/src/nlvr_data.py:324
Methodonly_BN_eval
(model)
image_video_text_understanding/VL-T5/src/trainer_base.py:366
Methodonly_LN_eval
(model)
image_video_text_understanding/VL-T5/src/trainer_base.py:356
Methodoracle_score
(data_tuple)
image_video_text_understanding/CLIP-ViL/src/tasks/snli.py:411
Methodoracle_score
(data_tuple)
image_video_text_understanding/CLIP-ViL/src/tasks/vqa.py:414
Methodoracle_score
(loader)
image_video_text_understanding/VL-T5/src/caption.py:409
← previousnext →2,101–2,200 of 2,507, ranked by callers