MCPcopy Create free account

hub / github.com/NVlabs/DoRA / functions

Functions2,507 in github.com/NVlabs/DoRA

Functionskip_non_pt_mqa
r""" Skip tests that are prefix tuning for MQA models (not supported yet)
visual_instruction_tuning/peft/tests/test_decoder_models.py:41
Methodstem
(x)
image_video_text_understanding/CLIP-ViL/clip/model.py:201
Methodstep
(self)
image_video_text_understanding/CLIP-ViL/src/lxrt/visual_transformers.py:92
Functionstr2bool
(v)
image_video_text_understanding/VL-T5/src/param.py:24
Functionsubsample_labels
Returns: pos_idx, neg_idx (Tensor): 1D vector of indices. The total length of both is `num_samples` or fewer.
image_video_text_understanding/VL-T5/inference/modeling_frcnn.py:335
Functionswish
(x)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:140
Functionsynchronize
Helper function to synchronize (barrier) among all processes when using distributed training
image_video_text_understanding/VL-T5/src/dist_utils.py:69
MethodtearDown
r""" Efficient mechanism to free GPU memory after each test. Based on https://github.com/huggingface/transformers/issues/21094
visual_instruction_tuning/peft/tests/test_common_gpu.py:53
MethodtearDown
r""" Efficient mechanism to free GPU memory after each test. Based on https://github.com/huggingface/transformers/issues/21094
visual_instruction_tuning/peft/tests/test_gpu_examples.py:110
Methodtest_4bit_adalora_causalLM
r""" Tests the 4bit training with adalora
visual_instruction_tuning/peft/tests/test_gpu_examples.py:179
Methodtest_adapter_name
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:73
Methodtest_adapter_name
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:76
Methodtest_adapter_name
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:59
Methodtest_adaption_prompt_4bit
(self)
visual_instruction_tuning/peft/tests/test_common_gpu.py:258
Methodtest_adaption_prompt_8bit
(self)
visual_instruction_tuning/peft/tests/test_common_gpu.py:235
Methodtest_add_and_set_while_disabled
Test that adding and setting adapters while disabled works as intended.
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:298
Methodtest_add_weighted_adapter_base_unchanged
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_stablediffusion.py:130
Methodtest_attributes
(self)
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:72
Methodtest_attributes_parametrized
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:69
Methodtest_attributes_parametrized
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:72
Methodtest_attributes_parametrized
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:55
Methodtest_attributes_parametrized
(self, test_name, model_id, config_cls, config_kwargs)
commonsense_reasoning/peft/tests/test_peft_model.py:52
Methodtest_audio_model_training
r""" Test the audio model training on a single GPU device. This test is a converted version of https://github.com/huggingface/peft/blo
visual_instruction_tuning/peft/tests/test_gpu_examples.py:424
Methodtest_bf16_inference
Test that AdaptionPrompt works when Llama using a half-precision model.
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:367
Methodtest_causal_lm_training
r""" Test the CausalLM training on a single GPU device. This test is a converted version of https://github.com/huggingface/peft/blob/m
visual_instruction_tuning/peft/tests/test_gpu_examples.py:120
Methodtest_causal_lm_training_mutli_gpu
r""" Test the CausalLM training on a multi-GPU device. This test is a converted version of https://github.com/huggingface/peft/blob/ma
visual_instruction_tuning/peft/tests/test_gpu_examples.py:240
Methodtest_config_copy
(self)
visual_instruction_tuning/peft/tests/test_config.py:139
Methodtest_config_deepcopy
(self)
visual_instruction_tuning/peft/tests/test_config.py:146
Methodtest_config_pickle_roundtrip
(self)
visual_instruction_tuning/peft/tests/test_config.py:153
Methodtest_delete_adapter
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:138
Methodtest_delete_adapter
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:137
Methodtest_delete_adapter
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:125
Methodtest_disable_adapter
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:180
Methodtest_disable_adapter
(self)
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:380
Methodtest_disable_adapter
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:167
Methodtest_disable_adapter
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_stablediffusion.py:158
Methodtest_from_json_file
(self)
visual_instruction_tuning/peft/tests/test_config.py:91
Methodtest_from_json_file
(self)
commonsense_reasoning/peft/tests/test_config.py:66
Methodtest_from_pretrained
r""" Test if the config is correctly loaded using: - from_pretrained
visual_instruction_tuning/peft/tests/test_config.py:68
Methodtest_from_pretrained_cache_dir
r""" Test if the config is correctly loaded with extra kwargs
visual_instruction_tuning/peft/tests/test_config.py:109
Methodtest_from_pretrained_cache_dir_remote
r""" Test if the config is correctly loaded with a checkpoint from the hub
visual_instruction_tuning/peft/tests/test_config.py:119
Methodtest_from_pretrained_config_construction
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:89
Methodtest_from_pretrained_config_construction
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:92
Methodtest_from_pretrained_config_construction
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:75
Methodtest_generate
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:106
Methodtest_generate
(self)
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:213
Methodtest_generate
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:93
Methodtest_generate_half_prec
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:110
Methodtest_generate_half_prec
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:97
Methodtest_inference_safetensors
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:130
Methodtest_inference_safetensors
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:129
Methodtest_inference_safetensors
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:117
Methodtest_lora_bnb_4bit_quantization
r""" Test that tests if the 4bit quantization using LoRA works as expected
visual_instruction_tuning/peft/tests/test_common_gpu.py:131
Methodtest_lora_bnb_4bit_quantization_from_pretrained_safetensors
r""" Test that tests if the 4bit quantization using LoRA works as expected with safetensors weights.
visual_instruction_tuning/peft/tests/test_common_gpu.py:116
Methodtest_lora_bnb_8bit_quantization
r""" Test that tests if the 8bit quantization using LoRA works as expected
visual_instruction_tuning/peft/tests/test_common_gpu.py:65
Methodtest_lora_causal_lm_mutli_gpu_inference
r""" Test if LORA can be used for inference on multiple GPUs.
visual_instruction_tuning/peft/tests/test_common_gpu.py:179
Methodtest_lora_seq2seq_lm_mutli_gpu_inference
r""" Test if LORA can be used for inference on multiple GPUs - 8bit version.
visual_instruction_tuning/peft/tests/test_common_gpu.py:209
Methodtest_merge_layers
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:102
Methodtest_merge_layers
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:105
Methodtest_merge_layers
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:88
Methodtest_merge_layers
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_stablediffusion.py:102
Methodtest_methods
r""" Test if all configs have the expected methods. Here we test - to_dict - save_pretrained - from_pretrained
visual_instruction_tuning/peft/tests/test_config.py:47
Methodtest_methods
r""" Test if all configs have the expected methods. Here we test - to_dict - save_pretrained - from_pretrained
commonsense_reasoning/peft/tests/test_config.py:32
Methodtest_peft_model_device_map
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:134
Methodtest_peft_model_device_map
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:133
Methodtest_peft_model_device_map
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:121
Methodtest_prefix_tuning_half_prec_conversion
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:114
Methodtest_prefix_tuning_half_prec_conversion
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:101
Methodtest_prepare_for_int8_training
(self)
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:92
Methodtest_prepare_for_training
(self)
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:81
Methodtest_prepare_for_training_parametrized
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:77
Methodtest_prepare_for_training_parametrized
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:80
Methodtest_prepare_for_training_parametrized
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:63
Methodtest_prepare_for_training_parametrized
(self, test_name, model_id, config_cls, config_kwargs)
commonsense_reasoning/peft/tests/test_peft_model.py:109
Methodtest_save_pretrained
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:81
Methodtest_save_pretrained
r""" Test if the config is correctly saved and loaded using - save_pretrained
visual_instruction_tuning/peft/tests/test_config.py:78
Methodtest_save_pretrained
(self)
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:118
Methodtest_save_pretrained
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:84
Methodtest_save_pretrained
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:67
Methodtest_save_pretrained
(self, test_name, model_id, config_cls, config_kwargs)
commonsense_reasoning/peft/tests/test_peft_model.py:155
Methodtest_save_pretrained
r""" Test if the config is correctly saved and loaded using - save_pretrained
commonsense_reasoning/peft/tests/test_config.py:53
Methodtest_save_pretrained_selected_adapters
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:85
Methodtest_save_pretrained_selected_adapters
(self)
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:163
Methodtest_save_pretrained_selected_adapters
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:88
Methodtest_save_pretrained_selected_adapters
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:71
Methodtest_seq2seq_lm_training_mutli_gpu
r""" Test the Seq2SeqLM training on a multi-GPU device. This test is a converted version of https://github.com/huggingface/peft/blob/m
visual_instruction_tuning/peft/tests/test_gpu_examples.py:364
Methodtest_seq2seq_lm_training_single_gpu
r""" Test the Seq2SeqLM training on a single GPU device. This test is a converted version of https://github.com/huggingface/peft/blob/
visual_instruction_tuning/peft/tests/test_gpu_examples.py:303
Methodtest_sequence_adapter_ops
Test sequence of adapter operations.
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:229
Methodtest_set_attributes
(self)
visual_instruction_tuning/peft/tests/test_config.py:127
Methodtest_set_attributes
(self)
commonsense_reasoning/peft/tests/test_config.py:86
Methodtest_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/caption_model.py:41
Methodtest_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/caption_model.py:100
Methodtest_step
(self, batch)
image_video_text_understanding/VL-T5/src/refcoco_model.py:72
Methodtest_step
(self, batch)
image_video_text_understanding/VL-T5/src/refcoco_model.py:170
Methodtest_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/classification_model.py:86
Methodtest_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/classification_model.py:219
Methodtest_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/gqa_model.py:116
Methodtest_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/multitask_model.py:128
Methodtest_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/mmt_model.py:38
Methodtest_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/mmt_model.py:93
← previousnext →2,301–2,400 of 2,507, ranked by callers