Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVlabs/DoRA
/ functions
Functions
2,507 in github.com/NVlabs/DoRA
⨍
Functions
2,507
◇
Types & classes
532
↳
Endpoints
73
Function
skip_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
Method
stem
(x)
image_video_text_understanding/CLIP-ViL/clip/model.py:201
Method
step
(self)
image_video_text_understanding/CLIP-ViL/src/lxrt/visual_transformers.py:92
Function
str2bool
(v)
image_video_text_understanding/VL-T5/src/param.py:24
Function
subsample_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
Function
swish
(x)
image_video_text_understanding/CLIP-ViL/src/lxrt/modeling.py:140
Function
synchronize
Helper function to synchronize (barrier) among all processes when using distributed training
image_video_text_understanding/VL-T5/src/dist_utils.py:69
Method
tearDown
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
Method
tearDown
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
Method
test_4bit_adalora_causalLM
r""" Tests the 4bit training with adalora
visual_instruction_tuning/peft/tests/test_gpu_examples.py:179
Method
test_adapter_name
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:73
Method
test_adapter_name
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:76
Method
test_adapter_name
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:59
Method
test_adaption_prompt_4bit
(self)
visual_instruction_tuning/peft/tests/test_common_gpu.py:258
Method
test_adaption_prompt_8bit
(self)
visual_instruction_tuning/peft/tests/test_common_gpu.py:235
Method
test_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
Method
test_add_weighted_adapter_base_unchanged
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_stablediffusion.py:130
Method
test_attributes
(self)
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:72
Method
test_attributes_parametrized
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:69
Method
test_attributes_parametrized
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:72
Method
test_attributes_parametrized
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:55
Method
test_attributes_parametrized
(self, test_name, model_id, config_cls, config_kwargs)
commonsense_reasoning/peft/tests/test_peft_model.py:52
Method
test_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
Method
test_bf16_inference
Test that AdaptionPrompt works when Llama using a half-precision model.
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:367
Method
test_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
Method
test_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
Method
test_config_copy
(self)
visual_instruction_tuning/peft/tests/test_config.py:139
Method
test_config_deepcopy
(self)
visual_instruction_tuning/peft/tests/test_config.py:146
Method
test_config_pickle_roundtrip
(self)
visual_instruction_tuning/peft/tests/test_config.py:153
Method
test_delete_adapter
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:138
Method
test_delete_adapter
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:137
Method
test_delete_adapter
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:125
Method
test_disable_adapter
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:180
Method
test_disable_adapter
(self)
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:380
Method
test_disable_adapter
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:167
Method
test_disable_adapter
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_stablediffusion.py:158
Method
test_from_json_file
(self)
visual_instruction_tuning/peft/tests/test_config.py:91
Method
test_from_json_file
(self)
commonsense_reasoning/peft/tests/test_config.py:66
Method
test_from_pretrained
r""" Test if the config is correctly loaded using: - from_pretrained
visual_instruction_tuning/peft/tests/test_config.py:68
Method
test_from_pretrained_cache_dir
r""" Test if the config is correctly loaded with extra kwargs
visual_instruction_tuning/peft/tests/test_config.py:109
Method
test_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
Method
test_from_pretrained_config_construction
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:89
Method
test_from_pretrained_config_construction
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:92
Method
test_from_pretrained_config_construction
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:75
Method
test_generate
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:106
Method
test_generate
(self)
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:213
Method
test_generate
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:93
Method
test_generate_half_prec
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:110
Method
test_generate_half_prec
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:97
Method
test_inference_safetensors
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:130
Method
test_inference_safetensors
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:129
Method
test_inference_safetensors
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:117
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_merge_layers
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:102
Method
test_merge_layers
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:105
Method
test_merge_layers
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:88
Method
test_merge_layers
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_stablediffusion.py:102
Method
test_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
Method
test_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
Method
test_peft_model_device_map
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:134
Method
test_peft_model_device_map
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:133
Method
test_peft_model_device_map
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:121
Method
test_prefix_tuning_half_prec_conversion
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:114
Method
test_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
Method
test_prepare_for_int8_training
(self)
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:92
Method
test_prepare_for_training
(self)
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:81
Method
test_prepare_for_training_parametrized
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:77
Method
test_prepare_for_training_parametrized
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:80
Method
test_prepare_for_training_parametrized
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:63
Method
test_prepare_for_training_parametrized
(self, test_name, model_id, config_cls, config_kwargs)
commonsense_reasoning/peft/tests/test_peft_model.py:109
Method
test_save_pretrained
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:81
Method
test_save_pretrained
r""" Test if the config is correctly saved and loaded using - save_pretrained
visual_instruction_tuning/peft/tests/test_config.py:78
Method
test_save_pretrained
(self)
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:118
Method
test_save_pretrained
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:84
Method
test_save_pretrained
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:67
Method
test_save_pretrained
(self, test_name, model_id, config_cls, config_kwargs)
commonsense_reasoning/peft/tests/test_peft_model.py:155
Method
test_save_pretrained
r""" Test if the config is correctly saved and loaded using - save_pretrained
commonsense_reasoning/peft/tests/test_config.py:53
Method
test_save_pretrained_selected_adapters
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_decoder_models.py:85
Method
test_save_pretrained_selected_adapters
(self)
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:163
Method
test_save_pretrained_selected_adapters
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_feature_extraction_models.py:88
Method
test_save_pretrained_selected_adapters
(self, test_name, model_id, config_cls, config_kwargs)
visual_instruction_tuning/peft/tests/test_encoder_decoder_models.py:71
Method
test_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
Method
test_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
Method
test_sequence_adapter_ops
Test sequence of adapter operations.
visual_instruction_tuning/peft/tests/test_adaption_prompt.py:229
Method
test_set_attributes
(self)
visual_instruction_tuning/peft/tests/test_config.py:127
Method
test_set_attributes
(self)
commonsense_reasoning/peft/tests/test_config.py:86
Method
test_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/caption_model.py:41
Method
test_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/caption_model.py:100
Method
test_step
(self, batch)
image_video_text_understanding/VL-T5/src/refcoco_model.py:72
Method
test_step
(self, batch)
image_video_text_understanding/VL-T5/src/refcoco_model.py:170
Method
test_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/classification_model.py:86
Method
test_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/classification_model.py:219
Method
test_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/gqa_model.py:116
Method
test_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/multitask_model.py:128
Method
test_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/mmt_model.py:38
Method
test_step
(self, batch, **kwargs)
image_video_text_understanding/VL-T5/src/mmt_model.py:93
← previous
next →
2,301–2,400 of 2,507, ranked by callers