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

Merge arbitrary pytorch models #335

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

Merge arbitrary pytorch models #335

wants to merge 10 commits into from

Conversation

cg123
Copy link
Collaborator

@cg123 cg123 commented May 31, 2024

Done in a dumb way for now. Going to revisit this and make it more general at some point in the future.

To try:

merge_method: dare_ties
base_model: model_base.safetensors
models:
  - model: model_a.safetensors
    parameters:
      density: 0.6
      weight: 0.7
  - model: model_b.safetensors
    parameters:
      density: 0.4
      weight: 0.3
parameters:
  normalize: true
  int8_mask: true

mergekit-pytorch ./config.yaml ./merged_model_folder [--tensor-intersection] [--tensor-union] [--cuda]

Base automatically changed from tokenizer-again to main July 15, 2024 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant