MCPcopy Create free account

hub / github.com/NVlabs/DoRA / functions

Functions2,507 in github.com/NVlabs/DoRA

Methodconfig_str
(self)
image_video_text_understanding/VL-T5/src/param.py:310
Functionconvert_caps
(results)
visual_instruction_tuning/llava/eval/eval_science_qa_gpt4.py:19
Functionconvert_caps
(results)
visual_instruction_tuning/llava/eval/eval_science_qa.py:19
Functionconvert_caps
(results)
visual_instruction_tuning/llava/eval/eval_science_qa_gpt4_requery.py:21
Functionconvert_hf_causal_lm_to_prefix_lm
Converts a HuggingFace Causal LM to a Prefix LM. Supported HuggingFace model classes: - `GPT2LMHeadModel` - `GPTNeoForCausalLM`
visual_instruction_tuning/llava/model/language_model/mpt/hf_prefixlm_converter.py:335
Functionconvert_to_jsonl
(base_dir, split, prompt_format="QCM-LEPA")
visual_instruction_tuning/scripts/convert_sqa_to_llava.py:49
Methodconvert_to_list
(self, tasks)
image_video_text_understanding/VL-T5/src/prompt/prompt_controller.py:46
Functionconvert_to_llava
(base_dir, split, prompt_format="QCM-LEA")
visual_instruction_tuning/scripts/convert_sqa_to_llava.py:8
Functionconvert_weights
Convert applicable model parameters to fp16
image_video_text_understanding/CLIP-ViL/clip/model.py:458
Functioncorrupt_bart
BART-style Masked Language Modeling with corrupted span prediction Args: text Returns: source_text (masked_text)
image_video_text_understanding/VL-T5/src/preprocess.py:85
Functioncorrupt_spans
T5-style Masked Language Modeling with corrupted span prediction Args: text Returns: source_text (masked_text)
image_video_text_understanding/VL-T5/src/preprocess.py:7
Methodcount_parameters
(model)
image_video_text_understanding/CLIP-ViL/src/tasks/gqa.py:209
Methodcount_parameters
(model)
image_video_text_understanding/CLIP-ViL/src/tasks/snli.py:228
Methodcount_parameters
(model)
image_video_text_understanding/CLIP-ViL/src/tasks/vqa.py:224
Methodcount_parameters
(model)
image_video_text_understanding/VL-T5/src/trainer_base.py:329
Functioncreate_aspect_ratio_groups
(dataset, k=0)
image_video_text_understanding/CLIP-ViL/src/tools/vision_helpers.py:333
Methodcreate_custom_forward
(module)
image_video_text_understanding/VL-T5/src/modeling_bart.py:722
Methodcreate_custom_forward
(module)
image_video_text_understanding/VL-T5/src/modeling_bart.py:906
Methodcreate_custom_forward
(module)
image_video_text_understanding/VL-T5/src/modeling_bart.py:1091
Methodcreate_custom_forward
(module)
image_video_text_understanding/VL-T5/src/modeling_prefix_bart.py:206
Methodcreate_custom_forward
(module)
image_video_text_understanding/VL-T5/src/my_transformers/modeling_bart.py:1019
Methodcreate_custom_forward
(module)
image_video_text_understanding/VL-T5/src/my_transformers/modeling_bart.py:1230
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
visual_instruction_tuning/llava/train/llava_trainer.py:150
Functioncustom_forward
(*inputs)
visual_instruction_tuning/llava/model/language_model/mpt/hf_prefixlm_converter.py:209
Methodcustom_forward
(*inputs)
image_video_text_understanding/VL-T5/src/modeling_bart.py:723
Methodcustom_forward
(*inputs)
image_video_text_understanding/VL-T5/src/modeling_bart.py:907
Methodcustom_forward
(*inputs)
image_video_text_understanding/VL-T5/src/modeling_bart.py:1092
Methodcustom_forward
(*inputs)
image_video_text_understanding/VL-T5/src/modeling_prefix_bart.py:207
Methodcustom_forward
(*inputs)
image_video_text_understanding/VL-T5/src/my_transformers/modeling_bart.py:1020
Methodcustom_forward
(*inputs)
image_video_text_understanding/VL-T5/src/my_transformers/modeling_bart.py:1231
Functiondecorate
(f)
image_video_text_understanding/CLIP-ViL/src/tools/sharearray.py:420
Functiondecorator
Decorator version of `cache`, analogous to a memoization decorator. Besides `array_or_callback` which isn't needed, arguments are identical
image_video_text_understanding/CLIP-ViL/src/tools/sharearray.py:395
Methoddelete_adapter
Deletes an existing adapter. Args: adapter_name (str): Name of the adapter to be deleted.
visual_instruction_tuning/peft/src/peft/tuners/lora.py:581
Methoddeparallelize
(self)
image_video_text_understanding/VL-T5/src/my_transformers/modeling_t5.py:1257
Methoddeparallelize
(self)
image_video_text_understanding/VL-T5/src/my_transformers/modeling_t5.py:1438
Methoddeparallelize
(self)
image_video_text_understanding/VL-T5/src/my_transformers/modeling_t5.py:1681
Methoddisable_adapter
Disables the adapter module.
commonsense_reasoning/peft/src/peft/peft_model.py:313
Methoddisable_adapter_layers
(self)
visual_instruction_tuning/peft/src/peft/tuners/dora.py:460
Methoddisable_adapter_layers
(self)
visual_instruction_tuning/peft/src/peft/tuners/lora.py:416
Methoddisable_adapter_layers
Disable adapter layers by swapping out AdaptedAttention modules.
visual_instruction_tuning/peft/src/peft/tuners/adaption_prompt.py:223
Methoddisable_adapter_layers
(self)
commonsense_reasoning/peft/src/peft/tuners/bottleneck.py:225
Methoddisable_adapter_layers
(self)
commonsense_reasoning/peft/src/peft/tuners/lora.py:234
Methoddisable_adapters
Given a list of tasks, it freezes their corresponding adapter layers' parameters. Args: tasks: List of tasks.
image_video_text_understanding/CLIP-ViL/src/lxrt/adapters/adapter_controller.py:68
Methoddisable_adapters
Given a list of tasks, it freezes their corresponding adapter layers' parameters. Args: tasks: List of tasks.
image_video_text_understanding/VL-T5/src/adapters/adapter_controller.py:88
Functiondownvote_last_response
(state, model_selector, request: gr.Request)
visual_instruction_tuning/llava/serve/gradio_web_server.py:101
Methoddraw_boxes
(self, boxes, obj_ids=None, obj_scores=None, attr_ids=None, attr_scores=None)
image_video_text_understanding/VL-T5/inference/visualizing_image.py:107
Methoddtype
(self)
visual_instruction_tuning/llava/model/multimodal_encoder/clip_encoder.py:58
Methoddtype
(self)
image_video_text_understanding/CLIP-ViL/clip/model.py:420
Methoddtype
(self)
image_video_text_understanding/VL-T5/src/clip/model.py:482
Methoddummy_feature
(self)
visual_instruction_tuning/llava/model/multimodal_encoder/clip_encoder.py:54
Methoddummy_inputs
(self)
image_video_text_understanding/VL-T5/src/my_transformers/modeling_bart.py:759
Methoddummy_inputs
(self)
image_video_text_understanding/VL-T5/src/my_transformers/modeling_t5.py:764
Methoddump_json
(self, data, file_name)
image_video_text_understanding/VL-T5/inference/utils.py:151
Methoddump_result
Dump results to a json file, which could be submitted to the VQA online evaluation. VQA json file submission requirement:
image_video_text_understanding/CLIP-ViL/src/tasks/vqa_data.py:362
Methoddump_result
(self, uid2ans: dict, path)
image_video_text_understanding/CLIP-ViL/src/pretrain/lxmert_data.py:798
Methoddump_result
Dump result to a CSV file, which is compatible with NLVR2 evaluation system. NLVR2 CSV file requirement: Each line contai
image_video_text_understanding/VL-T5/src/nlvr_raw_data.py:388
Methoddump_result
Dump results to a json file, which could be submitted to the VQA online evaluation. VQA json file submission requirement:
image_video_text_understanding/VL-T5/src/vqa_clip_data.py:560
Methoddump_result
Dump result to a CSV file, which is compatible with NLVR2 evaluation system. NLVR2 CSV file requirement: Each line contai
image_video_text_understanding/VL-T5/src/nlvr_clip_data.py:391
Methoddump_result
Dump results to a json file, which could be submitted to the VQA online evaluation. VQA json file submission requirement:
image_video_text_understanding/VL-T5/src/vqa_raw_data.py:533
Methoddump_result
(self, uid2ans: dict, path)
image_video_text_understanding/VL-T5/src/pretrain_raw_data.py:939
Methoddump_result
(self, uid2ans: dict, path)
image_video_text_understanding/VL-T5/src/pretrain_data.py:914
Methoddump_result
Dump the result to a GQA-challenge submittable json file. GQA json file submission requirement: results = [result]
image_video_text_understanding/VL-T5/src/gqa_clip_data.py:420
Methoddump_result
Dump the result to a GQA-challenge submittable json file. GQA json file submission requirement: results = [result]
image_video_text_understanding/VL-T5/src/gqa_raw_data.py:459
Methoddump_result
Dump results to a json file, which could be submitted to the VQA online evaluation. VQA json file submission requirement:
image_video_text_understanding/VL-T5/src/vqa_data.py:548
Methoddump_result
Dump result to a CSV file, which is compatible with NLVR2 evaluation system. NLVR2 CSV file requirement: Each line contai
image_video_text_understanding/VL-T5/src/nlvr_data.py:407
Methoddump_yaml
(self, data, file_name)
image_video_text_understanding/VL-T5/inference/utils.py:147
Methodenable_adapter_layers
(self)
visual_instruction_tuning/peft/src/peft/tuners/dora.py:457
Methodenable_adapter_layers
(self)
visual_instruction_tuning/peft/src/peft/tuners/lora.py:413
Methodenable_adapter_layers
Enable adapter layers by swapping in cached AdaptedAttention modules.
visual_instruction_tuning/peft/src/peft/tuners/adaption_prompt.py:218
Methodenable_adapter_layers
(self)
commonsense_reasoning/peft/src/peft/tuners/bottleneck.py:222
Methodenable_adapter_layers
(self)
commonsense_reasoning/peft/src/peft/tuners/lora.py:231
Methodenable_adapters
Given a list of tasks, it unfreezes their corresponding adapter layers. Args: tasks: Given list of tasks.
image_video_text_understanding/CLIP-ViL/src/lxrt/adapters/adapter_controller.py:86
Methodenable_adapters
Given a list of tasks, it unfreezes their corresponding adapter layers. Args: tasks: Given list of tasks.
image_video_text_understanding/VL-T5/src/adapters/adapter_controller.py:106
Methodeval
(self, preds)
image_video_text_understanding/VL-T5/src/activitynet_data.py:282
Methodeval
(self)
image_video_text_understanding/VL-T5/src/lora/layers.py:70
Methodeval
(self)
image_video_text_understanding/VL-T5/src/lora/layers.py:231
Methodeval
(self)
image_video_text_understanding/VL-T5/src/lora/layers.py:308
Methodeval
(self, preds)
image_video_text_understanding/VL-T5/src/video/tvr_data.py:306
Methodeval
(self, preds)
image_video_text_understanding/VL-T5/src/video/how2qa_data.py:354
Methodeval
(self, preds)
image_video_text_understanding/VL-T5/src/video/tvqa_matching_data.py:338
Methodeval
(self)
commonsense_reasoning/peft/src/peft/tuners/bottleneck.py:346
Methodeval
(self)
commonsense_reasoning/peft/src/peft/tuners/lora.py:457
Methodeval_pred_list
(self, pred_list)
visual_instruction_tuning/llava/eval/m4c_evaluator.py:264
Methodeval_pred_list
(self, pred_list)
visual_instruction_tuning/llava/eval/m4c_evaluator.py:289
Methodeval_pred_list
(self, pred_list)
visual_instruction_tuning/llava/eval/m4c_evaluator.py:321
Functionevaluate
( instruction, input=None, temperature=0.1, top_p=0.75, top_k=40,
commonsense_reasoning/generate.py:81
Functionevaluate
(dataset, gpu)
commonsense_reasoning/multi_dataset_eval.py:4
Methodevaluate
(self, quesid2ans: dict)
image_video_text_understanding/CLIP-ViL/src/tasks/gqa_data.py:359
Methodevaluate
(self, quesid2ans: dict)
image_video_text_understanding/CLIP-ViL/src/tasks/vqa_data.py:353
Methodevaluate
(self, quesid2ans: dict)
image_video_text_understanding/VL-T5/src/nlvr_raw_data.py:403
Methodevaluate
(self, quesid2ans: dict)
image_video_text_understanding/VL-T5/src/vqa_clip_data.py:551
Methodevaluate
(self, quesid2ans: dict)
image_video_text_understanding/VL-T5/src/nlvr_clip_data.py:406
Methodevaluate
(self, quesid2ans: dict)
image_video_text_understanding/VL-T5/src/vqa_raw_data.py:524
Methodevaluate
(self, uid2ans: dict)
image_video_text_understanding/VL-T5/src/pretrain_raw_data.py:891
Methodevaluate
(self, uid2ans: dict)
image_video_text_understanding/VL-T5/src/pretrain_data.py:866
Methodevaluate
(self, quesid2ans: dict)
image_video_text_understanding/VL-T5/src/gqa_clip_data.py:411
Methodevaluate
(self)
image_video_text_understanding/VL-T5/src/trainer_base.py:707
Methodevaluate
(self, quesid2ans: dict)
image_video_text_understanding/VL-T5/src/gqa_raw_data.py:450
Methodevaluate
(self, quesid2ans: dict)
image_video_text_understanding/VL-T5/src/gqa_data.py:425
Methodevaluate
(self, predicts, answers)
image_video_text_understanding/VL-T5/src/caption_clip_data.py:398
← previousnext →1,701–1,800 of 2,507, ranked by callers