MCPcopy Create free account

hub / github.com/NVlabs/DoRA / functions

Functions2,507 in github.com/NVlabs/DoRA

↓ 2 callersFunctiongenerate_prompt
(data_point)
commonsense_reasoning/finetune.py:360
↓ 2 callersMethodgetRefBox
(self, ref_id)
image_video_text_understanding/VL-T5/src/refcoco_utils.py:247
↓ 2 callersMethodget_base_model
Returns the base model.
visual_instruction_tuning/peft/src/peft/peft_model.py:452
↓ 2 callersFunctionget_conv_log_filename
()
visual_instruction_tuning/llava/serve/gradio_web_server.py:32
↓ 2 callersMethodget_delta_weight
(self, adapter)
visual_instruction_tuning/peft/src/peft/tuners/lora.py:889
↓ 2 callersMethodget_delta_weight
(self, adapter)
visual_instruction_tuning/peft/src/peft/tuners/lora.py:968
↓ 2 callersMethodget_height_and_width
(self, index)
image_video_text_understanding/CLIP-ViL/src/tasks/snli_data.py:277
↓ 2 callersFunctionget_loader
(args, split='vcr_train', mode='train', batch_size=32, workers=4, distributed=False, gpu=0,
image_video_text_understanding/VL-T5/src/pretrain_vcr_data.py:501
↓ 2 callersFunctionget_model_list
()
visual_instruction_tuning/llava/serve/gradio_web_server.py:38
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
image_video_text_understanding/CLIP-ViL/clip/simple_tokenizer.py:38
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
image_video_text_understanding/VL-T5/src/clip/simple_tokenizer.py:38
↓ 2 callersFunctionget_pred_idx
Get the index (e.g. 2) from the prediction (e.g. 'C')
visual_instruction_tuning/llava/eval/eval_science_qa_gpt4.py:28
↓ 2 callersFunctionget_pred_idx
Get the index (e.g. 2) from the prediction (e.g. 'C')
visual_instruction_tuning/llava/eval/eval_science_qa.py:28
↓ 2 callersMethodget_prompt
Given a task returns its corresponding adapter layer. Args: task: Input task name. Returns: Adapter layer corr
image_video_text_understanding/VL-T5/src/prompt/prompt_controller.py:51
↓ 2 callersMethodget_queue_length
(self)
visual_instruction_tuning/llava/serve/model_worker.py:108
↓ 2 callersFunctionget_rank
()
image_video_text_understanding/VL-T5/src/dist_utils.py:31
↓ 2 callersMethodget_status
(self)
visual_instruction_tuning/llava/serve/model_worker.py:115
↓ 2 callersFunctionget_tuple
(splits: str, bs: int, shuffle=False, drop_last=False, topk=-1, distributed = False, aspect_ratio_group_factor
image_video_text_understanding/CLIP-ViL/src/pretrain/lxmert_pretrain.py:41
↓ 2 callersMethodget_worker_address
(self, model_name: str)
visual_instruction_tuning/llava/serve/controller.py:120
↓ 2 callersFunctionhf_bucket_url
(model_id: str, filename: str, use_cdn=True)
image_video_text_understanding/VL-T5/inference/utils.py:247
↓ 2 callersMethodid2ans
(self, ans_id)
image_video_text_understanding/CLIP-ViL/src/pretrain/qa_answer_table.py:64
↓ 2 callersFunctionimg_tensorize
(im, input_format="RGB")
image_video_text_understanding/VL-T5/inference/utils.py:545
↓ 2 callersMethodinitialize_vision_modules
(self, model_args, fsdp=None)
visual_instruction_tuning/llava/model/llava_arch.py:42
↓ 2 callersMethodinitialize_vision_tokenizer
(self, model_args, tokenizer)
visual_instruction_tuning/llava/model/llava_arch.py:242
↓ 2 callersFunctionis_llama_available
Check if Llama is available in the transformers library (it's not in earlier versions).
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:33
↓ 2 callersFunctionis_none
(value)
visual_instruction_tuning/llava/eval/model_vqa_mmbench.py:33
↓ 2 callersMethodload
(self, path)
image_video_text_understanding/CLIP-ViL/src/tasks/snli.py:425
↓ 2 callersMethodload
(self, path)
image_video_text_understanding/CLIP-ViL/src/tasks/vqa.py:428
↓ 2 callersFunctionload_image_from_base64
(image)
visual_instruction_tuning/llava/mm_utils.py:10
↓ 2 callersMethodload_yaml
(config)
image_video_text_understanding/VL-T5/inference/utils.py:156
↓ 2 callersMethodmake_stage
Usually, layers that produce the same feature map spatial size are defined as one "stage". Under such definition, stride_per_
image_video_text_understanding/VL-T5/inference/modeling_frcnn.py:1018
↓ 2 callersFunctionmake_uid
(img_id, dset, sent_idx)
image_video_text_understanding/CLIP-ViL/src/pretrain/lxmert_data.py:86
↓ 2 callersFunctionmake_uid
(img_id, dset, sent_idx)
image_video_text_understanding/VL-T5/src/pretrain_raw_data.py:46
↓ 2 callersFunctionmark_only_lora_as_trainable
(model: nn.Module, bias: str = "none")
visual_instruction_tuning/peft/src/peft/tuners/dora.py:592
↓ 2 callersFunctionmark_only_lora_as_trainable
(model: nn.Module, bias: str = "none")
visual_instruction_tuning/peft/src/peft/tuners/lora.py:652
↓ 2 callersMethodmerge
(self)
visual_instruction_tuning/peft/src/peft/tuners/dora.py:700
↓ 2 callersMethodmerge
(self)
visual_instruction_tuning/peft/src/peft/tuners/lora.py:794
↓ 2 callersMethodmmt_evaluate
(self, loader, dump_path=None)
image_video_text_understanding/VL-T5/src/multitask.py:923
↓ 2 callersMethodnlvr_evaluate
(self, loader, dump_path=None)
image_video_text_understanding/VL-T5/src/multitask.py:751
↓ 2 callersMethodoutput_shape
(self)
image_video_text_understanding/VL-T5/inference/modeling_frcnn.py:1008
↓ 2 callersFunctionpatch_device
(module)
image_video_text_understanding/CLIP-ViL/clip/clip.py:89
↓ 2 callersFunctionpatch_device
(module)
image_video_text_understanding/VL-T5/src/clip/clip.py:123
↓ 2 callersFunctionpatch_float
(module)
image_video_text_understanding/CLIP-ViL/clip/clip.py:109
↓ 2 callersFunctionpatch_float
(module)
image_video_text_understanding/VL-T5/src/clip/clip.py:143
↓ 2 callersMethodpredict
(self, eval_tuple: DataTuple, dump=None)
image_video_text_understanding/CLIP-ViL/src/tasks/gqa.py:371
↓ 2 callersMethodpredict
Predict the answers to questions in a data split. :param eval_tuple: The data tuple to be evaluated. :param dump: The path o
image_video_text_understanding/CLIP-ViL/src/tasks/snli.py:382
↓ 2 callersMethodpredict
Predict the answers to questions in a data split. :param eval_tuple: The data tuple to be evaluated. :param dump: The path o
image_video_text_understanding/CLIP-ViL/src/tasks/vqa.py:384
↓ 2 callersMethodpredict
Predict the answers to questions in a data split. :param eval_tuple: The data tuple to be evaluated. :param dump: The path of
image_video_text_understanding/VL-T5/src/tvc.py:353
↓ 2 callersMethodpredict
(self, loader, dump_path=None)
image_video_text_understanding/VL-T5/src/how2qa.py:353
↓ 2 callersMethodpredict
Predict the answers to questions in a data split. :param eval_tuple: The data tuple to be evaluated. :param dump: The path of
image_video_text_understanding/VL-T5/src/yc2c.py:353
↓ 2 callersMethodpredict
(self, loader, dump_path=None)
image_video_text_understanding/VL-T5/src/tvqa.py:353
↓ 2 callersMethodpredict
(self, loader, dump_path=None)
image_video_text_understanding/VL-T5/src/activitynet.py:348
↓ 2 callersMethodprepare_inputs_labels_for_multimodal
( self, input_ids, position_ids, attention_mask, past_key_values, labels, images )
visual_instruction_tuning/llava/model/llava_arch.py:99
↓ 2 callersFunctionprepare_model_for_int8_training
r""" This method wrapps the entire protocol for preparing a model before running a training. This includes: 1- Cast the layernorm in fp32
commonsense_reasoning/peft/src/peft/utils/other.py:33
↓ 2 callersMethodprocessDigitArticle
(self, inText)
image_video_text_understanding/VL-T5/src/vqa_clip_data.py:673
↓ 2 callersMethodprocessDigitArticle
(self, inText)
image_video_text_understanding/VL-T5/src/vqa_raw_data.py:646
↓ 2 callersMethodprocessDigitArticle
(self, inText)
image_video_text_understanding/VL-T5/src/vqa_data.py:661
↓ 2 callersMethodprune_heads
(self, heads)
image_video_text_understanding/VL-T5/src/my_transformers/modeling_t5.py:346
↓ 2 callersMethodqa_evaluate
(self, loader, dump_path=None)
image_video_text_understanding/VL-T5/src/multitask_video.py:566
↓ 2 callersMethodrefcoco_evaluate
(self, loader)
image_video_text_understanding/VL-T5/src/multitask.py:756
↓ 2 callersMethodregister_to_controller
(self)
visual_instruction_tuning/llava/serve/model_worker.py:75
↓ 2 callersMethodregister_worker
(self, worker_name: str, check_heart_beat: bool, worker_status: dict)
visual_instruction_tuning/llava/serve/controller.py:69
↓ 2 callersMethodremove_worker
(self, worker_name: str)
visual_instruction_tuning/llava/serve/controller.py:101
↓ 2 callersFunctionreplace_llama_attn_with_flash_attn
()
visual_instruction_tuning/llava/train/llama_flash_attn_monkey_patch.py:105
↓ 2 callersMethodreset_ipt
(self)
visual_instruction_tuning/peft/src/peft/tuners/adalora.py:616
↓ 2 callersMethodreset_parameters
(self)
commonsense_reasoning/peft/src/peft/tuners/bottleneck.py:315
↓ 2 callersMethodreset_parameters
(self)
commonsense_reasoning/peft/src/peft/tuners/lora.py:316
↓ 2 callersFunctionrms_norm
(x, weight=None, eps=1e-05)
visual_instruction_tuning/llava/model/language_model/mpt/norm.py:27
↓ 2 callersMethodsave
(self, name)
image_video_text_understanding/CLIP-ViL/src/tasks/snli.py:421
↓ 2 callersMethodsave
(self, name)
image_video_text_understanding/CLIP-ViL/src/tasks/vqa.py:424
↓ 2 callersMethodsend_heart_beat
(self)
visual_instruction_tuning/llava/serve/model_worker.py:87
↓ 2 callersMethodset_additional_trainable_modules
(self, peft_config, adapter_name)
visual_instruction_tuning/peft/src/peft/peft_model.py:478
↓ 2 callersFunctionset_peft_model_state_dict
Set the state dict of the Peft model. Args: model ([`PeftModel`]): The Peft model. peft_model_state_dict (`dict`): The state
commonsense_reasoning/peft/src/peft/utils/save_and_load.py:107
↓ 2 callersFunctionset_visual_config
(args)
image_video_text_understanding/CLIP-ViL/src/lxrt/entry.py:76
↓ 2 callersFunctionsplit_s3_path
Split a full s3 path into the bucket name and path.
image_video_text_understanding/CLIP-ViL/src/lxrt/file_utils.py:111
↓ 2 callersFunctionswitchQuestionAndCategory
()
visual_instruction_tuning/llava/eval/webpage/script.js:203
↓ 2 callersFunctiontemp_seed
Temporarily set the random seed. This works for python numpy, pytorch.
visual_instruction_tuning/peft/tests/testing_utils.py:55
↓ 2 callersFunctiontokenize
(prompt, add_eos_token=True)
commonsense_reasoning/finetune.py:176
↓ 2 callersFunctiontrain
()
visual_instruction_tuning/llava/train/train_dora.py:771
↓ 2 callersMethodunload
Gets back the base model by removing all the lora modules without merging. This gives back the original base model.
visual_instruction_tuning/peft/src/peft/tuners/dora.py:574
↓ 2 callersMethodunmerge
(self)
visual_instruction_tuning/peft/src/peft/tuners/ia3.py:455
↓ 2 callersFunctionupdateExpandButtonVisibility
(card)
visual_instruction_tuning/llava/eval/webpage/script.js:226
↓ 2 callersFunctionupdateModelSelect
()
visual_instruction_tuning/llava/eval/webpage/script.js:64
↓ 2 callersMethodupdate_layer_conv2d
(self, adapter_name, r, lora_alpha, lora_dropout, init_lora_weights)
visual_instruction_tuning/peft/src/peft/tuners/lora.py:708
↓ 2 callersMethodupdate_layer_embedding
(self, adapter_name, r, lora_alpha, lora_dropout, init_lora_weights)
visual_instruction_tuning/peft/src/peft/tuners/lora.py:733
↓ 2 callersMethodused
(self, ans)
image_video_text_understanding/CLIP-ViL/src/pretrain/qa_answer_table.py:73
↓ 2 callersMethodzero_pad
(self, x)
commonsense_reasoning/peft/src/peft/tuners/lora.py:600
↓ 1 callersMethod__get_labels_from_data
(self, data)
image_video_text_understanding/VL-T5/src/classification_raw_data.py:121
↓ 1 callersMethod__get_labels_from_data
(self, data)
image_video_text_understanding/VL-T5/src/classification_raw_data.py:288
↓ 1 callersMethod__get_labels_from_data
(self, data)
image_video_text_understanding/VL-T5/src/classification_clip_data.py:118
↓ 1 callersMethod__init__
(self, config: LlamaConfig)
visual_instruction_tuning/llava/model/language_model/llava_llama.py:36
↓ 1 callersMethod__init__
(self, config: MPTConfig)
visual_instruction_tuning/llava/model/language_model/llava_mpt.py:37
↓ 1 callersMethod__init__
(self, d_model: int, expansion_ratio: int, device: Optional[str]=None)
visual_instruction_tuning/llava/model/language_model/mpt/blocks.py:10
↓ 1 callersMethod__init__
(self, config: MPTConfig)
visual_instruction_tuning/llava/model/language_model/mpt/modeling_mpt.py:35
↓ 1 callersMethod__init__
(self, d_model: int, n_heads: int, attn_impl: str='triton', clip_qkv: Optional[float]=None, qk_ln: bool=False,
visual_instruction_tuning/llava/model/language_model/mpt/attention.py:158
↓ 1 callersMethod__init__
(self)
visual_instruction_tuning/llava/model/multimodal_projector/builder.py:7
↓ 1 callersMethod__init__
( self, adapter_name: str, in_features: int, out_features: int, r: int
visual_instruction_tuning/peft/src/peft/tuners/dora.py:671
↓ 1 callersMethod__init__
Initialize object. Args: model_type: The transformer model type. This is used to retrieve the right method to
visual_instruction_tuning/peft/src/peft/tuners/adaption_prompt.py:275
↓ 1 callersMethod__init__
(self, db_dir, readonly=True)
image_video_text_understanding/CLIP-ViL/src/tasks/snli_data.py:120
↓ 1 callersMethod__init__
(self, splits: str)
image_video_text_understanding/CLIP-ViL/src/tasks/gqa_data.py:44
← previousnext →401–500 of 2,507, ranked by callers