Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new SOTA Method: isotropic merging #74

Merged
merged 5 commits into from
Feb 12, 2025
Merged

add new SOTA Method: isotropic merging #74

merged 5 commits into from
Feb 12, 2025

Conversation

tanganke
Copy link
Owner

Example Usage:

Merge CLIP-ViT-B/32 models on eight image classification tasks using ISO-C, with a scaling factor of 1.5:

fusion_bench \
    fabric.loggers.name=iso_c \
    method=isotropic_merging/iso_c \
    method.scaling_factor=1.5 \
    modelpool=CLIPVisionModelPool/clip-vit-base-patch32_TA8 \
    taskpool=CLIPVisionModelTaskPool/clip-vit-classification_TA8

Merge CLIP-ViT-B/32 models on eight image classification tasks using ISO-CTS, with a scaling factor of 1.5:

fusion_bench \
    fabric.loggers.name=iso_cts \
    method=isotropic_merging/iso_cts \
    method.scaling_factor=1.5 \
    modelpool=CLIPVisionModelPool/clip-vit-base-patch32_TA8 \
    taskpool=CLIPVisionModelTaskPool/clip-vit-classification_TA8

The results differ from those in the original paper due to the use of different sets of models.

@Copilot Copilot bot review requested due to automatic review settings February 12, 2025 09:43
Copy link
Contributor

Images automagically compressed by Calibre's image-actions

Compression reduced images by 14.9%, saving 104.11 KB.

Filename Before After Improvement Visual comparison
docs/algorithms/images/iso_merging.png 697.75 KB 593.65 KB -14.9% View diff

65 images did not require optimisation.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 6 out of 13 changed files in this pull request and generated 3 comments.

Files not reviewed (7)
  • mkdocs.yml: Evaluated as low risk
  • fusion_bench/method/classification/continual_clip_finetune.py: Evaluated as low risk
  • fusion_bench/dataset/fer2013.py: Evaluated as low risk
  • fusion_bench/method/init.py: Evaluated as low risk
  • config/method/task_singular_vector/TaskSingularVectorMerging.yaml: Evaluated as low risk
  • fusion_bench/method/task_singular_vector/TSVM.py: Evaluated as low risk
  • fusion_bench/method/isotropic_merging/init.py: Evaluated as low risk
Comments suppressed due to low confidence (1)

fusion_bench/method/isotropic_merging/iso_utils.py:65

  • Replace print statements with proper logging.
print(f"Combining by avg {key}...")

@tanganke tanganke merged commit 2fa54a4 into main Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant