fusion-bench 0.2.25__py3-none-any.whl → 0.2.27__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fusion_bench/dataset/clip_dataset.py +1 -0
- fusion_bench/method/__init__.py +4 -0
- fusion_bench/method/adamerging/__init__.py +28 -5
- fusion_bench/method/adamerging/resnet_adamerging.py +279 -0
- fusion_bench/method/adamerging/task_wise_adamerging.py +2 -14
- fusion_bench/method/adamerging/utils.py +58 -0
- fusion_bench/method/classification/clip_finetune.py +6 -4
- fusion_bench/method/classification/image_classification_finetune.py +156 -12
- fusion_bench/method/dare/simple_average.py +3 -2
- fusion_bench/method/dare/task_arithmetic.py +3 -2
- fusion_bench/method/dop/__init__.py +1 -0
- fusion_bench/method/dop/dop.py +366 -0
- fusion_bench/method/dop/min_norm_solvers.py +227 -0
- fusion_bench/method/dop/utils.py +73 -0
- fusion_bench/method/simple_average.py +6 -4
- fusion_bench/mixins/lightning_fabric.py +9 -0
- fusion_bench/modelpool/causal_lm/causal_lm.py +2 -1
- fusion_bench/modelpool/resnet_for_image_classification.py +285 -4
- fusion_bench/models/hf_clip.py +4 -7
- fusion_bench/models/hf_utils.py +4 -1
- fusion_bench/taskpool/__init__.py +2 -0
- fusion_bench/taskpool/clip_vision/taskpool.py +1 -1
- fusion_bench/taskpool/resnet_for_image_classification.py +231 -0
- fusion_bench/utils/state_dict_arithmetic.py +91 -10
- {fusion_bench-0.2.25.dist-info → fusion_bench-0.2.27.dist-info}/METADATA +9 -3
- {fusion_bench-0.2.25.dist-info → fusion_bench-0.2.27.dist-info}/RECORD +140 -77
- fusion_bench_config/fabric/auto.yaml +1 -1
- fusion_bench_config/fabric/loggers/swandb_logger.yaml +5 -0
- fusion_bench_config/fabric/loggers/wandb_logger.yaml +2 -0
- fusion_bench_config/fabric_model_fusion.yaml +1 -0
- fusion_bench_config/method/adamerging/resnet.yaml +18 -0
- fusion_bench_config/method/bitdelta/bitdelta.yaml +3 -0
- fusion_bench_config/method/classification/clip_finetune.yaml +5 -0
- fusion_bench_config/method/classification/image_classification_finetune.yaml +9 -0
- fusion_bench_config/method/depth_upscaling.yaml +9 -0
- fusion_bench_config/method/dop/dop.yaml +30 -0
- fusion_bench_config/method/dummy.yaml +6 -0
- fusion_bench_config/method/ensemble/max_model_predictor.yaml +6 -0
- fusion_bench_config/method/ensemble/simple_ensemble.yaml +8 -1
- fusion_bench_config/method/ensemble/weighted_ensemble.yaml +8 -0
- fusion_bench_config/method/linear/expo.yaml +5 -0
- fusion_bench_config/method/linear/linear_interpolation.yaml +8 -0
- fusion_bench_config/method/linear/llama_expo.yaml +5 -0
- fusion_bench_config/method/linear/llama_expo_with_dare.yaml +3 -0
- fusion_bench_config/method/linear/simple_average_for_causallm.yaml +5 -0
- fusion_bench_config/method/linear/task_arithmetic_for_causallm.yaml +3 -0
- fusion_bench_config/method/linear/ties_merging_for_causallm.yaml +5 -0
- fusion_bench_config/method/linear/weighted_average.yaml +3 -0
- fusion_bench_config/method/linear/weighted_average_for_llama.yaml +6 -1
- fusion_bench_config/method/mixtral_moe_merging.yaml +3 -0
- fusion_bench_config/method/mixtral_moe_upscaling.yaml +5 -0
- fusion_bench_config/method/model_recombination.yaml +8 -0
- fusion_bench_config/method/model_stock/model_stock.yaml +4 -1
- fusion_bench_config/method/opcm/opcm.yaml +5 -0
- fusion_bench_config/method/opcm/task_arithmetic.yaml +6 -0
- fusion_bench_config/method/opcm/ties_merging.yaml +5 -0
- fusion_bench_config/method/opcm/weight_average.yaml +5 -0
- fusion_bench_config/method/regmean/clip_regmean.yaml +3 -0
- fusion_bench_config/method/regmean/gpt2_regmean.yaml +3 -0
- fusion_bench_config/method/regmean/regmean.yaml +3 -0
- fusion_bench_config/method/regmean_plusplus/clip_regmean_plusplus.yaml +3 -0
- fusion_bench_config/method/simple_average.yaml +9 -0
- fusion_bench_config/method/slerp/slerp.yaml +9 -0
- fusion_bench_config/method/slerp/slerp_lm.yaml +5 -0
- fusion_bench_config/method/smile_upscaling/causal_lm_upscaling.yaml +6 -0
- fusion_bench_config/method/smile_upscaling/error_accumulation.yaml +5 -0
- fusion_bench_config/method/smile_upscaling/projected_energy.yaml +5 -0
- fusion_bench_config/method/smile_upscaling/singular_projection_merging.yaml +3 -0
- fusion_bench_config/method/smile_upscaling/smile_mistral_upscaling.yaml +5 -0
- fusion_bench_config/method/smile_upscaling/smile_qwen2_upscaling.yaml +5 -0
- fusion_bench_config/method/smile_upscaling/smile_upscaling.yaml +3 -0
- fusion_bench_config/method/task_arithmetic.yaml +9 -0
- fusion_bench_config/method/ties_merging.yaml +3 -0
- fusion_bench_config/method/wudi/wudi.yaml +3 -0
- fusion_bench_config/model_fusion.yaml +2 -1
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/_generate_config.py +138 -0
- fusion_bench_config/modelpool/{ResNetForImageClassfication → ResNetForImageClassification}/transformers/resnet152_cifar10.yaml +1 -1
- fusion_bench_config/modelpool/{ResNetForImageClassfication → ResNetForImageClassification}/transformers/resnet152_cifar100.yaml +1 -1
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet152_dtd.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet152_emnist_letters.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet152_eurosat.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet152_fashion_mnist.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet152_fer2013.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet152_food101.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet152_gtsrb.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet152_kmnist.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet152_mnist.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet152_oxford-iiit-pet.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet152_oxford_flowers102.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet152_pcam.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet152_rendered-sst2.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet152_resisc45.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet152_stanford-cars.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet152_stl10.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet152_sun397.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet152_svhn.yaml +14 -0
- fusion_bench_config/modelpool/{ResNetForImageClassfication → ResNetForImageClassification}/transformers/resnet18_cifar10.yaml +1 -1
- fusion_bench_config/modelpool/{ResNetForImageClassfication → ResNetForImageClassification}/transformers/resnet18_cifar100.yaml +1 -1
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet18_dtd.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet18_emnist_letters.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet18_eurosat.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet18_fashion_mnist.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet18_fer2013.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet18_food101.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet18_gtsrb.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet18_kmnist.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet18_mnist.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet18_oxford-iiit-pet.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet18_oxford_flowers102.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet18_pcam.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet18_rendered-sst2.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet18_resisc45.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet18_stanford-cars.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet18_stl10.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet18_sun397.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet18_svhn.yaml +14 -0
- fusion_bench_config/modelpool/{ResNetForImageClassfication → ResNetForImageClassification}/transformers/resnet50_cifar10.yaml +1 -1
- fusion_bench_config/modelpool/{ResNetForImageClassfication → ResNetForImageClassification}/transformers/resnet50_cifar100.yaml +1 -1
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_dtd.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_emnist_letters.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_eurosat.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_fashion_mnist.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_fer2013.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_food101.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_gtsrb.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_kmnist.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_mnist.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_oxford-iiit-pet.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_oxford_flowers102.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_pcam.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_rendered-sst2.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_resisc45.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_stanford-cars.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_stl10.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_sun397.yaml +14 -0
- fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_svhn.yaml +14 -0
- fusion_bench_config/method/clip_finetune.yaml +0 -26
- {fusion_bench-0.2.25.dist-info → fusion_bench-0.2.27.dist-info}/WHEEL +0 -0
- {fusion_bench-0.2.25.dist-info → fusion_bench-0.2.27.dist-info}/entry_points.txt +0 -0
- {fusion_bench-0.2.25.dist-info → fusion_bench-0.2.27.dist-info}/licenses/LICENSE +0 -0
- {fusion_bench-0.2.25.dist-info → fusion_bench-0.2.27.dist-info}/top_level.txt +0 -0
fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet18_stanford-cars.yaml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- stanford-cars
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- stanford-cars
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-18
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: stanford-cars
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- stl10
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- stl10
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-18
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: stl10
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- sun397
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- sun397
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-18
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: sun397
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- svhn
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- svhn
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-18
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: svhn
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- dtd
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- dtd
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-50
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: dtd
|
fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_emnist_letters.yaml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- emnist_letters
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- emnist_letters
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-50
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: emnist_letters
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- eurosat
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- eurosat
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-50
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: eurosat
|
fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_fashion_mnist.yaml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- fashion_mnist
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- fashion_mnist
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-50
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: fashion_mnist
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- fer2013
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- fer2013
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-50
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: fer2013
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- food101
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- food101
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-50
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: food101
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- gtsrb
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- gtsrb
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-50
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: gtsrb
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- kmnist
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- kmnist
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-50
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: kmnist
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- mnist
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- mnist
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-50
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: mnist
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- oxford-iiit-pet
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- oxford-iiit-pet
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-50
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: oxford-iiit-pet
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- oxford_flowers102
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- oxford_flowers102
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-50
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: oxford_flowers102
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- pcam
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- pcam
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-50
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: pcam
|
fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_rendered-sst2.yaml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- rendered-sst2
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- rendered-sst2
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-50
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: rendered-sst2
|
fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_resisc45.yaml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- resisc45
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- resisc45
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-50
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: resisc45
|
fusion_bench_config/modelpool/ResNetForImageClassification/transformers/resnet50_stanford-cars.yaml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- stanford-cars
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- stanford-cars
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-50
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: stanford-cars
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- stl10
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- stl10
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-50
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: stl10
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- sun397
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- sun397
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-50
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: sun397
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
defaults:
|
|
2
|
+
- /dataset/image_classification/train@train_datasets:
|
|
3
|
+
- svhn
|
|
4
|
+
- /dataset/image_classification/test@val_datasets:
|
|
5
|
+
- svhn
|
|
6
|
+
- _self_
|
|
7
|
+
_target_: fusion_bench.modelpool.ResNetForImageClassificationPool
|
|
8
|
+
_recursive_: False
|
|
9
|
+
type: transformers
|
|
10
|
+
models:
|
|
11
|
+
_pretrained_:
|
|
12
|
+
config_path: microsoft/resnet-50
|
|
13
|
+
pretrained: true
|
|
14
|
+
dataset_name: svhn
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
name: clip_finetune
|
|
2
|
-
seed: 42
|
|
3
|
-
learning_rate: 1e-5
|
|
4
|
-
weight_decay: 0
|
|
5
|
-
num_steps: 4000
|
|
6
|
-
batch_size: 128
|
|
7
|
-
num_workers: 16
|
|
8
|
-
save_interval: 500
|
|
9
|
-
# if `state_dict_load_path` is not null, the training will be resumed from the state_dict_path
|
|
10
|
-
state_dict_load_path: null
|
|
11
|
-
# if `state_dict_save_path` is not null, the state_dict will be saved to the path after training
|
|
12
|
-
state_dict_save_path: null
|
|
13
|
-
# if `skip_training` is true, use with `state_dict_load_path` to skip training and only evaluate
|
|
14
|
-
skip_training: false
|
|
15
|
-
# === LoRA ===
|
|
16
|
-
use_lora: false
|
|
17
|
-
lora_config:
|
|
18
|
-
r: 16
|
|
19
|
-
lora_alpha: 32
|
|
20
|
-
target_modules:
|
|
21
|
-
- q_proj
|
|
22
|
-
- v_proj
|
|
23
|
-
lora_dropout: 0.1
|
|
24
|
-
bias: none
|
|
25
|
-
# === L-LoRA ===
|
|
26
|
-
use_l_lora: false
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|