MCPcopy Create free account

hub / github.com/NVlabs/DoRA / functions

Functions2,507 in github.com/NVlabs/DoRA

↓ 1 callersMethod_prefix_tuning_forward
( self, input_ids=None, attention_mask=None, inputs_embeds=None, label
visual_instruction_tuning/peft/src/peft/peft_model.py:1381
↓ 1 callersMethod_prefix_tuning_forward
( self, input_ids=None, attention_mask=None, inputs_embeds=None, start
visual_instruction_tuning/peft/src/peft/peft_model.py:1556
↓ 1 callersMethod_prefix_tuning_forward
( self, input_ids=None, attention_mask=None, inputs_embeds=None, label
commonsense_reasoning/peft/src/peft/peft_model.py:434
↓ 1 callersMethod_prefix_tuning_forward
( self, input_ids=None, attention_mask=None, inputs_embeds=None, label
commonsense_reasoning/peft/src/peft/peft_model.py:932
↓ 1 callersMethod_prepare_adalora_config
(peft_config, model_config)
visual_instruction_tuning/peft/src/peft/tuners/adalora.py:320
↓ 1 callersMethod_prepare_dora_config
(peft_config, model_config)
visual_instruction_tuning/peft/src/peft/tuners/dora.py:488
↓ 1 callersMethod_prepare_ia3_config
(peft_config, model_config)
visual_instruction_tuning/peft/src/peft/tuners/ia3.py:322
↓ 1 callersMethod_prepare_lora_config
(peft_config, model_config)
visual_instruction_tuning/peft/src/peft/tuners/lora.py:444
↓ 1 callersMethod_prepare_model_for_gradient_checkpointing
r""" Prepares the model for gradient checkpointing if necessary
visual_instruction_tuning/peft/src/peft/peft_model.py:316
↓ 1 callersFunction_prepare_prompt_learning_config
(peft_config, model_config)
commonsense_reasoning/peft/src/peft/mapping.py:113
↓ 1 callersFunction_quantize
(x, bins)
image_video_text_understanding/CLIP-ViL/src/tools/vision_helpers.py:326
↓ 1 callersMethod_random_color
(self, maximum=255)
image_video_text_understanding/VL-T5/inference/visualizing_image.py:223
↓ 1 callersMethod_relative_position_bucket
Adapted from Mesh Tensorflow: https://github.com/tensorflow/mesh/blob/0cb87fe07da627bf0b7e60475d59f95ed6b5be3d/mesh_tensorflow/transf
image_video_text_understanding/VL-T5/src/my_transformers/modeling_t5.py:363
↓ 1 callersFunction_repeat_to_at_least
(iterable, n)
image_video_text_understanding/CLIP-ViL/src/tools/vision_helpers.py:164
↓ 1 callersFunction_repeat_to_at_least
(iterable, n)
image_video_text_understanding/CLIP-ViL/src/tasks/vision_helpers.py:164
↓ 1 callersMethod_replace_module
(self, parent_module, child_name, new_module, old_module)
commonsense_reasoning/peft/src/peft/tuners/bottleneck.py:186
↓ 1 callersMethod_replace_module
(self, parent_module, child_name, new_module, old_module)
commonsense_reasoning/peft/src/peft/tuners/lora.py:195
↓ 1 callersMethod_resize_final_logits_bias
(self, new_num_tokens: int)
image_video_text_understanding/VL-T5/src/my_transformers/modeling_bart.py:1442
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
image_video_text_understanding/CLIP-ViL/src/lxrt/tokenization.py:220
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
image_video_text_understanding/CLIP-ViL/src/lxrt/tokenization.py:209
↓ 1 callersFunction_set_adapter
(model, adapter_name)
visual_instruction_tuning/peft/src/peft/utils/other.py:182
↓ 1 callersMethod_set_budget_scheduler
(self, model)
visual_instruction_tuning/peft/src/peft/tuners/adalora.py:621
↓ 1 callersMethod_setup_prompt_encoder
(self, adapter_name: str)
visual_instruction_tuning/peft/src/peft/peft_model.py:276
↓ 1 callersMethod_setup_prompt_encoder
(self)
commonsense_reasoning/peft/src/peft/peft_model.py:201
↓ 1 callersMethod_split_kwargs
(cls, kwargs: Dict[str, Any])
visual_instruction_tuning/peft/src/peft/peft_model.py:487
↓ 1 callersMethod_split_kwargs
(cls, kwargs)
visual_instruction_tuning/peft/src/peft/utils/config.py:156
↓ 1 callersMethod_svd_weighted_adapter
(self, adapters, weights, new_rank, target, target_lora_A, target_lora_B)
visual_instruction_tuning/peft/src/peft/tuners/lora.py:551
↓ 1 callersMethod_test_model_attr
(self, model_id, config_cls, config_kwargs)
commonsense_reasoning/peft/tests/test_peft_model.py:55
↓ 1 callersMethod_test_prepare_for_training
(self, model_id, config_cls, config_kwargs)
commonsense_reasoning/peft/tests/test_peft_model.py:67
↓ 1 callersMethod_test_save_pretrained
(self, model_id, config_cls, config_kwargs)
commonsense_reasoning/peft/tests/test_peft_model.py:112
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
image_video_text_understanding/CLIP-ViL/src/lxrt/tokenization.py:242
↓ 1 callersMethod_unload_and_optionally_merge
(self, merge=True)
visual_instruction_tuning/peft/src/peft/tuners/dora.py:496
↓ 1 callersFunctionadapt_tokenizer_for_denoising
Adds sentinel tokens and padding token (if missing). Expands the tokenizer vocabulary to include sentinel tokens used in mixture-of-denoiser
visual_instruction_tuning/llava/model/language_model/mpt/adapt_tokenizer.py:6
↓ 1 callersMethodadd_adapter
(self, adapter_name, config=None)
visual_instruction_tuning/peft/src/peft/tuners/dora.py:201
↓ 1 callersMethodadd_adapter
(self, adapter_name, config=None)
visual_instruction_tuning/peft/src/peft/tuners/adalora.py:96
↓ 1 callersMethodadd_adapter
(self, adapter_name, config=None)
visual_instruction_tuning/peft/src/peft/tuners/lora.py:186
↓ 1 callersMethodadd_adapter
Add an adapter with the given name and config.
visual_instruction_tuning/peft/src/peft/tuners/adaption_prompt.py:169
↓ 1 callersMethodadd_box
(self, box, color=None)
image_video_text_understanding/VL-T5/inference/visualizing_image.py:88
↓ 1 callersFunctionadd_library_to_model_card
(output_dir)
visual_instruction_tuning/peft/src/peft/utils/other.py:31
↓ 1 callersMethodans2id
(self, ans)
image_video_text_understanding/VL-T5/src/qa_answer_table.py:66
↓ 1 callersMethodans2id_map
(self)
image_video_text_understanding/CLIP-ViL/src/pretrain/qa_answer_table.py:67
↓ 1 callersFunctionapply_delta
(base_model_path, target_model_path, delta_path)
visual_instruction_tuning/llava/model/apply_delta.py:13
↓ 1 callersFunctionassign_boxes_to_levels
( box_lists: List[torch.Tensor], min_level: int, max_level: int, canonical_box_size: int,
image_video_text_understanding/VL-T5/inference/modeling_frcnn.py:386
↓ 1 callersMethodattention
(self, x: torch.Tensor)
image_video_text_understanding/VL-T5/src/clip/model.py:323
↓ 1 callersFunctionattn_bias_shape
(attn_impl, n_heads, seq_len, alibi, prefix_lm, causal, use_sequence_id)
visual_instruction_tuning/llava/model/language_model/mpt/attention.py:258
↓ 1 callersFunctionavailable_models
()
image_video_text_understanding/CLIP-ViL/clip/clip.py:59
↓ 1 callersFunctionavailable_models
Returns the names of available CLIP models
image_video_text_understanding/VL-T5/src/clip/clip.py:68
↓ 1 callersFunctionbasic_clean
(text)
image_video_text_understanding/CLIP-ViL/clip/simple_tokenizer.py:50
↓ 1 callersFunctionbasic_clean
(text)
image_video_text_understanding/VL-T5/src/clip/simple_tokenizer.py:50
↓ 1 callersMethodbpe
(self, token)
image_video_text_understanding/CLIP-ViL/clip/simple_tokenizer.py:80
↓ 1 callersMethodbpe
(self, token)
image_video_text_understanding/VL-T5/src/clip/simple_tokenizer.py:80
↓ 1 callersMethodbudget_schedule
(self, step: int)
visual_instruction_tuning/peft/src/peft/tuners/adalora.py:632
↓ 1 callersFunctionbuild_alibi_bias
(n_heads, seq_len, full=False, alibi_bias_max=8, device=None, dtype=None)
visual_instruction_tuning/llava/model/language_model/mpt/attention.py:292
↓ 1 callersMethodbuild_attention_mask
(self)
image_video_text_understanding/CLIP-ViL/clip/model.py:411
↓ 1 callersMethodbuild_attention_mask
(self)
image_video_text_understanding/VL-T5/src/clip/model.py:473
↓ 1 callersFunctionbuild_attn_bias
(attn_impl, attn_bias, n_heads, seq_len, causal=False, alibi=False, alibi_bias_max=8)
visual_instruction_tuning/llava/model/language_model/mpt/attention.py:272
↓ 1 callersFunctionbuild_backbone
(cfg)
image_video_text_understanding/VL-T5/inference/modeling_frcnn.py:195
↓ 1 callersFunctionbuild_demo
(embed_mode)
visual_instruction_tuning/llava/serve/gradio_web_server.py:308
↓ 1 callersFunctionbuild_model
(state_dict: dict, adapter_config)
image_video_text_understanding/CLIP-ViL/clip/model.py:482
↓ 1 callersFunctionbuild_model
()
image_video_text_understanding/feature_extraction/detectron2_proposal_maxnms.py:146
↓ 1 callersFunctionbuild_model
()
image_video_text_understanding/feature_extraction/detectron2_given_box_maxnms.py:119
↓ 1 callersFunctionbuild_model
(state_dict: dict, adapter_type=None, reduction_factor=1, use_bn=True)
image_video_text_understanding/VL-T5/src/clip/model.py:544
↓ 1 callersFunctionbyte_array_to_image
(byte)
image_video_text_understanding/CLIP-ViL/src/pretrain/lxmert_data.py:98
↓ 1 callersFunctioncache
Stores a `numpy` `ndarray` into shared memory, caching subsequent requests (globally, across all processes) to the function so they point to
image_video_text_understanding/CLIP-ViL/src/tools/sharearray.py:68
↓ 1 callersMethodcall_adapter
Computes the output of the adapter layers.
image_video_text_understanding/CLIP-ViL/src/lxrt/adapters/adapter_controller.py:204
↓ 1 callersMethodcall_adapter
Computes the output of the adapter layers.
image_video_text_understanding/VL-T5/src/adapters/adapter_controller.py:224
↓ 1 callersMethodcall_for_batch
(self, output_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs)
visual_instruction_tuning/llava/mm_utils.py:88
↓ 1 callersFunctioncapitalizeFirstChar
(str)
visual_instruction_tuning/llava/eval/webpage/script.js:41
↓ 1 callersMethodcaption_predict
(self, loader, dump_path=None)
image_video_text_understanding/VL-T5/src/multitask.py:831
↓ 1 callersMethodcls_compute_acc
(self, quesid2ans, gts_for_data)
image_video_text_understanding/VL-T5/src/multitask.py:958
↓ 1 callersMethodcls_evaluate
(self, loader, dump_path=None)
image_video_text_understanding/VL-T5/src/multitask.py:968
↓ 1 callersMethodcls_predict
(self, loader, dump_path=None)
image_video_text_understanding/VL-T5/src/multitask.py:932
↓ 1 callersMethodcollect_state_dict
(self, model)
visual_instruction_tuning/peft/src/peft/tuners/dora.py:329
↓ 1 callersMethodcompress
(self)
image_video_text_understanding/CLIP-ViL/src/pretrain/lxmert_data.py:314
↓ 1 callersFunctionconsolidate_ckpt
(src_path, dst_path)
visual_instruction_tuning/llava/model/consolidate.py:13
↓ 1 callersMethodconstruct_adapters
Constructs adapter layers and adds them to a dictionary for the given tasks. Args: tasks: A list of string contai
image_video_text_understanding/CLIP-ViL/src/lxrt/adapters/adapter_controller.py:38
↓ 1 callersMethodconstruct_adapters
Constructs adapter layers and adds them to a dictionary for the given tasks. Args: tasks: A list of string contai
image_video_text_understanding/VL-T5/src/adapters/adapter_controller.py:41
↓ 1 callersMethodconstruct_lora_weights
(self, tasks)
image_video_text_understanding/VL-T5/src/lora/controller.py:75
↓ 1 callersMethodconstruct_prompts
Constructs adapter layers and adds them to a dictionary for the given tasks. Args: tasks: A list of string contai
image_video_text_understanding/VL-T5/src/prompt/prompt_controller.py:22
↓ 1 callersFunctionconvert_boxes_to_pooler_format
(box_lists: List[torch.Tensor])
image_video_text_understanding/VL-T5/inference/modeling_frcnn.py:378
↓ 1 callersMethodconvert_example_to_features
Convert a raw sample (pair of sentences as tokenized strings) into a proper training sample with IDs, LM labels, input_mask, CLS and
image_video_text_understanding/CLIP-ViL/src/pretrain/lxmert_data.py:577
↓ 1 callersMethodconvert_ids_to_tokens
Converts a sequence of ids in wordpiece tokens using the vocab.
image_video_text_understanding/CLIP-ViL/src/lxrt/tokenization.py:128
↓ 1 callersFunctionconvert_sents_to_features
Loads a data file into a list of `InputBatch`s.
image_video_text_understanding/CLIP-ViL/src/lxrt/entry.py:38
↓ 1 callersFunctionconvert_slow_vlt5tokenizer
(vlt5tokenizer)
image_video_text_understanding/VL-T5/src/tokenization.py:122
↓ 1 callersMethodconvert_to_custom_tokenizer
{'tokens': ['a', 'group', 'of', 'people', 'stand', 'in', 'the', 'back', 'of', 'a', 'truck', 'filled', 'with', 'cotton'], 'raw': 'A group of p
image_video_text_understanding/CLIP-ViL/src/tasks/snli_data.py:181
↓ 1 callersFunctionconvert_weights
Convert applicable model parameters to fp16
image_video_text_understanding/VL-T5/src/clip/model.py:520
↓ 1 callersFunctioncount_parameters
(model)
image_video_text_understanding/VL-T5/src/modeling_bart.py:1782
↓ 1 callersFunctioncount_parameters
(model)
image_video_text_understanding/VL-T5/src/vis_encoder.py:343
↓ 1 callersFunctioncount_parameters
(model)
image_video_text_understanding/VL-T5/src/my_transformers/modeling_bart.py:1795
↓ 1 callersFunctioncount_parameters
(model)
image_video_text_understanding/VL-T5/src/my_transformers/modeling_t5.py:1749
↓ 1 callersMethodcreateIndex
(self)
image_video_text_understanding/VL-T5/src/refcoco_utils.py:95
↓ 1 callersFunctioncreate_aspect_ratio_groups_cache
(dataset, k=0)
image_video_text_understanding/CLIP-ViL/src/tasks/vision_helpers.py:358
↓ 1 callersFunctioncreate_batch
(dataset, batch_size)
commonsense_reasoning/commonsense_evaluate.py:201
↓ 1 callersFunctioncreate_data_loader
(questions, image_folder, tokenizer, image_processor, model_config, batch_size=1, num_workers=4)
visual_instruction_tuning/llava/eval/model_vqa_loader.py:65
↓ 1 callersFunctioncreate_dir
(dir_path)
commonsense_reasoning/commonsense_evaluate.py:158
↓ 1 callersFunctioncreate_dir
(dir_path)
commonsense_reasoning/evaluate.py:135
↓ 1 callersFunctioncreate_one_example_chatbot
(format, question, context, choice, answer, lecture, solution, test_example=True)
visual_instruction_tuning/scripts/convert_sqa_to_llava_base_prompt.py:41
↓ 1 callersMethodcreate_or_update_model_card
Updates or create model card to include information about peft: 1. Adds `peft` library tag 2. Adds peft version 3. Ad
visual_instruction_tuning/peft/src/peft/peft_model.py:630
↓ 1 callersMethodcross_att
(self, lang_input, lang_attention_mask, visn_input, visn_attention_mask, task=None)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:450
↓ 1 callersFunctiondeepspeed_init
Init DeepSpeed, after updating the DeepSpeed configuration with any relevant Trainer's args. If ``resume_from_checkpoint`` was passed then an
image_video_text_understanding/VL-T5/src/my_deepspeed.py:4
← previousnext →601–700 of 2,507, ranked by callers