Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adapter-hub/adapters
/ functions
Functions
1,559 in github.com/adapter-hub/adapters
⨍
Functions
1,559
◇
Types & classes
451
↳
Endpoints
1
Method
test_get_prompt_tuning
(self)
tests/test_methods/method_test_impl/peft/test_prompt_tuning.py:20
Method
test_get_reft
(self)
tests/test_methods/method_test_impl/peft/test_reft.py:57
Method
test_get_unipelt
(self)
tests/test_methods/method_test_impl/peft/test_unipelt.py:22
Method
test_gradient_checkpointing_enable_disable
(self)
tests/test_models/test_clip_model.py:44
Method
test_hyperparameter_search_works_with_AdapterTrainer
(self)
tests/test_misc/test_adapter_trainer/test_adapter_trainer.py:497
Method
test_ia3_forward
Test that IA3 forward pass works.
tests/test_methods/test_all_custom_interfaces.py:279
Method
test_ia3_gradient_checkpointing_single_adapter
(self)
tests/test_methods/method_test_impl/peft/test_ia3.py:48
Method
test_image_classification_head
(self)
tests/test_methods/method_test_impl/heads/test_adapter_heads.py:72
Method
test_initialization
(self)
tests/test_models/test_clip_model.py:21
Method
test_invalid_nesting_fusion
(self)
tests/test_misc/test_adapter_composition.py:25
Method
test_invalid_nesting_split
(self)
tests/test_misc/test_adapter_composition.py:32
Method
test_invertible_adapter_forward
(self)
tests/test_methods/method_test_impl/peft/test_adapter_common.py:259
Method
test_invertible_adapter_with_head
This test class is copied and adapted from the identically-named test in test_adapter_heads.py.
tests/test_methods/test_on_encoder_decoder.py:46
Method
test_invertible_adapter_with_head
(self)
tests/test_methods/method_test_impl/heads/test_adapter_heads.py:402
Method
test_invertible_forward
Test that invertible forward pass works.
tests/test_methods/test_all_custom_interfaces.py:225
Method
test_layers_reft
(self)
tests/test_methods/method_test_impl/peft/test_reft.py:20
Method
test_leave_out_Dora_with_DoRA
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:353
Method
test_leave_out_Dora_with_DvoRA
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:398
Method
test_leave_out_Dora_with_LoRA
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:17
Method
test_leave_out_Dora_with_Vera
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:306
Method
test_leave_out_Vera
(self)
tests/test_methods/method_test_impl/peft/test_vera.py:13
Method
test_leave_out_adapter
(self)
tests/test_methods/method_test_impl/peft/test_adapter_common.py:52
Method
test_leave_out_compacter
(self)
tests/test_methods/method_test_impl/peft/test_compacter.py:14
Method
test_leave_out_ia3
(self)
tests/test_methods/method_test_impl/peft/test_ia3.py:12
Method
test_leave_out_lora
(self)
tests/test_methods/method_test_impl/peft/test_lora.py:17
Method
test_leave_out_mtllora
(self)
tests/test_methods/method_test_impl/peft/test_mtllora.py:19
Method
test_leave_out_prefix_tuning
(self)
tests/test_methods/method_test_impl/peft/test_prefix_tuning.py:15
Method
test_linear_average_Dora_with_DoRA
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:357
Method
test_linear_average_Dora_with_DvoRA
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:402
Method
test_linear_average_Dora_with_LoRA
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:21
Method
test_linear_average_Dora_with_Vera
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:310
Method
test_linear_average_Vera
(self)
tests/test_methods/method_test_impl/peft/test_vera.py:17
Method
test_linear_average_adapter
(self)
tests/test_methods/method_test_impl/peft/test_adapter_common.py:63
Method
test_linear_average_compacter
(self)
tests/test_methods/method_test_impl/peft/test_compacter.py:18
Method
test_linear_average_ia3
(self)
tests/test_methods/method_test_impl/peft/test_ia3.py:16
Method
test_linear_average_lora
(self)
tests/test_methods/method_test_impl/peft/test_lora.py:54
Method
test_linear_average_lora_with_dora
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:62
Method
test_linear_average_only_negate_b_lora
(self)
tests/test_methods/method_test_impl/peft/test_lora.py:58
Method
test_linear_average_only_negate_b_lora_with_dora
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:66
Method
test_linear_average_prefix_tuning
(self)
tests/test_methods/method_test_impl/peft/test_prefix_tuning.py:21
Method
test_linear_average_prompt_tuning
(self)
tests/test_methods/method_test_impl/peft/test_prompt_tuning.py:12
Method
test_linear_average_unipelt
(self)
tests/test_methods/method_test_impl/peft/test_unipelt.py:12
Method
test_linear_delta_w_svd_average_lora
(self)
tests/test_methods/method_test_impl/peft/test_lora.py:122
Method
test_linear_delta_w_svd_average_lora_with_dora
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:130
Method
test_lm_head_freeze_output_embeddings
(self)
tests/test_methods/method_test_impl/heads/test_adapter_heads.py:212
Method
test_load_Dora_with_DoRA
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:377
Method
test_load_Dora_with_DvoRA
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:422
Method
test_load_Dora_with_LoRA
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:40
Method
test_load_Dora_with_Vera
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:332
Method
test_load_Vera
(self)
tests/test_methods/method_test_impl/peft/test_vera.py:36
Method
test_load_adapter
(self, name, adapter_config, config, adapter_interface, hf_auto_model_class, rewrites=None)
tests/test_misc/test_custom_interface_compat.py:169
Method
test_load_adapter
(self)
tests/test_methods/method_test_impl/peft/test_adapter_common.py:272
Method
test_load_adapter_fusion
(self)
tests/test_methods/method_test_impl/core/test_adapter_fusion_common.py:81
Method
test_load_adapter_fusion_custom_name
(self)
tests/test_methods/method_test_impl/core/test_adapter_fusion_common.py:269
Method
test_load_adapter_setup
(self)
tests/test_methods/method_test_impl/peft/test_adapter_common.py:525
Method
test_load_adapter_setup
(self)
tests/test_methods/test_on_clip/test_model.py:73
Method
test_load_adapter_with_head_from_hub
(self)
tests/test_misc/test_adapter_hub.py:146
Method
test_load_compacter
(self)
tests/test_methods/method_test_impl/peft/test_compacter.py:40
Method
test_load_embeddings
(self)
tests/test_methods/method_test_impl/embeddings/test_adapter_embeddings.py:16
Method
test_load_full_model
(self)
tests/test_methods/method_test_impl/heads/test_adapter_heads.py:323
Method
test_load_full_model_Dora_with_DoRA
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:380
Method
test_load_full_model_Dora_with_DvoRA
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:425
Method
test_load_full_model_Dora_with_LoRA
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:43
Method
test_load_full_model_Dora_with_Vera
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:335
Method
test_load_full_model_Vera
(self)
tests/test_methods/method_test_impl/peft/test_vera.py:39
Method
test_load_full_model_adapter
(self)
tests/test_methods/method_test_impl/peft/test_adapter_common.py:278
Method
test_load_full_model_fusion
(self)
tests/test_methods/method_test_impl/core/test_adapter_fusion_common.py:119
Method
test_load_full_model_ia3
(self)
tests/test_methods/method_test_impl/peft/test_ia3.py:36
Method
test_load_full_model_lora
(self)
tests/test_methods/method_test_impl/peft/test_lora.py:313
Method
test_load_full_model_mtllora
(self)
tests/test_methods/method_test_impl/peft/test_mtllora.py:66
Method
test_load_full_model_prefix_tuning
(self)
tests/test_methods/method_test_impl/peft/test_prefix_tuning.py:51
Method
test_load_full_model_prompt_tuning
(self)
tests/test_methods/method_test_impl/peft/test_prompt_tuning.py:33
Method
test_load_full_model_reft
(self)
tests/test_methods/method_test_impl/peft/test_reft.py:74
Method
test_load_full_model_unipelt
(self)
tests/test_methods/method_test_impl/peft/test_unipelt.py:36
Method
test_load_ia3
(self)
tests/test_methods/method_test_impl/peft/test_ia3.py:33
Method
test_load_lang_adapter_from_hub
(self)
tests/test_misc/test_adapter_hub.py:115
Method
test_load_lora
(self)
tests/test_methods/method_test_impl/peft/test_lora.py:310
Method
test_load_mam_adapter
(self)
tests/test_methods/test_on_custom_interface.py:81
Method
test_load_mam_adapter
(self)
tests/test_methods/method_test_impl/peft/test_adapter_common.py:275
Method
test_load_mtllora
(self)
tests/test_methods/method_test_impl/peft/test_mtllora.py:63
Method
test_load_old_non_linearity
(self)
tests/test_methods/method_test_impl/core/test_adapter_backward_compability.py:15
Method
test_load_prefix_tuning
(self)
tests/test_methods/method_test_impl/peft/test_prefix_tuning.py:48
Method
test_load_prompt_tuning
(self)
tests/test_methods/method_test_impl/peft/test_prompt_tuning.py:30
Method
test_load_reft
(self)
tests/test_methods/method_test_impl/peft/test_reft.py:71
Method
test_load_task_adapter_from_hub
This test checks if an adapter is loaded from the Hub correctly by evaluating it on some MRPC samples and comparing with the expected result.
tests/test_misc/test_adapter_hub.py:47
Method
test_load_task_adapter_from_hub_with_leave_out
(self)
tests/test_misc/test_adapter_hub.py:97
Method
test_load_unipelt
(self)
tests/test_methods/method_test_impl/peft/test_unipelt.py:33
Method
test_loading_adapter_weights_with_prefix
(self)
tests/test_methods/method_test_impl/peft/test_adapter_common.py:318
Method
test_loading_adapter_weights_without_prefix
(self)
tests/test_methods/method_test_impl/peft/test_adapter_common.py:345
Method
test_lora_forward
Test that lora forward pass works.
tests/test_methods/test_all_custom_interfaces.py:249
Method
test_lora_forward_all_attn_matrices
Test LoRA with attn_matrices=["q","k","v","o"] on models with fused QKV. Regression test for a bug where LoRAMergedLinear.get_n_heads() count
tests/test_methods/test_all_custom_interfaces.py:257
Method
test_lora_gradient_checkpointing_single_adapter
(self)
tests/test_methods/method_test_impl/peft/test_lora.py:325
Method
test_masked_lm_head
(self)
tests/test_methods/method_test_impl/heads/test_adapter_heads.py:195
Method
test_merge_Dora_with_DoRA
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:387
Method
test_merge_Dora_with_DvoRA
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:432
Method
test_merge_Dora_with_LoRA
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:49
Method
test_merge_Dora_with_Vera
(self)
tests/test_methods/method_test_impl/peft/test_dora.py:342
Method
test_merge_Vera
(self)
tests/test_methods/method_test_impl/peft/test_vera.py:46
Method
test_merge_ia3
(self)
tests/test_methods/method_test_impl/peft/test_ia3.py:42
Method
test_merge_lora
(self)
tests/test_methods/method_test_impl/peft/test_lora.py:319
← previous
next →
1,301–1,400 of 1,559, ranked by callers