MCPcopy Create free account

hub / github.com/NVlabs/DoRA / functions

Functions2,507 in github.com/NVlabs/DoRA

Methodtest_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/vqa_model.py:89
Methodtest_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/vqa_model.py:236
Methodtest_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/vqa_model.py:376
Methodtest_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/activitynet_model.py:90
Methodtest_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/activitynet_model.py:227
Methodtest_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/activitynet_model.py:367
Methodtest_step
(self, batch)
image_video_text_understanding/VL-T5/src/nlvr_model.py:81
Methodtest_step
(self, batch)
image_video_text_understanding/VL-T5/src/nlvr_model.py:210
Methodtest_step
(self, batch)
image_video_text_understanding/VL-T5/src/vcr_model.py:174
Methodtest_step
(self, batch)
image_video_text_understanding/VL-T5/src/vcr_model.py:413
Methodtest_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/video/video_model.py:93
Methodtest_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/video/video_model.py:230
Methodtest_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/video/video_matching_model.py:93
Methodtest_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/video/video_matching_model.py:230
Methodtest_task_type
(self)
visual_instruction_tuning/peft/tests/test_config.py:63
Methodtest_task_type
(self)
commonsense_reasoning/peft/tests/test_config.py:48
Methodtest_to_dict
r""" Test if the config can be correctly converted to a dict using: - to_dict
visual_instruction_tuning/peft/tests/test_config.py:100
Methodtest_to_dict
r""" Test if the config can be correctly converted to a dict using: - to_dict - __dict__
commonsense_reasoning/peft/tests/test_config.py:75
Methodtest_training
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:109
Methodtest_training_decoders
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:118
Methodtest_training_decoders_gradient_checkpointing
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:126
Methodtest_training_decoders_layer_indexing
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:122
Methodtest_training_encoder_decoders
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:105
Methodtest_training_encoder_decoders_gradient_checkpointing
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:113
Methodtest_training_encoder_decoders_layer_indexing
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:109
Methodtest_training_gradient_checkpointing
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:125
Methodtest_training_layer_indexing
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:119
Methodtest_training_prompt_learning_tasks
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:166
Methodtest_training_prompt_learning_tasks
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:115
Methodtest_training_prompt_learning_tasks
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:154
Methodtest_unload_adapter
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:150
Methodtest_unload_adapter
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:149
Methodtest_unload_adapter
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:138
Methodtest_use_cache
Test that AdaptionPrompt works when Llama config use_cache=True.
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:343
Methodtest_weighted_combination_of_adapters
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:162
Methodtest_weighted_combination_of_adapters
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:161
Methodtest_weighted_combination_of_adapters
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:150
Functiontokenize
(texts: Union[str, List[str]], context_length: int = 77)
image_video_text_understanding/CLIP-ViL/clip/clip.py:130
Functiontokenize
Returns the tokenized representation of given input string(s) Parameters ---------- texts : Union[str, List[str]] An input s
image_video_text_understanding/VL-T5/src/clip/clip.py:164
Methodtokenize
Tokenizes a piece of text.
image_video_text_understanding/CLIP-ViL/src/lxrt/tokenization.py:188
Methodtokenize
Tokenizes a piece of text into its word pieces. This uses a greedy longest-match-first algorithm to perform tokenization using the gi
image_video_text_understanding/CLIP-ViL/src/lxrt/tokenization.py:299
Functiontorch_default_param_init_fn_
(module: nn.Module, verbose: int=0, **kwargs)
visual_instruction_tuning/llava/model/language_model/mpt/param_init_fns.py:10
Functiontrain
( # model/data params base_model: str = "", # the only required argument data_path: s
commonsense_reasoning/finetune.py:38
Methodtrain
(self, mode: bool = True)
image_video_text_understanding/VL-T5/src/lora/layers.py:62
Methodtrain
(self, mode: bool = True)
image_video_text_understanding/VL-T5/src/lora/layers.py:216
Methodtrain
(self, mode: bool = True)
image_video_text_understanding/VL-T5/src/lora/layers.py:301
Methodtrain
(self, mode: bool = True)
commonsense_reasoning/peft/src/peft/tuners/bottleneck.py:341
Methodtrain
(self, mode: bool = True)
commonsense_reasoning/peft/src/peft/tuners/lora.py:424
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/caption_model.py:11
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/caption_model.py:70
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/pretrain_model.py:14
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/pretrain_model.py:168
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/refcoco_model.py:12
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/refcoco_model.py:120
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/classification_model.py:23
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/classification_model.py:152
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/gqa_model.py:79
Methodtrain_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/multitask_model.py:90
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/mmt_model.py:11
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/mmt_model.py:66
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/vqa_model.py:24
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/vqa_model.py:167
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/vqa_model.py:308
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/activitynet_model.py:25
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/activitynet_model.py:158
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/activitynet_model.py:299
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/nlvr_model.py:12
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/nlvr_model.py:140
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/vcr_model.py:15
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/vcr_model.py:255
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/video/video_model.py:28
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/video/video_model.py:161
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/video/video_matching_model.py:28
Methodtrain_step
(self, batch)
image_video_text_understanding/VL-T5/src/video/video_matching_model.py:161
Methodtraining
(self, obj_logits, attr_logits, box_deltas, pred_boxes, features, sizes)
image_video_text_understanding/VL-T5/inference/modeling_frcnn.py:1224
Functiontrim_hanging_lines
(s: str, n: int)
visual_instruction_tuning/llava/eval/generate_webpage_data_from_table.py:23
Functiontriton_flash_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:107
Methodtxt2img
(self)
image_video_text_understanding/CLIP-ViL/src/tasks/snli_data.py:211
Methodunload
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/lora.py:633
Methodunmerge_adapter
This method unmerges the LoRa layers from the base model.
visual_instruction_tuning/peft/src/peft/tuners/dora.py:479
Methodunmerge_adapter
This method unmerges the LoRa layers from the base model.
visual_instruction_tuning/peft/src/peft/tuners/lora.py:435
Methodunshape
reshape
image_video_text_understanding/VL-T5/src/my_transformers/modeling_t5.py:458
Methodupdate_and_allocate
(self, global_step)
visual_instruction_tuning/peft/src/peft/tuners/adalora.py:297
Methodupdate_and_allocate
(self, model, global_step, force_mask=False)
visual_instruction_tuning/peft/src/peft/tuners/adalora.py:728
Methodupdate_layer_conv2d
(self, adapter_name, r, lora_alpha, lora_dropout, init_lora_weights)
visual_instruction_tuning/peft/src/peft/tuners/dora.py:653
Methodupdate_layer_embedding
(self, adapter_name, r, lora_alpha, lora_dropout, init_lora_weights)
visual_instruction_tuning/peft/src/peft/tuners/dora.py:656
Functionupvote_last_response
(state, model_selector, request: gr.Request)
visual_instruction_tuning/llava/serve/gradio_web_server.py:95
Methodval
(self)
image_video_text_understanding/VL-T5/src/utils.py:52
Methodvalid_step
(self, batch)
image_video_text_understanding/VL-T5/src/pretrain_model.py:70
Methodvalid_step
(self, batch)
image_video_text_understanding/VL-T5/src/pretrain_model.py:223
Methodvalid_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/multitask_model.py:109
Methodvalid_step
(self, batch)
image_video_text_understanding/VL-T5/src/vcr_model.py:337
Methodvis_forward
(self, batch, device)
image_video_text_understanding/VL-T5/src/modeling_bart.py:1457
Methodvocab
(self, proto)
image_video_text_understanding/VL-T5/src/tokenization.py:100
Methodvocab_size
(self)
image_video_text_understanding/VL-T5/src/tokenization.py:59
Functionvokenize_and_cache_dataset
(output_path, dataset, vokenizer, tokenizer)
image_video_text_understanding/CLIP-ViL/src/tools/resize_images.py:12
Functionwarmup_constant
Linearly increases learning rate over `warmup`*`t_total` (as provided to BertAdam) training steps. Learning rate is 1. afterwards.
image_video_text_understanding/CLIP-ViL/src/lxrt/optimization.py:31
Functionwarmup_cosine
(x, warmup=0.002)
image_video_text_understanding/CLIP-ViL/src/lxrt/optimization.py:26
Functionwarmup_linear
Specifies a triangular learning rate schedule where peak is reached at `warmup`*`t_total`-th (as provided to BertAdam) training step. After `
image_video_text_understanding/CLIP-ViL/src/lxrt/optimization.py:38
Functionworker_api_generate_stream
(request: Request)
visual_instruction_tuning/llava/serve/controller.py:277
← previousnext →2,401–2,500 of 2,507, ranked by callers