MCPcopy Create free account

hub / github.com/NVlabs/DoRA / functions

Functions2,507 in github.com/NVlabs/DoRA

↓ 3 callersMethodvqa_predict
(self, loader, dump_path=None)
image_video_text_understanding/VL-T5/src/multitask.py:651
↓ 3 callersFunctionwhitespace_tokenize
Runs basic whitespace cleaning and splitting on a piece of text.
image_video_text_understanding/CLIP-ViL/src/lxrt/tokenization.py:63
↓ 3 callersMethodzero_pad
(self, x)
image_video_text_understanding/VL-T5/src/lora/layers.py:208
↓ 2 callersMethod__init__
(self, normalized_shape, eps=1e-05, weight=True, dtype=None, device=None)
visual_instruction_tuning/llava/model/language_model/mpt/norm.py:35
↓ 2 callersMethod__init__
(self, config: BartConfig)
image_video_text_understanding/VL-T5/src/modeling_prefix_bart.py:432
↓ 2 callersMethod__init__
(self, config)
image_video_text_understanding/VL-T5/src/pretrain_model.py:9
↓ 2 callersMethod__init__
(self, config)
image_video_text_understanding/VL-T5/src/modeling_t5.py:410
↓ 2 callersMethod__init__
(self, config, num_answers=None, label2ans=None)
image_video_text_understanding/VL-T5/src/vqa_model.py:9
↓ 2 callersMethod__init__
(self, config, num_answers=None, label2ans=None)
image_video_text_understanding/VL-T5/src/activitynet_model.py:10
↓ 2 callersFunction_bwd_kernel_one_col_block
(start_n, Q, K, V, Bias, DO, DQ, DK, DV, LSE, D, softmax_scale, stride_qm, stride_kn, stride_vn, stride_bm, st
visual_instruction_tuning/llava/model/language_model/mpt/flash_attn_triton.py:184
↓ 2 callersFunction_bwd_store_dk_dv
(dk_ptrs, dv_ptrs, dk, dv, offs_n, offs_d, seqlen_k, headdim, EVEN_M: tl.constexpr, EVEN_N: tl.constexpr, EVEN
visual_instruction_tuning/llava/model/language_model/mpt/flash_attn_triton.py:168
↓ 2 callersFunction_cat_with_none
(feat_1, feat_2, dim)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:521
↓ 2 callersFunction_clip_box
(tensor, box_size: Tuple[int, int])
image_video_text_understanding/VL-T5/inference/modeling_frcnn.py:142
↓ 2 callersMethod_create_new_module
(self, lora_config, adapter_name, target, wdecompose=False)
visual_instruction_tuning/peft/src/peft/tuners/dora.py:285
↓ 2 callersMethod_find_and_replace
(self, adapter_name)
visual_instruction_tuning/peft/src/peft/tuners/lora.py:319
↓ 2 callersMethod_force_token_id_to_be_generated
force one of token_ids to be generated by setting prob of all other tokens to 0 (logprob=-float("inf"))
image_video_text_understanding/VL-T5/src/my_transformers/modeling_bart.py:1557
↓ 2 callersFunction_get_attn_modules
Helper that gets a list of the model's attention modules. Each module has a `bias` buffer used for causal masking. The Prefix LM conv
visual_instruction_tuning/llava/model/language_model/mpt/hf_prefixlm_converter.py:45
↓ 2 callersFunction_get_global_gloo_group
Return a process group based on gloo backend, containing all the ranks The result is cached.
image_video_text_understanding/VL-T5/src/dist_utils.py:85
↓ 2 callersMethod_get_peft_type
( cls, model_id, **hf_hub_download_kwargs, )
visual_instruction_tuning/peft/src/peft/utils/config.py:172
↓ 2 callersMethod_get_submodules
(self, key)
commonsense_reasoning/peft/src/peft/tuners/dora.py:231
↓ 2 callersFunction_memmapped_view
(filename)
image_video_text_understanding/CLIP-ViL/src/tools/sharearray.py:44
↓ 2 callersFunction_normal_param_init_fn_
(module: nn.Module, std: float, n_layers: int, d_model: Optional[int]=None, init_div_is_residual: Union[int, f
visual_instruction_tuning/llava/model/language_model/mpt/param_init_fns.py:124
↓ 2 callersFunction_pad_to_largest_tensor
Returns: list[int]: size of the tensor, on each rank Tensor: padded tensor that has the max size
image_video_text_understanding/VL-T5/src/dist_utils.py:114
↓ 2 callersFunction_prepare_bottleneck_config
(peft_config, model_config)
commonsense_reasoning/peft/src/peft/mapping.py:180
↓ 2 callersFunction_prepare_dora_config
(peft_config, model_config)
commonsense_reasoning/peft/src/peft/mapping.py:167
↓ 2 callersFunction_prepare_lora_config
(peft_config, model_config)
commonsense_reasoning/peft/src/peft/mapping.py:155
↓ 2 callersFunction_prepare_prompt_learning_config
(peft_config, model_config)
visual_instruction_tuning/peft/src/peft/utils/other.py:188
↓ 2 callersFunction_quantize
(x, bins)
image_video_text_understanding/CLIP-ViL/src/tasks/vision_helpers.py:338
↓ 2 callersMethod_replace_module
(self, parent_module, child_name, new_module, old_module)
visual_instruction_tuning/peft/src/peft/tuners/lora.py:371
↓ 2 callersMethod_replace_module
(self, parent_module, child_name, new_module, old_module)
commonsense_reasoning/peft/src/peft/tuners/dora.py:237
↓ 2 callersFunction_reset_is_causal
(num_query_tokens: int, num_key_tokens: int, original_is_causal: bool)
visual_instruction_tuning/llava/model/language_model/mpt/attention.py:12
↓ 2 callersMethod_save
(self, output_dir: Optional[str] = None, state_dict=None)
visual_instruction_tuning/llava/train/llava_trainer.py:260
↓ 2 callersFunction_serialize_to_tensor
(data, group)
image_video_text_understanding/VL-T5/src/dist_utils.py:96
↓ 2 callersMethod_set_adapted_attentions
Replace LlamaAttention modules with cached AdaptedAttention modules.
visual_instruction_tuning/peft/src/peft/tuners/adaption_prompt.py:238
↓ 2 callersMethod_set_adapter_layers
(self, enabled=True)
visual_instruction_tuning/peft/src/peft/tuners/ia3.py:302
↓ 2 callersMethod_set_adapter_layers
(self, enabled=True)
visual_instruction_tuning/peft/src/peft/tuners/dora.py:452
↓ 2 callersMethod_set_adapter_layers
(self, enabled=True)
visual_instruction_tuning/peft/src/peft/tuners/lora.py:408
↓ 2 callersMethod_set_adapter_layers
(self, enabled=True)
commonsense_reasoning/peft/src/peft/tuners/dora.py:275
↓ 2 callersMethod_set_adapter_layers
(self, enabled=True)
commonsense_reasoning/peft/src/peft/tuners/bottleneck.py:217
↓ 2 callersMethod_set_adapter_layers
(self, enabled=True)
commonsense_reasoning/peft/src/peft/tuners/lora.py:226
↓ 2 callersMethod_set_config_defaults
(self, config, config_defaults)
visual_instruction_tuning/llava/model/language_model/mpt/configuration_mpt.py:90
↓ 2 callersMethod_shift_right
(self, input_ids)
image_video_text_understanding/VL-T5/src/my_transformers/modeling_t5.py:816
↓ 2 callersMethod_test_generate
(self, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/testing_common.py:395
↓ 2 callersMethod_test_generate_half_prec
(self, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/testing_common.py:413
↓ 2 callersMethod_test_prefix_tuning_half_prec_conversion
(self, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/testing_common.py:435
↓ 2 callersFunction_tokenize_fn
Tokenize a list of strings.
visual_instruction_tuning/llava/train/train.py:247
↓ 2 callersFunction_tokenize_fn
Tokenize a list of strings.
visual_instruction_tuning/llava/train/train_dora.py:259
↓ 2 callersFunction_transform
(n_px)
image_video_text_understanding/VL-T5/src/clip/clip.py:58
↓ 2 callersMethod_unload_and_optionally_merge
(self, merge=True)
visual_instruction_tuning/peft/src/peft/tuners/lora.py:451
↓ 2 callersMethod_validate_config
(self)
visual_instruction_tuning/llava/model/language_model/mpt/configuration_mpt.py:96
↓ 2 callersMethod_vqa_file_split
(self, file)
image_video_text_understanding/VL-T5/inference/extracting_data.py:78
↓ 2 callersMethodadd_adapter
(self, adapter_name: str, peft_config: PeftConfig)
visual_instruction_tuning/peft/src/peft/peft_model.py:458
↓ 2 callersFunctionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors). Args: data: any picklable object group: a torch process
image_video_text_understanding/VL-T5/src/dist_utils.py:145
↓ 2 callersMethodans2id_map
(self)
image_video_text_understanding/VL-T5/src/qa_answer_table.py:72
↓ 2 callersMethodapply_deltas
Apply transformation `deltas` (dx, dy, dw, dh) to `boxes`. Args: deltas (Tensor): transformation deltas of shape (N, k*4)
image_video_text_understanding/VL-T5/inference/modeling_frcnn.py:484
↓ 2 callersMethodapply_layer_norm
Applies layer norm to the inputs.
image_video_text_understanding/CLIP-ViL/src/lxrt/adapters/adapter_controller.py:198
↓ 2 callersMethodapply_layer_norm
Applies layer norm to the inputs.
image_video_text_understanding/VL-T5/src/adapters/adapter_controller.py:218
↓ 2 callersMethodattention
(self, x: torch.Tensor, text_mask=None)
image_video_text_understanding/CLIP-ViL/clip/model.py:247
↓ 2 callersFunctionauto_upgrade
(config)
visual_instruction_tuning/llava/model/utils.py:4
↓ 2 callersFunctionbuild_prompt_chatbot
(problems, shot_qids, prompt_format, use_caption=False, options=["A", "B", "C", "D", "E"], is_test=False)
visual_instruction_tuning/scripts/convert_sqa_to_llava_base_prompt.py:221
↓ 2 callersFunctionbuild_vision_projector
(config, delay_load=False, **kwargs)
visual_instruction_tuning/llava/model/multimodal_projector/builder.py:33
↓ 2 callersFunctionbuild_vision_tower
(vision_tower_cfg, **kwargs)
visual_instruction_tuning/llava/model/multimodal_encoder/builder.py:5
↓ 2 callersFunctionbytes_to_unicode
Returns list of utf-8 byte and a corresponding list of unicode strings. The reversible bpe codes work on unicode strings. This means you
image_video_text_understanding/CLIP-ViL/clip/simple_tokenizer.py:16
↓ 2 callersFunctionbytes_to_unicode
Returns list of utf-8 byte and a corresponding list of unicode strings. The reversible bpe codes work on unicode strings. This means you
image_video_text_understanding/VL-T5/src/clip/simple_tokenizer.py:16
↓ 2 callersFunctioncached_path
( url_or_filename, cache_dir=None, force_download=False, proxies=None, resume_download=Fal
image_video_text_understanding/VL-T5/inference/utils.py:424
↓ 2 callersMethodcaption_evaluate
(self, loader, dump_path=None)
image_video_text_understanding/VL-T5/src/multitask.py:868
↓ 2 callersMethodcaption_evaluate
(self, loader, dump_path=None)
image_video_text_understanding/VL-T5/src/multitask_video.py:630
↓ 2 callersFunctioncheck_valid_inputs
(*tensors, valid_dtypes=[torch.float16, torch.bfloat16])
visual_instruction_tuning/llava/model/language_model/mpt/attention.py:64
↓ 2 callersMethodcompute_acc
(self, quesid2ans, gts_for_data)
image_video_text_understanding/VL-T5/src/classification.py:398
↓ 2 callersFunctioncompute_aspect_ratios
(dataset, indices=None)
image_video_text_understanding/CLIP-ViL/src/tools/vision_helpers.py:309
↓ 2 callersMethodcompute_bias
Compute binned relative position bias
image_video_text_understanding/VL-T5/src/my_transformers/modeling_t5.py:407
↓ 2 callersMethodconvert_ans
(self, ans)
image_video_text_understanding/CLIP-ViL/src/pretrain/qa_answer_table.py:45
↓ 2 callersMethodconvert_to_list
(self, tasks)
image_video_text_understanding/CLIP-ViL/src/lxrt/adapters/adapter_controller.py:81
↓ 2 callersMethodconvert_to_list
(self, tasks)
image_video_text_understanding/VL-T5/src/adapters/adapter_controller.py:101
↓ 2 callersFunctioncount_parameters
(model)
image_video_text_understanding/VL-T5/src/clip/model.py:619
↓ 2 callersFunctioncreate_one_example
(format, question, context, choice, answer, lecture, solution, test_example=True)
visual_instruction_tuning/scripts/convert_sqa_to_llava_base_prompt.py:106
↓ 2 callersFunctioncreate_one_example_gpt4
(format, question, context, choice, answer, lecture, solution, test_example=True)
visual_instruction_tuning/scripts/convert_sqa_to_llava_base_prompt.py:162
↓ 2 callersFunctionddp_forward
(self, *inputs, **kwargs)
image_video_text_understanding/VL-T5/src/ddp_fix.py:14
↓ 2 callersMethoddelete_adapter
Deletes an existing adapter. Args: adapter_name (str): Name of the adapter to be deleted.
visual_instruction_tuning/peft/src/peft/tuners/dora.py:546
↓ 2 callersMethoddict
(self)
visual_instruction_tuning/llava/conversation.py:201
↓ 2 callersFunctiondisplayAnswers
(index)
visual_instruction_tuning/llava/eval/webpage/script.js:116
↓ 2 callersMethoddownsample_inputs
(self, inputs)
image_video_text_understanding/VL-T5/src/modeling_bart.py:422
↓ 2 callersMethoddownsample_inputs
(self, inputs)
image_video_text_understanding/VL-T5/src/modeling_bart.py:482
↓ 2 callersMethoddump_result
Dump the result to a GQA-challenge submittable json file. GQA json file submission requirement: results = [result]
image_video_text_understanding/CLIP-ViL/src/tasks/gqa_data.py:368
↓ 2 callersMethodencode_image
(self, image)
image_video_text_understanding/CLIP-ViL/clip/model.py:423
↓ 2 callersMethodencode_images
(self, images)
visual_instruction_tuning/llava/model/llava_arch.py:94
↓ 2 callersFunctioneval_single
(annotation_file, result_file)
visual_instruction_tuning/llava/eval/eval_textvqa.py:35
↓ 2 callersMethodevaluate
(self, loader)
image_video_text_understanding/VL-T5/src/refcoco.py:363
↓ 2 callersMethodevaluate
(self, loader, dump_path=None)
image_video_text_understanding/VL-T5/src/nlvr.py:426
↓ 2 callersMethodevaluate
(self, loader, dump_path=None)
image_video_text_understanding/VL-T5/src/how2qa.py:397
↓ 2 callersMethodevaluate
(self, loader, dump_path=None)
image_video_text_understanding/VL-T5/src/yc2c.py:393
↓ 2 callersMethodevaluate
(self, loader, dump_path=None)
image_video_text_understanding/VL-T5/src/tvqa.py:397
↓ 2 callersMethodevaluate
(self, loader, dump_path=None)
image_video_text_understanding/VL-T5/src/vqa.py:425
↓ 2 callersMethodevaluate
(self, loader, dump_path=None)
image_video_text_understanding/VL-T5/src/activitynet.py:392
↓ 2 callersMethodevaluate_epoch
(self, epoch)
image_video_text_understanding/VL-T5/src/pretrain.py:380
↓ 2 callersMethodevaluate_epoch
(self, epoch)
image_video_text_understanding/VL-T5/src/pretrain_vcr.py:316
↓ 2 callersMethodfeature_select
(self, image_forward_outs)
visual_instruction_tuning/llava/model/multimodal_encoder/clip_encoder.py:29
↓ 2 callersMethodforward
train_features = [convert_example_to_features(example, self.max_seq_length, self.tokenizer) for example in examples]
image_video_text_understanding/CLIP-ViL/src/pretrain/lxmert_pretrain.py:239
↓ 2 callersMethodforward
(self, x: torch.Tensor)
commonsense_reasoning/peft/src/peft/tuners/lora.py:348
↓ 2 callersMethodfrom_json_file
r""" Loads a configuration file from a json file. Args: path_json_file (`str`): The path to the json file
commonsense_reasoning/peft/src/peft/utils/config.py:117
← previousnext →301–400 of 2,507, ranked by callers