fusion-bench 0.2.9__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/__init__.py +20 -0
- fusion_bench/__main__.py +4 -0
- fusion_bench/compat/__init__.py +0 -0
- fusion_bench/compat/method/__init__.py +109 -0
- fusion_bench/compat/method/base_algorithm.py +58 -0
- fusion_bench/compat/modelpool/AutoModelForSeq2SeqLM.py +34 -0
- fusion_bench/compat/modelpool/__init__.py +116 -0
- fusion_bench/compat/modelpool/base_pool.py +328 -0
- fusion_bench/compat/modelpool/huggingface_clip_vision.py +178 -0
- fusion_bench/compat/taskpool/__init__.py +95 -0
- fusion_bench/compat/taskpool/base_pool.py +111 -0
- fusion_bench/compat/taskpool/clip_image_classification.py +210 -0
- fusion_bench/compat/taskpool/flan_t5_glue_text_generation.py +175 -0
- fusion_bench/constants/__init__.py +2 -0
- fusion_bench/constants/paths.py +18 -0
- fusion_bench/dataset/__init__.py +29 -0
- fusion_bench/dataset/arc_agi/__init__.py +6 -0
- fusion_bench/dataset/arc_agi/arc.py +308 -0
- fusion_bench/dataset/arc_agi/arc_agi.py +365 -0
- fusion_bench/dataset/arc_agi/augmenters.py +1036 -0
- fusion_bench/dataset/arc_agi/messagers.py +1355 -0
- fusion_bench/dataset/arc_agi/np_cache.py +168 -0
- fusion_bench/dataset/arc_agi/preprocess.py +298 -0
- fusion_bench/dataset/arc_agi/representers.py +1019 -0
- fusion_bench/dataset/clip_dataset.py +71 -0
- fusion_bench/dataset/fer2013.py +12 -0
- fusion_bench/dataset/gpt2_glue.py +300 -0
- fusion_bench/dataset/gsm8k.py +60 -0
- fusion_bench/dataset/image_dataset.py +55 -0
- fusion_bench/dataset/imdb.py +11 -0
- fusion_bench/dataset/llama/__init__.py +1 -0
- fusion_bench/dataset/llama/alpaca.py +232 -0
- fusion_bench/dataset/llama/collate.py +120 -0
- fusion_bench/dataset/llama/metamathqa.py +50 -0
- fusion_bench/dataset/llama/openai.py +160 -0
- fusion_bench/dataset/llama/preference_700k.py +70 -0
- fusion_bench/dataset/llama/sharegpt.py +141 -0
- fusion_bench/dataset/llama/squad.py +125 -0
- fusion_bench/dataset/llama/stanford_shp.py +90 -0
- fusion_bench/dataset/llama/ultrachat.py +58 -0
- fusion_bench/dataset/llama/utils/__init__.py +0 -0
- fusion_bench/dataset/llama/wikitext.py +89 -0
- fusion_bench/dataset/nyuv2.py +119 -0
- fusion_bench/method/__init__.py +177 -0
- fusion_bench/method/ada_svd/__init__.py +2 -0
- fusion_bench/method/ada_svd/clip_vision.py +319 -0
- fusion_bench/method/adamerging/__init__.py +6 -0
- fusion_bench/method/adamerging/clip_layer_wise_adamerging.py +46 -0
- fusion_bench/method/adamerging/clip_task_wise_adamerging.py +187 -0
- fusion_bench/method/adamerging/entropy_loss.py +25 -0
- fusion_bench/method/adamerging/flan_t5_layer_wise_adamerging.py +332 -0
- fusion_bench/method/adamerging/gpt2_layer_wise_adamerging.py +351 -0
- fusion_bench/method/adamerging/layer_wise_adamerging.py +252 -0
- fusion_bench/method/adamerging/llama_adamerging.py +335 -0
- fusion_bench/method/adamerging/min_norm_solvers.py +227 -0
- fusion_bench/method/adamerging/task_wise_adamerging.py +174 -0
- fusion_bench/method/adamerging/utils.py +15 -0
- fusion_bench/method/analysis/__init__.py +2 -0
- fusion_bench/method/analysis/task_vector_cos_similarity.py +172 -0
- fusion_bench/method/analysis/task_vector_violin_plot.py +205 -0
- fusion_bench/method/base_algorithm.py +44 -0
- fusion_bench/method/classification/__init__.py +3 -0
- fusion_bench/method/classification/clip_finetune.py +444 -0
- fusion_bench/method/classification/continual_clip_finetune.py +297 -0
- fusion_bench/method/concrete_subspace/__init__.py +6 -0
- fusion_bench/method/concrete_subspace/clip_concrete_adamerging.py +595 -0
- fusion_bench/method/concrete_subspace/clip_concrete_task_arithmetic.py +263 -0
- fusion_bench/method/dare/__init__.py +4 -0
- fusion_bench/method/dare/simple_average.py +31 -0
- fusion_bench/method/dare/task_arithmetic.py +82 -0
- fusion_bench/method/dare/ties_merging.py +100 -0
- fusion_bench/method/dare/utils.py +87 -0
- fusion_bench/method/dawe/__init__.py +2 -0
- fusion_bench/method/dawe/dawe_for_clip.py +274 -0
- fusion_bench/method/dawe/warppers/__init__.py +13 -0
- fusion_bench/method/dawe/warppers/dawe_model.py +256 -0
- fusion_bench/method/depth_upscaling/__init__.py +3 -0
- fusion_bench/method/depth_upscaling/depth_upscaling.py +89 -0
- fusion_bench/method/depth_upscaling/depth_upscaling_for_llama.py +57 -0
- fusion_bench/method/dummy.py +35 -0
- fusion_bench/method/ensemble.py +98 -0
- fusion_bench/method/fisher_merging/__init__.py +4 -0
- fusion_bench/method/fisher_merging/clip_fisher_merging.py +191 -0
- fusion_bench/method/fisher_merging/fisher_merging.py +484 -0
- fusion_bench/method/fisher_merging/gpt2_fisher_merging.py +193 -0
- fusion_bench/method/linear/__init__.py +6 -0
- fusion_bench/method/linear/expo.py +118 -0
- fusion_bench/method/linear/linear_interpolation.py +60 -0
- fusion_bench/method/linear/llama_expo.py +229 -0
- fusion_bench/method/linear/simple_average_for_llama.py +54 -0
- fusion_bench/method/linear/task_arithmetic_for_llama.py +57 -0
- fusion_bench/method/lm_finetune/__init__.py +3 -0
- fusion_bench/method/lm_finetune/bradley_terry_rm.py +432 -0
- fusion_bench/method/lm_finetune/causal_lm_pretrain.py +7 -0
- fusion_bench/method/lm_finetune/fullfinetune_sft.py +375 -0
- fusion_bench/method/lm_finetune/peftfinetune_sft.py +370 -0
- fusion_bench/method/mixture_of_experts/__init__.py +7 -0
- fusion_bench/method/mixture_of_experts/mixtral_merging.py +112 -0
- fusion_bench/method/mixture_of_experts/mixtral_upcycling.py +329 -0
- fusion_bench/method/model_recombination.py +121 -0
- fusion_bench/method/opcm/__init__.py +4 -0
- fusion_bench/method/opcm/opcm.py +277 -0
- fusion_bench/method/opcm/task_arithmetic.py +115 -0
- fusion_bench/method/opcm/ties_merging.py +156 -0
- fusion_bench/method/opcm/utils.py +73 -0
- fusion_bench/method/opcm/weight_average.py +120 -0
- fusion_bench/method/pruning/__init__.py +5 -0
- fusion_bench/method/pruning/llama_magnitude_prune.py +202 -0
- fusion_bench/method/pruning/llama_random_prune.py +143 -0
- fusion_bench/method/pruning/llama_wanda_prune.py +359 -0
- fusion_bench/method/pruning/magnitude_diff_pruning.py +180 -0
- fusion_bench/method/pruning/prune_utils.py +165 -0
- fusion_bench/method/pruning/wanda_utils/__init__.py +7 -0
- fusion_bench/method/pruning/wanda_utils/ablate.py +188 -0
- fusion_bench/method/pruning/wanda_utils/data.py +135 -0
- fusion_bench/method/pruning/wanda_utils/eval.py +245 -0
- fusion_bench/method/pruning/wanda_utils/layerwrapper.py +61 -0
- fusion_bench/method/pruning/wanda_utils/prune.py +581 -0
- fusion_bench/method/pruning/wanda_utils/prune_opt.py +539 -0
- fusion_bench/method/pruning/wanda_utils/sparsegpt.py +165 -0
- fusion_bench/method/pwe_moe/__init__.py +5 -0
- fusion_bench/method/pwe_moe/clip_pwe_moe.py +315 -0
- fusion_bench/method/pwe_moe/module.py +316 -0
- fusion_bench/method/pwe_moe/phn/__init__.py +2 -0
- fusion_bench/method/pwe_moe/phn/solvers.py +195 -0
- fusion_bench/method/pwe_moe/utils.py +43 -0
- fusion_bench/method/rankone_moe/__init__.py +3 -0
- fusion_bench/method/rankone_moe/clip_rankone_moe.py +160 -0
- fusion_bench/method/rankone_moe/rankone_moe.py +249 -0
- fusion_bench/method/regmean/__init__.py +4 -0
- fusion_bench/method/regmean/clip_regmean.py +131 -0
- fusion_bench/method/regmean/gpt2_regmean.py +147 -0
- fusion_bench/method/regmean/regmean.py +375 -0
- fusion_bench/method/simple_average.py +112 -0
- fusion_bench/method/slerp/__init__.py +2 -0
- fusion_bench/method/slerp/slerp.py +101 -0
- fusion_bench/method/slerp/slerp_utils.py +107 -0
- fusion_bench/method/smile_upscaling/__init__.py +3 -0
- fusion_bench/method/smile_upscaling/singular_projection_merging.py +198 -0
- fusion_bench/method/smile_upscaling/smile_mistral_upscaling.py +331 -0
- fusion_bench/method/smile_upscaling/smile_upscaling.py +573 -0
- fusion_bench/method/sparse_we_moe/__init__.py +2 -0
- fusion_bench/method/sparse_we_moe/sparse_clip_we_moe.py +248 -0
- fusion_bench/method/sparse_we_moe/sparse_we_moe.py +301 -0
- fusion_bench/method/sparselo/__init__.py +2 -0
- fusion_bench/method/sparselo/sparselo.py +955 -0
- fusion_bench/method/surgery/__init__.py +1 -0
- fusion_bench/method/surgery/clip_layer_wise_adamerging_surgery.py +157 -0
- fusion_bench/method/tall_mask/__init__.py +0 -0
- fusion_bench/method/tall_mask/utils.py +234 -0
- fusion_bench/method/task_arithmetic/__init__.py +2 -0
- fusion_bench/method/task_arithmetic/task_arithmetic.py +151 -0
- fusion_bench/method/task_singular_vector/TSVC.py +16 -0
- fusion_bench/method/task_singular_vector/TSVM.py +63 -0
- fusion_bench/method/task_singular_vector/__init__.py +9 -0
- fusion_bench/method/task_singular_vector/utils/TSVC_utils.py +50 -0
- fusion_bench/method/task_singular_vector/utils/TSVM_utils.py +640 -0
- fusion_bench/method/task_singular_vector/utils/__init__.py +7 -0
- fusion_bench/method/ties_merging/__init__.py +2 -0
- fusion_bench/method/ties_merging/ties_merging.py +117 -0
- fusion_bench/method/ties_merging/ties_merging_utils.py +331 -0
- fusion_bench/method/trust_region/__init__.py +2 -0
- fusion_bench/method/trust_region/clip_task_arithmetic.py +205 -0
- fusion_bench/method/trust_region/utils.py +58 -0
- fusion_bench/method/we_moe/__init__.py +2 -0
- fusion_bench/method/we_moe/clip_we_moe.py +161 -0
- fusion_bench/method/we_moe/we_moe.py +247 -0
- fusion_bench/method/weighted_average/__init__.py +3 -0
- fusion_bench/method/weighted_average/llama.py +113 -0
- fusion_bench/method/weighted_average/weighted_average.py +102 -0
- fusion_bench/metrics/__init__.py +0 -0
- fusion_bench/metrics/continual_learning/backward_transfer.py +22 -0
- fusion_bench/metrics/nyuv2/__init__.py +11 -0
- fusion_bench/metrics/nyuv2/depth.py +45 -0
- fusion_bench/metrics/nyuv2/loss.py +31 -0
- fusion_bench/metrics/nyuv2/noise.py +16 -0
- fusion_bench/metrics/nyuv2/normal.py +48 -0
- fusion_bench/metrics/nyuv2/segmentation.py +43 -0
- fusion_bench/metrics/text_to_image_generation/__init__.py +9 -0
- fusion_bench/metrics/text_to_image_generation/aesthetic_scorer.py +123 -0
- fusion_bench/metrics/text_to_image_generation/compressibility.py +49 -0
- fusion_bench/metrics/text_to_image_generation/pickscore_scorer.py +95 -0
- fusion_bench/mixins/__init__.py +28 -0
- fusion_bench/mixins/clip_classification.py +252 -0
- fusion_bench/mixins/fabric_training.py +320 -0
- fusion_bench/mixins/lightning_fabric.py +174 -0
- fusion_bench/mixins/optim/__init__.py +0 -0
- fusion_bench/mixins/optim/adamw_with_warmup.py +42 -0
- fusion_bench/mixins/rich_live.py +21 -0
- fusion_bench/mixins/serialization.py +132 -0
- fusion_bench/mixins/simple_profiler.py +79 -0
- fusion_bench/modelpool/PeftModelForSeq2SeqLM.py +49 -0
- fusion_bench/modelpool/__init__.py +42 -0
- fusion_bench/modelpool/base_pool.py +268 -0
- fusion_bench/modelpool/causal_lm/__init__.py +2 -0
- fusion_bench/modelpool/causal_lm/causal_lm.py +139 -0
- fusion_bench/modelpool/clip_vision/__init__.py +1 -0
- fusion_bench/modelpool/clip_vision/modelpool.py +145 -0
- fusion_bench/modelpool/huggingface_automodel.py +20 -0
- fusion_bench/modelpool/huggingface_gpt2_classification.py +63 -0
- fusion_bench/modelpool/nyuv2_modelpool.py +40 -0
- fusion_bench/modelpool/seq2seq_lm/__init__.py +2 -0
- fusion_bench/modelpool/seq2seq_lm/modelpool.py +65 -0
- fusion_bench/modelpool/seq_classification_lm/__init__.py +2 -0
- fusion_bench/modelpool/seq_classification_lm/reward_model.py +15 -0
- fusion_bench/modelpool/seq_classification_lm/seq_classification_lm.py +98 -0
- fusion_bench/models/__init__.py +3 -0
- fusion_bench/models/chat_templates/__init__.py +1 -0
- fusion_bench/models/chat_templates/llama_3_Instruct.py +1 -0
- fusion_bench/models/chat_templates/load_tokenizer.py +43 -0
- fusion_bench/models/hf_clip.py +199 -0
- fusion_bench/models/linearized/__init__.py +0 -0
- fusion_bench/models/linearized/linearized_model_utils.py +91 -0
- fusion_bench/models/linearized/vision_model.py +122 -0
- fusion_bench/models/llama/__init__.py +16 -0
- fusion_bench/models/llama/model_utils/__init__.py +0 -0
- fusion_bench/models/llama/model_utils/embedding.py +87 -0
- fusion_bench/models/llama/model_utils/liger_kernel.py +86 -0
- fusion_bench/models/llama/model_utils/misc.py +112 -0
- fusion_bench/models/llama/model_utils/mod.py +52 -0
- fusion_bench/models/llama/model_utils/visual.py +241 -0
- fusion_bench/models/llama/patcher.py +78 -0
- fusion_bench/models/llama/tokenizer_loader.py +153 -0
- fusion_bench/models/masks/__init__.py +2 -0
- fusion_bench/models/masks/mask_model.py +160 -0
- fusion_bench/models/modeling_losparse_llama/__init__.py +4 -0
- fusion_bench/models/modeling_losparse_llama/configuration_losparse_llama.py +205 -0
- fusion_bench/models/modeling_losparse_llama/losparse_linear.py +67 -0
- fusion_bench/models/modeling_losparse_llama/modeling_losparse_llama.py +1825 -0
- fusion_bench/models/modeling_losparse_llama/register.py +8 -0
- fusion_bench/models/modeling_losparse_llama/utils.py +60 -0
- fusion_bench/models/modeling_smile_mistral/__init__.py +48 -0
- fusion_bench/models/modeling_smile_mistral/configuration_smile_mistral.py +21 -0
- fusion_bench/models/modeling_smile_mistral/modeling_smile_mistral.py +1034 -0
- fusion_bench/models/modeling_smile_mistral/register.py +8 -0
- fusion_bench/models/nyuv2/__init__.py +0 -0
- fusion_bench/models/nyuv2/aspp.py +82 -0
- fusion_bench/models/nyuv2/lightning_module.py +176 -0
- fusion_bench/models/nyuv2/resnet.py +405 -0
- fusion_bench/models/nyuv2/resnet_dilated.py +99 -0
- fusion_bench/models/parameter_dict.py +75 -0
- fusion_bench/models/rankone_moe.py +410 -0
- fusion_bench/models/separate_io.py +105 -0
- fusion_bench/models/smile_moe/__init__.py +0 -0
- fusion_bench/models/smile_moe/linear.py +256 -0
- fusion_bench/models/sparse_we_moe.py +459 -0
- fusion_bench/models/surgery/__init__.py +1 -0
- fusion_bench/models/surgery/surgerymodelwrapper.py +158 -0
- fusion_bench/models/utils.py +80 -0
- fusion_bench/models/we_moe.py +247 -0
- fusion_bench/models/wrappers/__init__.py +0 -0
- fusion_bench/models/wrappers/ensemble.py +183 -0
- fusion_bench/models/wrappers/layer_wise_fusion.py +336 -0
- fusion_bench/models/wrappers/task_wise_fusion.py +249 -0
- fusion_bench/optim/__init__.py +2 -0
- fusion_bench/optim/exception.py +47 -0
- fusion_bench/optim/lr_scheduler/__init__.py +1 -0
- fusion_bench/optim/lr_scheduler/linear_warmup.py +222 -0
- fusion_bench/optim/lr_scheduler/utils/__init__.py +1 -0
- fusion_bench/optim/lr_scheduler/utils/visualization.py +119 -0
- fusion_bench/optim/mezo.py +118 -0
- fusion_bench/programs/__init__.py +20 -0
- fusion_bench/programs/base_program.py +9 -0
- fusion_bench/programs/fabric_fusion_program.py +299 -0
- fusion_bench/scripts/__init__.py +0 -0
- fusion_bench/scripts/cli.py +43 -0
- fusion_bench/scripts/clip/__init__.py +0 -0
- fusion_bench/scripts/clip/convert_checkpoint.py +39 -0
- fusion_bench/scripts/imgui.py +218 -0
- fusion_bench/scripts/nyuv2_mtl_train.py +137 -0
- fusion_bench/scripts/webui.py +405 -0
- fusion_bench/taskpool/__init__.py +39 -0
- fusion_bench/taskpool/base_pool.py +35 -0
- fusion_bench/taskpool/clip_vision/__init__.py +4 -0
- fusion_bench/taskpool/clip_vision/clip_rankone_moe_taskpool.py +112 -0
- fusion_bench/taskpool/clip_vision/clip_sparse_wemoe_taskpool.py +120 -0
- fusion_bench/taskpool/clip_vision/taskpool.py +392 -0
- fusion_bench/taskpool/dummy.py +58 -0
- fusion_bench/taskpool/gpt2_text_classification.py +149 -0
- fusion_bench/taskpool/llama/__init__.py +1 -0
- fusion_bench/taskpool/llama/reward_model.py +157 -0
- fusion_bench/taskpool/llama/test_generation.py +185 -0
- fusion_bench/taskpool/nyuv2_taskpool.py +65 -0
- fusion_bench/tasks/__init__.py +2 -0
- fusion_bench/tasks/base_task.py +18 -0
- fusion_bench/tasks/classification.py +75 -0
- fusion_bench/tasks/clip_classification/__init__.py +183 -0
- fusion_bench/tasks/clip_classification/cifar10.py +33 -0
- fusion_bench/tasks/clip_classification/cifar100.py +146 -0
- fusion_bench/tasks/clip_classification/clip_dataset.py +1 -0
- fusion_bench/tasks/clip_classification/cub_200_2011.py +208 -0
- fusion_bench/tasks/clip_classification/dtd.py +60 -0
- fusion_bench/tasks/clip_classification/emnist_letters.py +31 -0
- fusion_bench/tasks/clip_classification/emnist_mnist.py +5 -0
- fusion_bench/tasks/clip_classification/eurosat.py +18 -0
- fusion_bench/tasks/clip_classification/fashion_mnist.py +18 -0
- fusion_bench/tasks/clip_classification/fer2013.py +18 -0
- fusion_bench/tasks/clip_classification/flower102.py +106 -0
- fusion_bench/tasks/clip_classification/food101.py +105 -0
- fusion_bench/tasks/clip_classification/gtsrb.py +51 -0
- fusion_bench/tasks/clip_classification/imagenet.py +2103 -0
- fusion_bench/tasks/clip_classification/kmnist.py +17 -0
- fusion_bench/tasks/clip_classification/mnist.py +5 -0
- fusion_bench/tasks/clip_classification/mongo_leaf_disease.py +19 -0
- fusion_bench/tasks/clip_classification/oxford_iiit_pet.py +41 -0
- fusion_bench/tasks/clip_classification/pcam.py +5 -0
- fusion_bench/tasks/clip_classification/rendered_sst2.py +3 -0
- fusion_bench/tasks/clip_classification/resisc45.py +68 -0
- fusion_bench/tasks/clip_classification/stanford_cars.py +209 -0
- fusion_bench/tasks/clip_classification/stl10.py +17 -0
- fusion_bench/tasks/clip_classification/sun397.py +404 -0
- fusion_bench/tasks/clip_classification/svhn.py +5 -0
- fusion_bench/tasks/clip_classification/tiny_imagenet.py +208 -0
- fusion_bench/tasks/flan_t5_text_generation/__init__.py +0 -0
- fusion_bench/tasks/flan_t5_text_generation/datasets_preprocess.py +71 -0
- fusion_bench/tasks/flan_t5_text_generation/glue_evaluation.py +132 -0
- fusion_bench/tasks/flan_t5_text_generation/glue_load_dataset.py +64 -0
- fusion_bench/tasks/flan_t5_text_generation/glue_preprocessors.py +379 -0
- fusion_bench/tasks/flan_t5_text_generation/glue_prompt_templates.py +52 -0
- fusion_bench/utils/__init__.py +14 -0
- fusion_bench/utils/auto.py +31 -0
- fusion_bench/utils/cache_utils.py +58 -0
- fusion_bench/utils/data.py +165 -0
- fusion_bench/utils/devices.py +231 -0
- fusion_bench/utils/dict.py +43 -0
- fusion_bench/utils/dtype.py +146 -0
- fusion_bench/utils/expr.py +90 -0
- fusion_bench/utils/fabric.py +17 -0
- fusion_bench/utils/functools.py +37 -0
- fusion_bench/utils/hydra_utils.py +28 -0
- fusion_bench/utils/instantiate.py +450 -0
- fusion_bench/utils/json.py +93 -0
- fusion_bench/utils/lazy_imports.py +74 -0
- fusion_bench/utils/misc.py +18 -0
- fusion_bench/utils/packages.py +84 -0
- fusion_bench/utils/parameters.py +323 -0
- fusion_bench/utils/path.py +22 -0
- fusion_bench/utils/plot/__init__.py +0 -0
- fusion_bench/utils/plot/color_data.py +1726 -0
- fusion_bench/utils/plot/token.py +52 -0
- fusion_bench/utils/plot/token_notebook.py +127 -0
- fusion_bench/utils/pylogger.py +55 -0
- fusion_bench/utils/rich_utils.py +201 -0
- fusion_bench/utils/set.py +8 -0
- fusion_bench/utils/state_dict_arithmetic.py +297 -0
- fusion_bench/utils/strenum/__init__.py +326 -0
- fusion_bench/utils/strenum/_name_mangler.py +127 -0
- fusion_bench/utils/strenum/_version.py +556 -0
- fusion_bench/utils/tensorboard.py +51 -0
- fusion_bench/utils/timer.py +49 -0
- fusion_bench/utils/type.py +34 -0
- fusion_bench-0.2.9.dist-info/LICENSE +21 -0
- fusion_bench-0.2.9.dist-info/METADATA +258 -0
- fusion_bench-0.2.9.dist-info/RECORD +727 -0
- fusion_bench-0.2.9.dist-info/WHEEL +5 -0
- fusion_bench-0.2.9.dist-info/entry_points.txt +3 -0
- fusion_bench-0.2.9.dist-info/top_level.txt +1 -0
- fusion_bench_config/README.md +12 -0
- fusion_bench_config/clip-vit-base-patch32_robustness_corrupted.yaml +23 -0
- fusion_bench_config/dataset/image_classification/README.md +6 -0
- fusion_bench_config/dataset/image_classification/test/TALL14.yaml +20 -0
- fusion_bench_config/dataset/image_classification/test/TALL20.yaml +28 -0
- fusion_bench_config/dataset/image_classification/test/cifar10.yaml +4 -0
- fusion_bench_config/dataset/image_classification/test/cifar100.yaml +4 -0
- fusion_bench_config/dataset/image_classification/test/cub-200-2011.yaml +4 -0
- fusion_bench_config/dataset/image_classification/test/dtd.yaml +4 -0
- fusion_bench_config/dataset/image_classification/test/emnist_letters.yaml +5 -0
- fusion_bench_config/dataset/image_classification/test/emnist_mnist.yaml +4 -0
- fusion_bench_config/dataset/image_classification/test/eurosat.yaml +4 -0
- fusion_bench_config/dataset/image_classification/test/fashion_mnist.yaml +4 -0
- fusion_bench_config/dataset/image_classification/test/fer2013.yaml +3 -0
- fusion_bench_config/dataset/image_classification/test/food101.yaml +4 -0
- fusion_bench_config/dataset/image_classification/test/gtsrb.yaml +4 -0
- fusion_bench_config/dataset/image_classification/test/kmnist.yaml +4 -0
- fusion_bench_config/dataset/image_classification/test/mango-leaf-disease.yaml +4 -0
- fusion_bench_config/dataset/image_classification/test/mnist.yaml +4 -0
- fusion_bench_config/dataset/image_classification/test/oxford-iiit-pet.yaml +4 -0
- fusion_bench_config/dataset/image_classification/test/oxford_flowers102.yaml +4 -0
- fusion_bench_config/dataset/image_classification/test/pcam.yaml +4 -0
- fusion_bench_config/dataset/image_classification/test/rendered-sst2.yaml +4 -0
- fusion_bench_config/dataset/image_classification/test/resisc45.yaml +4 -0
- fusion_bench_config/dataset/image_classification/test/stanford-cars.yaml +4 -0
- fusion_bench_config/dataset/image_classification/test/stl10.yaml +4 -0
- fusion_bench_config/dataset/image_classification/test/sun397.yaml +4 -0
- fusion_bench_config/dataset/image_classification/test/svhn.yaml +6 -0
- fusion_bench_config/dataset/image_classification/test/the_eight_tasks.yaml +9 -0
- fusion_bench_config/dataset/image_classification/test/tiny-imagenet.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/TALL14.yaml +20 -0
- fusion_bench_config/dataset/image_classification/train/TALL20.yaml +28 -0
- fusion_bench_config/dataset/image_classification/train/cifar10.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/cifar100.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/cub-200-2011.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/dtd.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/emnist_letters.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/emnist_mnist.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/eurosat.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/fashion_mnist.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/fer2013.yaml +3 -0
- fusion_bench_config/dataset/image_classification/train/food101.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/gtsrb.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/kmnist.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/mango-leaf-disease.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/mnist.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/oxford-iiit-pet.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/oxford_flowers102.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/pcam.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/rendered-sst2.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/resisc45.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/stanford-cars.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/stl10.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/sun397.yaml +4 -0
- fusion_bench_config/dataset/image_classification/train/svhn.yaml +6 -0
- fusion_bench_config/dataset/image_classification/train/the_eight_tasks.yaml +9 -0
- fusion_bench_config/dataset/image_classification/train/tiny-imagenet.yaml +4 -0
- fusion_bench_config/dataset/image_classification/val/dtd.yaml +10 -0
- fusion_bench_config/dataset/image_classification/val/eurosat.yaml +10 -0
- fusion_bench_config/dataset/image_classification/val/gtsrb.yaml +10 -0
- fusion_bench_config/dataset/image_classification/val/mnist.yaml +10 -0
- fusion_bench_config/dataset/image_classification/val/resisc45.yaml +10 -0
- fusion_bench_config/dataset/image_classification/val/stanford-cars.yaml +10 -0
- fusion_bench_config/dataset/image_classification/val/sun397.yaml +10 -0
- fusion_bench_config/dataset/image_classification/val/svhn.yaml +12 -0
- fusion_bench_config/dataset/image_classification/val/the_eight_tasks.yaml +9 -0
- fusion_bench_config/dataset/llm_sft/alpaca_cleaned.yaml +6 -0
- fusion_bench_config/dataset/llm_sft/ultrachat_200k.yaml +3 -0
- fusion_bench_config/dataset/question_answering/search_qa.yaml +6 -0
- fusion_bench_config/dataset/question_answering/test/search_qa.yaml +7 -0
- fusion_bench_config/dataset/question_answering/train/MetaMathQA.yaml +4 -0
- fusion_bench_config/dataset/question_answering/train/search_qa.yaml +7 -0
- fusion_bench_config/dataset/question_answering/val/search_qa.yaml +7 -0
- fusion_bench_config/dataset/summarization/test/xsum.yaml +4 -0
- fusion_bench_config/dataset/summarization/train/xsum.yaml +4 -0
- fusion_bench_config/dataset/summarization/val/xsum.yaml +4 -0
- fusion_bench_config/dataset/summarization/xsum.yaml +3 -0
- fusion_bench_config/dataset/text_generation/test/gsm-hard.yaml +4 -0
- fusion_bench_config/dataset/text_generation/test/gsm8k.yaml +5 -0
- fusion_bench_config/dataset/text_generation/test/gsm8k_question_label.yaml +3 -0
- fusion_bench_config/dataset/text_generation/train/CodeAlpaca-20k.yaml +4 -0
- fusion_bench_config/dataset/text_generation/train/gsm8k.yaml +5 -0
- fusion_bench_config/dataset/text_generation/train/gsm8k_question_label.yaml +3 -0
- fusion_bench_config/fabric/auto.yaml +16 -0
- fusion_bench_config/fabric/llama_ddp.yaml +18 -0
- fusion_bench_config/fabric/llama_fsdp.yaml +16 -0
- fusion_bench_config/fabric/llama_peft_fsdp.yaml +16 -0
- fusion_bench_config/fabric/loggers/csv_logger.yaml +11 -0
- fusion_bench_config/fabric/loggers/tensorboard_logger.yaml +11 -0
- fusion_bench_config/fabric/loggers/wandb_logger.yaml +2 -0
- fusion_bench_config/fabric/strategy/deepspeed.yaml +10 -0
- fusion_bench_config/fabric/strategy/llama_fsdp.yaml +8 -0
- fusion_bench_config/fabric/strategy/llama_peft_fsdp.yaml +9 -0
- fusion_bench_config/fabric_model_fusion.yaml +20 -0
- fusion_bench_config/hydra/default.yaml +8 -0
- fusion_bench_config/hydra/help/fusion_bench_help.yaml +47 -0
- fusion_bench_config/hydra/job_logging/rich_logging.yaml +20 -0
- fusion_bench_config/llama_full_finetune.yaml +19 -0
- fusion_bench_config/llama_magnitude_pruning.yaml +16 -0
- fusion_bench_config/llama_model_fusion.yaml +17 -0
- fusion_bench_config/method/ada_svd/clip_vision.yaml +9 -0
- fusion_bench_config/method/adamerging/clip.yaml +23 -0
- fusion_bench_config/method/adamerging/layer_wise_flan_t5.yaml +23 -0
- fusion_bench_config/method/adamerging/layer_wise_gpt2.yaml +23 -0
- fusion_bench_config/method/adamerging/llama_sft.yaml +33 -0
- fusion_bench_config/method/adamerging.yaml +23 -0
- fusion_bench_config/method/analysis/task_vector_cos_similarity.yaml +6 -0
- fusion_bench_config/method/analysis/task_vector_violin_plot.yaml +6 -0
- fusion_bench_config/method/classification/clip_continual_finetune.yaml +28 -0
- fusion_bench_config/method/classification/clip_finetune.yaml +26 -0
- fusion_bench_config/method/clip_finetune.yaml +26 -0
- fusion_bench_config/method/concrete_subspace/clip_concrete_layer_wise_adamerging.yaml +27 -0
- fusion_bench_config/method/concrete_subspace/clip_concrete_task_arithmetic.yaml +25 -0
- fusion_bench_config/method/concrete_subspace/clip_concrete_task_wise_adamerging.yaml +27 -0
- fusion_bench_config/method/dare/simple_average.yaml +5 -0
- fusion_bench_config/method/dare/task_arithmetic.yaml +6 -0
- fusion_bench_config/method/dare/ties_merging.yaml +15 -0
- fusion_bench_config/method/dawe/dawe_for_clip.yaml +32 -0
- fusion_bench_config/method/depth_upscaling.yaml +5 -0
- fusion_bench_config/method/dummy.yaml +1 -0
- fusion_bench_config/method/ensemble/max_model_predictor.yaml +1 -0
- fusion_bench_config/method/ensemble/simple_ensemble.yaml +2 -0
- fusion_bench_config/method/ensemble/weighted_ensemble.yaml +6 -0
- fusion_bench_config/method/fisher_merging/clip_fisher_merging.yaml +13 -0
- fusion_bench_config/method/fisher_merging/fisher_merging.yaml +9 -0
- fusion_bench_config/method/fisher_merging/gpt2_fisher_merging.yaml +12 -0
- fusion_bench_config/method/linear/expo.yaml +8 -0
- fusion_bench_config/method/linear/linear_interpolation.yaml +3 -0
- fusion_bench_config/method/linear/llama_expo.yaml +19 -0
- fusion_bench_config/method/linear/llama_expo_with_dare.yaml +19 -0
- fusion_bench_config/method/linear/simple_average_for_llama.yaml +5 -0
- fusion_bench_config/method/linear/task_arithmetic_for_llama.yaml +4 -0
- fusion_bench_config/method/linear/weighted_average.yaml +6 -0
- fusion_bench_config/method/linear/weighted_average_for_llama.yaml +12 -0
- fusion_bench_config/method/lm_finetune/bradley_terry_rm.yaml +47 -0
- fusion_bench_config/method/lm_finetune/fullfinetune_sft.yaml +47 -0
- fusion_bench_config/method/lm_finetune/peftfinetune_sft.yaml +63 -0
- fusion_bench_config/method/mixtral_moe_merging.yaml +4 -0
- fusion_bench_config/method/mixtral_moe_upscaling.yaml +7 -0
- fusion_bench_config/method/model_recombination.yaml +4 -0
- fusion_bench_config/method/opcm/opcm.yaml +12 -0
- fusion_bench_config/method/opcm/task_arithmetic.yaml +12 -0
- fusion_bench_config/method/opcm/ties_merging.yaml +18 -0
- fusion_bench_config/method/opcm/weight_average.yaml +10 -0
- fusion_bench_config/method/pruning/llama_magnitude_pruning.yaml +14 -0
- fusion_bench_config/method/pruning/llama_random_pruning.yaml +9 -0
- fusion_bench_config/method/pruning/llama_wanda_pruning.yaml +16 -0
- fusion_bench_config/method/pruning/magnitude_diff_pruning.yaml +5 -0
- fusion_bench_config/method/pwe_moe_ls_for_clip.yaml +22 -0
- fusion_bench_config/method/rankone_moe/rankone_moe.yaml +26 -0
- fusion_bench_config/method/regmean/clip_regmean.yaml +11 -0
- fusion_bench_config/method/regmean/gpt2_regmean.yaml +12 -0
- fusion_bench_config/method/regmean/regmean.yaml +4 -0
- fusion_bench_config/method/simple_average.yaml +1 -0
- fusion_bench_config/method/slerp/slerp.yaml +6 -0
- fusion_bench_config/method/smile_upscaling/singular_projection_merging.yaml +8 -0
- fusion_bench_config/method/smile_upscaling/smile_mistral_upscaling.yaml +10 -0
- fusion_bench_config/method/smile_upscaling/smile_upscaling.yaml +14 -0
- fusion_bench_config/method/sparselo_pruning/llama_iterative_sparselo.yaml +20 -0
- fusion_bench_config/method/sparselo_pruning/llama_pcp_sparselo.yaml +20 -0
- fusion_bench_config/method/sparselo_pruning/llama_sparselo.yaml +19 -0
- fusion_bench_config/method/surgery/adamerging_surgery.yaml +27 -0
- fusion_bench_config/method/task_arithmetic.yaml +2 -0
- fusion_bench_config/method/task_singular_vector/TaskSingularVectorMerging.yaml +2 -0
- fusion_bench_config/method/ties_merging.yaml +8 -0
- fusion_bench_config/method/trust_region/clip_task_arithmetic.yaml +7 -0
- fusion_bench_config/method/wemoe/sparse_weight_ensembling_moe.yaml +39 -0
- fusion_bench_config/method/wemoe/weight_ensembling_moe.yaml +20 -0
- fusion_bench_config/model/clip-vit/README.md +38 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_TALL14.yaml +22 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_TALL20.yaml +29 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_cifar10.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_cifar100.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_dtd.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_eight_tasks.yaml +10 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_emnist_letters.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_eurosat.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_fashion_mnist.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_fer2013.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_food101.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_gtsrb.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_kmnist.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_mnist.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_oxford-iiit-pet.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_oxford_flowers102.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_pcam.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_rendered-sst2.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_resisc45.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_stanford-cars.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_stl10.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_sun397.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch16_svhn.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_TALL14.yaml +22 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_TALL20.yaml +29 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_cifar10.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_cifar100.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_dtd.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_eight_tasks.yaml +11 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_emnist_letters.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_eurosat.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_fashion_mnist.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_fer2013.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_food101.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_gtsrb.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_kmnist.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_mnist.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_oxford-iiit-pet.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_oxford_flowers102.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_pcam.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_rendered-sst2.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_resisc45.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_stanford-cars.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_stl10.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_sun397.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-base-patch32_svhn.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_TALL14.yaml +22 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_TALL20.yaml +29 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_cifar10.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_cifar100.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_dtd.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_eight_tasks.yaml +10 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_emnist_letters.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_eurosat.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_fashion_mnist.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_fer2013.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_food101.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_gtsrb.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_kmnist.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_mnist.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_oxford-iiit-pet.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_oxford_flowers102.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_pcam.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_rendered-sst2.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_resisc45.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_stanford-cars.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_stl10.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_sun397.yaml +1 -0
- fusion_bench_config/model/clip-vit/clip-vit-large-patch14_svhn.yaml +1 -0
- fusion_bench_config/model/clip-vit/download_TALL20_models.sh +6 -0
- fusion_bench_config/model/clip-vit/generate_vit_model_config.sh +23 -0
- fusion_bench_config/model/flan-t5/flan-t5-base.yaml +3 -0
- fusion_bench_config/model/flan-t5/flan-t5-base_glue-cola.yaml +3 -0
- fusion_bench_config/model/flan-t5/flan-t5-base_glue-cola_lora-16.yaml +4 -0
- fusion_bench_config/model/flan-t5/flan-t5-base_glue-mnli.yaml +3 -0
- fusion_bench_config/model/flan-t5/flan-t5-base_glue-mnli_lora-16.yaml +4 -0
- fusion_bench_config/model/flan-t5/flan-t5-base_glue-mrpc.yaml +3 -0
- fusion_bench_config/model/flan-t5/flan-t5-base_glue-mrpc_lora-16.yaml +4 -0
- fusion_bench_config/model/flan-t5/flan-t5-base_glue-qnli.yaml +3 -0
- fusion_bench_config/model/flan-t5/flan-t5-base_glue-qnli_lora-16.yaml +4 -0
- fusion_bench_config/model/flan-t5/flan-t5-base_glue-qqp.yaml +3 -0
- fusion_bench_config/model/flan-t5/flan-t5-base_glue-qqp_lora-16.yaml +4 -0
- fusion_bench_config/model/flan-t5/flan-t5-base_glue-rte.yaml +3 -0
- fusion_bench_config/model/flan-t5/flan-t5-base_glue-rte_lora-16.yaml +4 -0
- fusion_bench_config/model/flan-t5/flan-t5-base_glue-sst2.yaml +3 -0
- fusion_bench_config/model/flan-t5/flan-t5-base_glue-sst2_lora-16.yaml +4 -0
- fusion_bench_config/model/flan-t5/flan-t5-base_glue-stsb.yaml +3 -0
- fusion_bench_config/model/flan-t5/flan-t5-base_glue-stsb_lora-16.yaml +4 -0
- fusion_bench_config/model/flan-t5/flan-t5-large.yaml +3 -0
- fusion_bench_config/model/flan-t5/flan-t5-large_glue-cola_lora-16.yaml +4 -0
- fusion_bench_config/model/flan-t5/flan-t5-large_glue-mnli_lora-16.yaml +4 -0
- fusion_bench_config/model/flan-t5/flan-t5-large_glue-mrpc_lora-16.yaml +4 -0
- fusion_bench_config/model/flan-t5/flan-t5-large_glue-qnli_lora-16.yaml +4 -0
- fusion_bench_config/model/flan-t5/flan-t5-large_glue-qqp_lora-16.yaml +4 -0
- fusion_bench_config/model/flan-t5/flan-t5-large_glue-rte_lora-16.yaml +4 -0
- fusion_bench_config/model/flan-t5/flan-t5-large_glue-sst2_lora-16.yaml +4 -0
- fusion_bench_config/model/flan-t5/flan-t5-large_glue-stsb_lora-16.yaml +4 -0
- fusion_bench_config/model/flan-t5/generate_flan-t5.sh +38 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/_template.yaml +12 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch16_TA8.yaml +8 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch16_TA8_lora.yaml +53 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch16_TA8_model_only.yaml +6 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch16_TALL14.yaml +11 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch16_TALL14_model_only.yaml +9 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch16_TALL20.yaml +11 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch16_TALL20_model_only.yaml +9 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch16_individual.yaml +19 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch16_individual_lora.yaml +14 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch32_TA8.yaml +5 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch32_TA8_control_task.yaml +24 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch32_TA8_model_only.yaml +3 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch32_TALL14.yaml +8 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch32_TALL14_model_only.yaml +6 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch32_TALL20.yaml +8 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch32_TALL20_model_only.yaml +6 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch32_generalization_exp1.yaml +24 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch32_generalization_exp2.yaml +24 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch32_individual.yaml +13 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch32_mtl.yaml +5 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch32_robustness_clean.yaml +18 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch32_robustness_corrupted.yaml +29 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch32_single_finetuned.yaml +5 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch32_single_task_projection.yaml +15 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch32_svhn_and_mnist.yaml +6 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-base-patch32_two_tasks_control_task.yaml +18 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-large-patch14_TA8.yaml +8 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-large-patch14_TA8_model_only.yaml +6 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-large-patch14_TALL14.yaml +11 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-large-patch14_TALL14_model_only.yaml +9 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-large-patch14_TALL20.yaml +11 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-large-patch14_TALL20_model_only.yaml +9 -0
- fusion_bench_config/modelpool/CLIPVisionModelPool/clip-vit-large-patch14_individual.yaml +19 -0
- fusion_bench_config/modelpool/CausalLMPool/llama_alpaca_cleaned.yaml +21 -0
- fusion_bench_config/modelpool/CausalLMPool/llama_codealpaca.yaml +21 -0
- fusion_bench_config/modelpool/CausalLMPool/llama_for_causallm.yaml +20 -0
- fusion_bench_config/modelpool/CausalLMPool/llama_metamathqa.yaml +19 -0
- fusion_bench_config/modelpool/CausalLMPool/llama_ultrachat.yaml +18 -0
- fusion_bench_config/modelpool/CausalLMPool/simle_mixtral_exp_v4.yaml +21 -0
- fusion_bench_config/modelpool/CausalLMPool/single_llama_model.yaml +17 -0
- fusion_bench_config/modelpool/Seq2SeqLMPool/_template.yaml +8 -0
- fusion_bench_config/modelpool/Seq2SeqLMPool/flan-t5-base_glue.yaml +13 -0
- fusion_bench_config/modelpool/Seq2SeqLMPool/flan-t5-base_glue_lora16.yaml +41 -0
- fusion_bench_config/modelpool/Seq2SeqLMPool/flan-t5-base_glue_lora16_tta.yaml +68 -0
- fusion_bench_config/modelpool/Seq2SeqLMPool/flan-t5-base_individual.yaml +7 -0
- fusion_bench_config/modelpool/Seq2SeqLMPool/flan-t5-large_glue_lora16.yaml +45 -0
- fusion_bench_config/modelpool/SeqenceClassificationModelPool/llama_preference700k.yaml +23 -0
- fusion_bench_config/modelpool/SeqenceClassificationModelPool/single_reward_model.yaml +14 -0
- fusion_bench_config/modelpool/automodelpool.yaml +12 -0
- fusion_bench_config/modelpool/gpt-2_glue.yaml +64 -0
- fusion_bench_config/modelpool/mixtral_moe_merging.yaml +14 -0
- fusion_bench_config/modelpool/mixtral_moe_upscaling.yaml +6 -0
- fusion_bench_config/modelpool/nyuv2_modelpool.yaml +26 -0
- fusion_bench_config/modelpool/smile_mistral_exp_v1.yaml +9 -0
- fusion_bench_config/modelpool/smile_mistral_exp_v2.yaml +9 -0
- fusion_bench_config/modelpool/smile_mistral_exp_v3.yaml +9 -0
- fusion_bench_config/modelpool/smile_mistral_exp_v4.yaml +13 -0
- fusion_bench_config/nyuv2_config.yaml +17 -0
- fusion_bench_config/nyuv2_mtl_train.yaml +32 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/_template.yaml +31 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-base-patch32_robustness_corrupted.yaml +27 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-classification_TA8.yaml +11 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-classification_TA8_B16.yaml +31 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-classification_TA8_L14.yaml +12 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-classification_TA8_val.yaml +12 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-classification_TA8_with_control_task.yaml +12 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-classification_TALL14.yaml +19 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-classification_TALL20.yaml +26 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_cifar10.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_cifar100.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_dtd.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_emnist_letters.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_eurosat.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_fashion_mnist.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_fer2013.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_food101.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_gtsrb.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_kmnist.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_mnist.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_oxford-iiit-pet.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_oxford_flowers102.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_oxford_flowers102_val.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_pcam.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_rendered-sst2.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_resisc45.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_stanford-cars.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_stl10.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_sun397.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip-vit-single-task_svhn.yaml +3 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip_rankone_wemoe_clip-vit-classification_TA8.yaml +18 -0
- fusion_bench_config/taskpool/CLIPVisionModelTaskPool/clip_sparse_wemoe_clip-vit-classification_TA8.yaml +18 -0
- fusion_bench_config/taskpool/clip-vit-base-patch32_robustness_clean.yaml +24 -0
- fusion_bench_config/taskpool/clip-vit-base-patch32_robustness_corrupted.yaml +27 -0
- fusion_bench_config/taskpool/clip-vit-base-patch32_svhn_and_mnist.yaml +22 -0
- fusion_bench_config/taskpool/dummy.yaml +2 -0
- fusion_bench_config/taskpool/flan-t5_glue_text_generation.yaml +44 -0
- fusion_bench_config/taskpool/gpt-2_glue.yaml +39 -0
- fusion_bench_config/taskpool/nyuv2_taskpool.yaml +9 -0
- fusion_bench_config/taskpool/reward_model_evaluation.yaml +18 -0
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
classnames = [
|
|
2
|
+
"abbey",
|
|
3
|
+
"airplane cabin",
|
|
4
|
+
"airport terminal",
|
|
5
|
+
"alley",
|
|
6
|
+
"amphitheater",
|
|
7
|
+
"amusement arcade",
|
|
8
|
+
"amusement park",
|
|
9
|
+
"anechoic chamber",
|
|
10
|
+
"apartment building outdoor",
|
|
11
|
+
"apse indoor",
|
|
12
|
+
"aquarium",
|
|
13
|
+
"aqueduct",
|
|
14
|
+
"arch",
|
|
15
|
+
"archive",
|
|
16
|
+
"arrival gate outdoor",
|
|
17
|
+
"art gallery",
|
|
18
|
+
"art school",
|
|
19
|
+
"art studio",
|
|
20
|
+
"assembly line",
|
|
21
|
+
"athletic field outdoor",
|
|
22
|
+
"atrium public",
|
|
23
|
+
"attic",
|
|
24
|
+
"auditorium",
|
|
25
|
+
"auto factory",
|
|
26
|
+
"badlands",
|
|
27
|
+
"badminton court indoor",
|
|
28
|
+
"baggage claim",
|
|
29
|
+
"bakery shop",
|
|
30
|
+
"balcony exterior",
|
|
31
|
+
"balcony interior",
|
|
32
|
+
"ball pit",
|
|
33
|
+
"ballroom",
|
|
34
|
+
"bamboo forest",
|
|
35
|
+
"banquet hall",
|
|
36
|
+
"bar",
|
|
37
|
+
"barn",
|
|
38
|
+
"barndoor",
|
|
39
|
+
"baseball field",
|
|
40
|
+
"basement",
|
|
41
|
+
"basilica",
|
|
42
|
+
"basketball court outdoor",
|
|
43
|
+
"bathroom",
|
|
44
|
+
"batters box",
|
|
45
|
+
"bayou",
|
|
46
|
+
"bazaar indoor",
|
|
47
|
+
"bazaar outdoor",
|
|
48
|
+
"beach",
|
|
49
|
+
"beauty salon",
|
|
50
|
+
"bedroom",
|
|
51
|
+
"berth",
|
|
52
|
+
"biology laboratory",
|
|
53
|
+
"bistro indoor",
|
|
54
|
+
"boardwalk",
|
|
55
|
+
"boat deck",
|
|
56
|
+
"boathouse",
|
|
57
|
+
"bookstore",
|
|
58
|
+
"booth indoor",
|
|
59
|
+
"botanical garden",
|
|
60
|
+
"bow window indoor",
|
|
61
|
+
"bow window outdoor",
|
|
62
|
+
"bowling alley",
|
|
63
|
+
"boxing ring",
|
|
64
|
+
"brewery indoor",
|
|
65
|
+
"bridge",
|
|
66
|
+
"building facade",
|
|
67
|
+
"bullring",
|
|
68
|
+
"burial chamber",
|
|
69
|
+
"bus interior",
|
|
70
|
+
"butchers shop",
|
|
71
|
+
"butte",
|
|
72
|
+
"cabin outdoor",
|
|
73
|
+
"cafeteria",
|
|
74
|
+
"campsite",
|
|
75
|
+
"campus",
|
|
76
|
+
"canal natural",
|
|
77
|
+
"canal urban",
|
|
78
|
+
"candy store",
|
|
79
|
+
"canyon",
|
|
80
|
+
"car interior backseat",
|
|
81
|
+
"car interior frontseat",
|
|
82
|
+
"carrousel",
|
|
83
|
+
"casino indoor",
|
|
84
|
+
"castle",
|
|
85
|
+
"catacomb",
|
|
86
|
+
"cathedral indoor",
|
|
87
|
+
"cathedral outdoor",
|
|
88
|
+
"cavern indoor",
|
|
89
|
+
"cemetery",
|
|
90
|
+
"chalet",
|
|
91
|
+
"cheese factory",
|
|
92
|
+
"chemistry lab",
|
|
93
|
+
"chicken coop indoor",
|
|
94
|
+
"chicken coop outdoor",
|
|
95
|
+
"childs room",
|
|
96
|
+
"church indoor",
|
|
97
|
+
"church outdoor",
|
|
98
|
+
"classroom",
|
|
99
|
+
"clean room",
|
|
100
|
+
"cliff",
|
|
101
|
+
"cloister indoor",
|
|
102
|
+
"closet",
|
|
103
|
+
"clothing store",
|
|
104
|
+
"coast",
|
|
105
|
+
"cockpit",
|
|
106
|
+
"coffee shop",
|
|
107
|
+
"computer room",
|
|
108
|
+
"conference center",
|
|
109
|
+
"conference room",
|
|
110
|
+
"construction site",
|
|
111
|
+
"control room",
|
|
112
|
+
"control tower outdoor",
|
|
113
|
+
"corn field",
|
|
114
|
+
"corral",
|
|
115
|
+
"corridor",
|
|
116
|
+
"cottage garden",
|
|
117
|
+
"courthouse",
|
|
118
|
+
"courtroom",
|
|
119
|
+
"courtyard",
|
|
120
|
+
"covered bridge exterior",
|
|
121
|
+
"creek",
|
|
122
|
+
"crevasse",
|
|
123
|
+
"crosswalk",
|
|
124
|
+
"cubicle office",
|
|
125
|
+
"dam",
|
|
126
|
+
"delicatessen",
|
|
127
|
+
"dentists office",
|
|
128
|
+
"desert sand",
|
|
129
|
+
"desert vegetation",
|
|
130
|
+
"diner indoor",
|
|
131
|
+
"diner outdoor",
|
|
132
|
+
"dinette home",
|
|
133
|
+
"dinette vehicle",
|
|
134
|
+
"dining car",
|
|
135
|
+
"dining room",
|
|
136
|
+
"discotheque",
|
|
137
|
+
"dock",
|
|
138
|
+
"doorway outdoor",
|
|
139
|
+
"dorm room",
|
|
140
|
+
"driveway",
|
|
141
|
+
"driving range outdoor",
|
|
142
|
+
"drugstore",
|
|
143
|
+
"electrical substation",
|
|
144
|
+
"elevator door",
|
|
145
|
+
"elevator interior",
|
|
146
|
+
"elevator shaft",
|
|
147
|
+
"engine room",
|
|
148
|
+
"escalator indoor",
|
|
149
|
+
"excavation",
|
|
150
|
+
"factory indoor",
|
|
151
|
+
"fairway",
|
|
152
|
+
"fastfood restaurant",
|
|
153
|
+
"field cultivated",
|
|
154
|
+
"field wild",
|
|
155
|
+
"fire escape",
|
|
156
|
+
"fire station",
|
|
157
|
+
"firing range indoor",
|
|
158
|
+
"fishpond",
|
|
159
|
+
"florist shop indoor",
|
|
160
|
+
"food court",
|
|
161
|
+
"forest broadleaf",
|
|
162
|
+
"forest needleleaf",
|
|
163
|
+
"forest path",
|
|
164
|
+
"forest road",
|
|
165
|
+
"formal garden",
|
|
166
|
+
"fountain",
|
|
167
|
+
"galley",
|
|
168
|
+
"game room",
|
|
169
|
+
"garage indoor",
|
|
170
|
+
"garbage dump",
|
|
171
|
+
"gas station",
|
|
172
|
+
"gazebo exterior",
|
|
173
|
+
"general store indoor",
|
|
174
|
+
"general store outdoor",
|
|
175
|
+
"gift shop",
|
|
176
|
+
"golf course",
|
|
177
|
+
"greenhouse indoor",
|
|
178
|
+
"greenhouse outdoor",
|
|
179
|
+
"gymnasium indoor",
|
|
180
|
+
"hangar indoor",
|
|
181
|
+
"hangar outdoor",
|
|
182
|
+
"harbor",
|
|
183
|
+
"hayfield",
|
|
184
|
+
"heliport",
|
|
185
|
+
"herb garden",
|
|
186
|
+
"highway",
|
|
187
|
+
"hill",
|
|
188
|
+
"home office",
|
|
189
|
+
"hospital",
|
|
190
|
+
"hospital room",
|
|
191
|
+
"hot spring",
|
|
192
|
+
"hot tub outdoor",
|
|
193
|
+
"hotel outdoor",
|
|
194
|
+
"hotel room",
|
|
195
|
+
"house",
|
|
196
|
+
"hunting lodge outdoor",
|
|
197
|
+
"ice cream parlor",
|
|
198
|
+
"ice floe",
|
|
199
|
+
"ice shelf",
|
|
200
|
+
"ice skating rink indoor",
|
|
201
|
+
"ice skating rink outdoor",
|
|
202
|
+
"iceberg",
|
|
203
|
+
"igloo",
|
|
204
|
+
"industrial area",
|
|
205
|
+
"inn outdoor",
|
|
206
|
+
"islet",
|
|
207
|
+
"jacuzzi indoor",
|
|
208
|
+
"jail cell",
|
|
209
|
+
"jail indoor",
|
|
210
|
+
"jewelry shop",
|
|
211
|
+
"kasbah",
|
|
212
|
+
"kennel indoor",
|
|
213
|
+
"kennel outdoor",
|
|
214
|
+
"kindergarden classroom",
|
|
215
|
+
"kitchen",
|
|
216
|
+
"kitchenette",
|
|
217
|
+
"labyrinth outdoor",
|
|
218
|
+
"lake natural",
|
|
219
|
+
"landfill",
|
|
220
|
+
"landing deck",
|
|
221
|
+
"laundromat",
|
|
222
|
+
"lecture room",
|
|
223
|
+
"library indoor",
|
|
224
|
+
"library outdoor",
|
|
225
|
+
"lido deck outdoor",
|
|
226
|
+
"lift bridge",
|
|
227
|
+
"lighthouse",
|
|
228
|
+
"limousine interior",
|
|
229
|
+
"living room",
|
|
230
|
+
"lobby",
|
|
231
|
+
"lock chamber",
|
|
232
|
+
"locker room",
|
|
233
|
+
"mansion",
|
|
234
|
+
"manufactured home",
|
|
235
|
+
"market indoor",
|
|
236
|
+
"market outdoor",
|
|
237
|
+
"marsh",
|
|
238
|
+
"martial arts gym",
|
|
239
|
+
"mausoleum",
|
|
240
|
+
"medina",
|
|
241
|
+
"moat water",
|
|
242
|
+
"monastery outdoor",
|
|
243
|
+
"mosque indoor",
|
|
244
|
+
"mosque outdoor",
|
|
245
|
+
"motel",
|
|
246
|
+
"mountain",
|
|
247
|
+
"mountain snowy",
|
|
248
|
+
"movie theater indoor",
|
|
249
|
+
"museum indoor",
|
|
250
|
+
"music store",
|
|
251
|
+
"music studio",
|
|
252
|
+
"nuclear power plant outdoor",
|
|
253
|
+
"nursery",
|
|
254
|
+
"oast house",
|
|
255
|
+
"observatory outdoor",
|
|
256
|
+
"ocean",
|
|
257
|
+
"office",
|
|
258
|
+
"office building",
|
|
259
|
+
"oil refinery outdoor",
|
|
260
|
+
"oilrig",
|
|
261
|
+
"operating room",
|
|
262
|
+
"orchard",
|
|
263
|
+
"outhouse outdoor",
|
|
264
|
+
"pagoda",
|
|
265
|
+
"palace",
|
|
266
|
+
"pantry",
|
|
267
|
+
"park",
|
|
268
|
+
"parking garage indoor",
|
|
269
|
+
"parking garage outdoor",
|
|
270
|
+
"parking lot",
|
|
271
|
+
"parlor",
|
|
272
|
+
"pasture",
|
|
273
|
+
"patio",
|
|
274
|
+
"pavilion",
|
|
275
|
+
"pharmacy",
|
|
276
|
+
"phone booth",
|
|
277
|
+
"physics laboratory",
|
|
278
|
+
"picnic area",
|
|
279
|
+
"pilothouse indoor",
|
|
280
|
+
"planetarium outdoor",
|
|
281
|
+
"playground",
|
|
282
|
+
"playroom",
|
|
283
|
+
"plaza",
|
|
284
|
+
"podium indoor",
|
|
285
|
+
"podium outdoor",
|
|
286
|
+
"pond",
|
|
287
|
+
"poolroom establishment",
|
|
288
|
+
"poolroom home",
|
|
289
|
+
"power plant outdoor",
|
|
290
|
+
"promenade deck",
|
|
291
|
+
"pub indoor",
|
|
292
|
+
"pulpit",
|
|
293
|
+
"putting green",
|
|
294
|
+
"racecourse",
|
|
295
|
+
"raceway",
|
|
296
|
+
"raft",
|
|
297
|
+
"railroad track",
|
|
298
|
+
"rainforest",
|
|
299
|
+
"reception",
|
|
300
|
+
"recreation room",
|
|
301
|
+
"residential neighborhood",
|
|
302
|
+
"restaurant",
|
|
303
|
+
"restaurant kitchen",
|
|
304
|
+
"restaurant patio",
|
|
305
|
+
"rice paddy",
|
|
306
|
+
"riding arena",
|
|
307
|
+
"river",
|
|
308
|
+
"rock arch",
|
|
309
|
+
"rope bridge",
|
|
310
|
+
"ruin",
|
|
311
|
+
"runway",
|
|
312
|
+
"sandbar",
|
|
313
|
+
"sandbox",
|
|
314
|
+
"sauna",
|
|
315
|
+
"schoolhouse",
|
|
316
|
+
"sea cliff",
|
|
317
|
+
"server room",
|
|
318
|
+
"shed",
|
|
319
|
+
"shoe shop",
|
|
320
|
+
"shopfront",
|
|
321
|
+
"shopping mall indoor",
|
|
322
|
+
"shower",
|
|
323
|
+
"skatepark",
|
|
324
|
+
"ski lodge",
|
|
325
|
+
"ski resort",
|
|
326
|
+
"ski slope",
|
|
327
|
+
"sky",
|
|
328
|
+
"skyscraper",
|
|
329
|
+
"slum",
|
|
330
|
+
"snowfield",
|
|
331
|
+
"squash court",
|
|
332
|
+
"stable",
|
|
333
|
+
"stadium baseball",
|
|
334
|
+
"stadium football",
|
|
335
|
+
"stage indoor",
|
|
336
|
+
"staircase",
|
|
337
|
+
"street",
|
|
338
|
+
"subway interior",
|
|
339
|
+
"subway station platform",
|
|
340
|
+
"supermarket",
|
|
341
|
+
"sushi bar",
|
|
342
|
+
"swamp",
|
|
343
|
+
"swimming pool indoor",
|
|
344
|
+
"swimming pool outdoor",
|
|
345
|
+
"synagogue indoor",
|
|
346
|
+
"synagogue outdoor",
|
|
347
|
+
"television studio",
|
|
348
|
+
"temple east asia",
|
|
349
|
+
"temple south asia",
|
|
350
|
+
"tennis court indoor",
|
|
351
|
+
"tennis court outdoor",
|
|
352
|
+
"tent outdoor",
|
|
353
|
+
"theater indoor procenium",
|
|
354
|
+
"theater indoor seats",
|
|
355
|
+
"thriftshop",
|
|
356
|
+
"throne room",
|
|
357
|
+
"ticket booth",
|
|
358
|
+
"toll plaza",
|
|
359
|
+
"topiary garden",
|
|
360
|
+
"tower",
|
|
361
|
+
"toyshop",
|
|
362
|
+
"track outdoor",
|
|
363
|
+
"train railway",
|
|
364
|
+
"train station platform",
|
|
365
|
+
"tree farm",
|
|
366
|
+
"tree house",
|
|
367
|
+
"trench",
|
|
368
|
+
"underwater coral reef",
|
|
369
|
+
"utility room",
|
|
370
|
+
"valley",
|
|
371
|
+
"van interior",
|
|
372
|
+
"vegetable garden",
|
|
373
|
+
"veranda",
|
|
374
|
+
"veterinarians office",
|
|
375
|
+
"viaduct",
|
|
376
|
+
"videostore",
|
|
377
|
+
"village",
|
|
378
|
+
"vineyard",
|
|
379
|
+
"volcano",
|
|
380
|
+
"volleyball court indoor",
|
|
381
|
+
"volleyball court outdoor",
|
|
382
|
+
"waiting room",
|
|
383
|
+
"warehouse indoor",
|
|
384
|
+
"water tower",
|
|
385
|
+
"waterfall block",
|
|
386
|
+
"waterfall fan",
|
|
387
|
+
"waterfall plunge",
|
|
388
|
+
"watering hole",
|
|
389
|
+
"wave",
|
|
390
|
+
"wet bar",
|
|
391
|
+
"wheat field",
|
|
392
|
+
"wind farm",
|
|
393
|
+
"windmill",
|
|
394
|
+
"wine cellar barrel storage",
|
|
395
|
+
"wine cellar bottle storage",
|
|
396
|
+
"wrestling ring indoor",
|
|
397
|
+
"yard",
|
|
398
|
+
"youth hostel",
|
|
399
|
+
]
|
|
400
|
+
|
|
401
|
+
templates = [
|
|
402
|
+
lambda c: f"a photo of a {c}.",
|
|
403
|
+
lambda c: f"a photo of the {c}.",
|
|
404
|
+
]
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
from .imagenet import templates # noqa: F401
|
|
2
|
+
|
|
3
|
+
classnames_full = [
|
|
4
|
+
"goldfish, Carassius auratus",
|
|
5
|
+
"European fire salamander, Salamandra salamandra",
|
|
6
|
+
"bullfrog, Rana catesbeiana",
|
|
7
|
+
"tailed frog, bell toad, ribbed toad, tailed toad, Ascaphus trui",
|
|
8
|
+
"American alligator, Alligator mississipiensis",
|
|
9
|
+
"boa constrictor, Constrictor constrictor",
|
|
10
|
+
"trilobite",
|
|
11
|
+
"scorpion",
|
|
12
|
+
"black widow, Latrodectus mactans",
|
|
13
|
+
"tarantula",
|
|
14
|
+
"centipede",
|
|
15
|
+
"koala, koala bear, kangaroo bear, native bear, Phascolarctos cinereus",
|
|
16
|
+
"jellyfish",
|
|
17
|
+
"brain coral",
|
|
18
|
+
"snail",
|
|
19
|
+
"sea slug, nudibranch",
|
|
20
|
+
"American lobster, Northern lobster, Maine lobster, Homarus americanus",
|
|
21
|
+
"spiny lobster, langouste, rock lobster, crawfish, crayfish, sea crawfish",
|
|
22
|
+
"black stork, Ciconia nigra",
|
|
23
|
+
"king penguin, Aptenodytes patagonica",
|
|
24
|
+
"albatross, mollymawk",
|
|
25
|
+
"dugong, Dugong dugon",
|
|
26
|
+
"Yorkshire terrier",
|
|
27
|
+
"golden retriever",
|
|
28
|
+
"Labrador retriever",
|
|
29
|
+
"German shepherd, German shepherd dog, German police dog, alsatian",
|
|
30
|
+
"standard poodle",
|
|
31
|
+
"tabby, tabby cat",
|
|
32
|
+
"Persian cat",
|
|
33
|
+
"Egyptian cat",
|
|
34
|
+
"cougar, puma, catamount, mountain lion, painter, panther, Felis concolor",
|
|
35
|
+
"lion, king of beasts, Panthera leo",
|
|
36
|
+
"brown bear, bruin, Ursus arctos",
|
|
37
|
+
"ladybug, ladybeetle, lady beetle, ladybird, ladybird beetle",
|
|
38
|
+
"grasshopper, hopper",
|
|
39
|
+
"walking stick, walkingstick, stick insect",
|
|
40
|
+
"cockroach, roach",
|
|
41
|
+
"mantis, mantid",
|
|
42
|
+
"dragonfly, darning needle, devil's darning needle, sewing needle, snake feeder, snake doctor, mosquito hawk, skeeter hawk",
|
|
43
|
+
"monarch, monarch butterfly, milkweed butterfly, Danaus plexippus",
|
|
44
|
+
"sulphur butterfly, sulfur butterfly",
|
|
45
|
+
"sea cucumber, holothurian",
|
|
46
|
+
"guinea pig, Cavia cobaya",
|
|
47
|
+
"hog, pig, grunter, squealer, Sus scrofa",
|
|
48
|
+
"ox",
|
|
49
|
+
"bison",
|
|
50
|
+
"bighorn, bighorn sheep, cimarron, Rocky Mountain bighorn, Rocky Mountain sheep, Ovis canadensis",
|
|
51
|
+
"gazelle",
|
|
52
|
+
"Arabian camel, dromedary, Camelus dromedarius",
|
|
53
|
+
"orangutan, orang, orangutang, Pongo pygmaeus",
|
|
54
|
+
"chimpanzee, chimp, Pan troglodytes",
|
|
55
|
+
"baboon",
|
|
56
|
+
"African elephant, Loxodonta africana",
|
|
57
|
+
"lesser panda, red panda, panda, bear cat, cat bear, Ailurus fulgens",
|
|
58
|
+
"abacus",
|
|
59
|
+
"academic gown, academic robe, judge's robe",
|
|
60
|
+
"altar",
|
|
61
|
+
"backpack, back pack, knapsack, packsack, rucksack, haversack",
|
|
62
|
+
"bannister, banister, balustrade, balusters, handrail",
|
|
63
|
+
"barbershop",
|
|
64
|
+
"barn",
|
|
65
|
+
"barrel, cask",
|
|
66
|
+
"basketball",
|
|
67
|
+
"bathtub, bathing tub, bath, tub",
|
|
68
|
+
"beach wagon, station wagon, wagon, estate car, beach waggon, station waggon, waggon",
|
|
69
|
+
"beacon, lighthouse, beacon light, pharos",
|
|
70
|
+
"beaker",
|
|
71
|
+
"beer bottle",
|
|
72
|
+
"bikini, two-piece",
|
|
73
|
+
"binoculars, field glasses, opera glasses",
|
|
74
|
+
"birdhouse",
|
|
75
|
+
"bow tie, bow-tie, bowtie",
|
|
76
|
+
"brass, memorial tablet, plaque",
|
|
77
|
+
"bucket, pail",
|
|
78
|
+
"bullet train, bullet",
|
|
79
|
+
"butcher shop, meat market",
|
|
80
|
+
"candle, taper, wax light",
|
|
81
|
+
"cannon",
|
|
82
|
+
"cardigan",
|
|
83
|
+
"cash machine, cash dispenser, automated teller machine, automatic teller machine, automated teller, automatic teller, ATM",
|
|
84
|
+
"CD player",
|
|
85
|
+
"chest",
|
|
86
|
+
"Christmas stocking",
|
|
87
|
+
"cliff dwelling",
|
|
88
|
+
"computer keyboard, keypad",
|
|
89
|
+
"confectionery, confectionary, candy store",
|
|
90
|
+
"convertible",
|
|
91
|
+
"crane",
|
|
92
|
+
"dam, dike, dyke",
|
|
93
|
+
"desk",
|
|
94
|
+
"dining table, board",
|
|
95
|
+
"dumbbell",
|
|
96
|
+
"flagpole, flagstaff",
|
|
97
|
+
"fly",
|
|
98
|
+
"fountain",
|
|
99
|
+
"freight car",
|
|
100
|
+
"frying pan, frypan, skillet",
|
|
101
|
+
"fur coat",
|
|
102
|
+
"gasmask, respirator, gas helmet",
|
|
103
|
+
"go-kart",
|
|
104
|
+
"gondola",
|
|
105
|
+
"hourglass",
|
|
106
|
+
"iPod",
|
|
107
|
+
"jinrikisha, ricksha, rickshaw",
|
|
108
|
+
"kimono",
|
|
109
|
+
"lampshade, lamp shade",
|
|
110
|
+
"lawn mower, mower",
|
|
111
|
+
"lifeboat",
|
|
112
|
+
"limousine, limo",
|
|
113
|
+
"magnetic compass",
|
|
114
|
+
"maypole",
|
|
115
|
+
"military uniform",
|
|
116
|
+
"miniskirt, mini",
|
|
117
|
+
"moving van",
|
|
118
|
+
"neck brace",
|
|
119
|
+
"obelisk",
|
|
120
|
+
"oboe, hautboy, hautbois",
|
|
121
|
+
"organ, pipe organ",
|
|
122
|
+
"parking meter",
|
|
123
|
+
"pay-phone, pay-station",
|
|
124
|
+
"picket fence, paling",
|
|
125
|
+
"pill bottle",
|
|
126
|
+
"plunger, plumber's helper",
|
|
127
|
+
"police van, police wagon, paddy wagon, patrol wagon, wagon, black Maria",
|
|
128
|
+
"poncho",
|
|
129
|
+
"pop bottle, soda bottle",
|
|
130
|
+
"potter's wheel",
|
|
131
|
+
"projectile, missile",
|
|
132
|
+
"punching bag, punch bag, punching ball, punchball",
|
|
133
|
+
"refrigerator, icebox",
|
|
134
|
+
"remote control, remote",
|
|
135
|
+
"rocking chair, rocker",
|
|
136
|
+
"rugby ball",
|
|
137
|
+
"sandal",
|
|
138
|
+
"school bus",
|
|
139
|
+
"scoreboard",
|
|
140
|
+
"sewing machine",
|
|
141
|
+
"snorkel",
|
|
142
|
+
"sock",
|
|
143
|
+
"sombrero",
|
|
144
|
+
"space heater",
|
|
145
|
+
"spider web, spider's web",
|
|
146
|
+
"sports car, sport car",
|
|
147
|
+
"steel arch bridge",
|
|
148
|
+
"stopwatch, stop watch",
|
|
149
|
+
"sunglasses, dark glasses, shades",
|
|
150
|
+
"suspension bridge",
|
|
151
|
+
"swimming trunks, bathing trunks",
|
|
152
|
+
"syringe",
|
|
153
|
+
"teapot",
|
|
154
|
+
"teddy, teddy bear",
|
|
155
|
+
"thatch, thatched roof",
|
|
156
|
+
"torch",
|
|
157
|
+
"tractor",
|
|
158
|
+
"triumphal arch",
|
|
159
|
+
"trolleybus, trolley coach, trackless trolley",
|
|
160
|
+
"turnstile",
|
|
161
|
+
"umbrella",
|
|
162
|
+
"vestment",
|
|
163
|
+
"viaduct",
|
|
164
|
+
"volleyball",
|
|
165
|
+
"water jug",
|
|
166
|
+
"water tower",
|
|
167
|
+
"wok",
|
|
168
|
+
"wooden spoon",
|
|
169
|
+
"comic book",
|
|
170
|
+
"reel",
|
|
171
|
+
"guacamole",
|
|
172
|
+
"ice cream, icecream",
|
|
173
|
+
"ice lolly, lolly, lollipop, popsicle",
|
|
174
|
+
"goose",
|
|
175
|
+
"drumstick",
|
|
176
|
+
"plate",
|
|
177
|
+
"pretzel",
|
|
178
|
+
"mashed potato",
|
|
179
|
+
"cauliflower",
|
|
180
|
+
"bell pepper",
|
|
181
|
+
"lemon",
|
|
182
|
+
"banana",
|
|
183
|
+
"pomegranate",
|
|
184
|
+
"meat loaf, meatloaf",
|
|
185
|
+
"pizza, pizza pie",
|
|
186
|
+
"potpie",
|
|
187
|
+
"espresso",
|
|
188
|
+
"bee",
|
|
189
|
+
"apron",
|
|
190
|
+
"pole",
|
|
191
|
+
"Chihuahua",
|
|
192
|
+
"alp",
|
|
193
|
+
"cliff, drop, drop-off",
|
|
194
|
+
"coral reef",
|
|
195
|
+
"lakeside, lakeshore",
|
|
196
|
+
"seashore, coast, seacoast, sea-coast",
|
|
197
|
+
"acorn",
|
|
198
|
+
"broom",
|
|
199
|
+
"mushroom",
|
|
200
|
+
"nail",
|
|
201
|
+
"chain",
|
|
202
|
+
"slug",
|
|
203
|
+
"orange",
|
|
204
|
+
]
|
|
205
|
+
|
|
206
|
+
classnames = [n.split(",")[0] for n in classnames_full]
|
|
207
|
+
|
|
208
|
+
assert len(classnames) == 200, "Tiny ImageNet classnames should have 200 classes"
|
|
File without changes
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"""
|
|
2
|
+
This scripts preprocess any NLP dataset into a text-to-text format.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
import json
|
|
6
|
+
import os
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
from typing import Any, Callable, Dict, Union # noqa: F401
|
|
9
|
+
|
|
10
|
+
from transformers import AutoTokenizer
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def preprocess(
|
|
14
|
+
tokenizer: AutoTokenizer,
|
|
15
|
+
input_text: str,
|
|
16
|
+
target_text: str,
|
|
17
|
+
tokenizer_kwawgs: Dict[str, Any] = None,
|
|
18
|
+
):
|
|
19
|
+
"""
|
|
20
|
+
standard preprocess function for dataset.
|
|
21
|
+
Preprocesses input and target text data using a tokenizer object and returns a dictionary of model inputs.
|
|
22
|
+
|
|
23
|
+
Args:
|
|
24
|
+
tokenizer: An instance of a tokenizer class used to preprocess text data.
|
|
25
|
+
input_text (str): A string containing the input text data to be tokenized.
|
|
26
|
+
target_text (str, optional): A string containing the target text data to be tokenized. If None, no target data is returned.
|
|
27
|
+
|
|
28
|
+
Returns:
|
|
29
|
+
A dictionary of model inputs containing the tokenized input and output data along with the modified labels tensor.
|
|
30
|
+
"""
|
|
31
|
+
if tokenizer_kwawgs is None:
|
|
32
|
+
tokenizer_kwawgs = {}
|
|
33
|
+
model_inputs = tokenizer(input_text, **tokenizer_kwawgs)
|
|
34
|
+
if target_text is not None:
|
|
35
|
+
labels = tokenizer(target_text, **tokenizer_kwawgs)
|
|
36
|
+
labels = labels["input_ids"]
|
|
37
|
+
labels[labels == tokenizer.pad_token_id] = -100
|
|
38
|
+
model_inputs["labels"] = labels
|
|
39
|
+
return model_inputs
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class DatasetPreprocessor:
|
|
43
|
+
def __init__(
|
|
44
|
+
self,
|
|
45
|
+
tokenizer: AutoTokenizer,
|
|
46
|
+
tokenizer_kwargs: Dict[str, Any] = None,
|
|
47
|
+
template: Union[str, Path, Dict] = None,
|
|
48
|
+
):
|
|
49
|
+
"""
|
|
50
|
+
Initializes an instance of the datasets_preprocess class with a tokenizer object.
|
|
51
|
+
|
|
52
|
+
Args:
|
|
53
|
+
tokenizer: An instance of a tokenizer class used to preprocess text data.
|
|
54
|
+
"""
|
|
55
|
+
super().__init__()
|
|
56
|
+
self.tokenizer = tokenizer
|
|
57
|
+
self.tokenizer_kwargs = tokenizer_kwargs
|
|
58
|
+
if template is not None:
|
|
59
|
+
if isinstance(template, str):
|
|
60
|
+
template = template
|
|
61
|
+
assert os.path.exists(
|
|
62
|
+
template
|
|
63
|
+
), f"Template file not found at {template}"
|
|
64
|
+
with open(template, "r") as f:
|
|
65
|
+
self.template = json.load(f)
|
|
66
|
+
elif isinstance(template, dict):
|
|
67
|
+
self.template = template
|
|
68
|
+
else:
|
|
69
|
+
raise ValueError(
|
|
70
|
+
"Template must be a path to a json file or a dictionary"
|
|
71
|
+
)
|