Basic Examples¶
Start here to learn the fundamentals of FusionBench through hands-on examples.
Getting Started with FusionBench CLI¶
The quickest way to get started is to run your first fusion experiment:
fusion_bench \
method=simple_average \
modelpool=CLIPVisionModelPool/clip-vit-base-patch32_TA8 \
taskpool=CLIPVisionModelTaskPool/clip-vit-classification_TA8
-
Structured Configs
Learn how to build structured configuration files and group configurations effectively in FusionBench.
-
CLIP Simple Average
Merge clip vision models using simple average.
-
CLIP Task Arithmetic
Merge CLIP vision models using task arithmetic, allowing you to adjust the scaling factor as a hyperparameter.
-
Evaluate Single CLIP Model
Evaluate the performance of a single CLIP model on image classification tasks.
-
Merge Large Language Models
Merge large language models using SLERP.
FusionBench as a Package¶
Prerequisites¶
Before running these examples, make sure you:
- Have FusionBench installed:
pip install fusion-bench - Have PyTorch and Transformers installed.
- Familiarize yourself with Hydra basics