model-merging

Merge pre-trained models using SLERP, TIES, and linear averaging.

Updated Apr 11, 2026
One-click install
npx skills add https://github.com/hhhi21g/HealthCenter --skill model-merging-hhhi21g
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-merging
Source: https://github.com/hhhi21g/HealthCenter/tree/main/.codex/skills/model-merging
Command: npx skills add https://github.com/hhhi21g/HealthCenter --skill model-merging-hhhi21g

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires mergekit, transformers, torch, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill helps address the challenge of combining the capabilities of multiple fine-tuned models into a single, specialized model, without the need for retraining. It enhances performance, reduces training costs, and enables rapid experimentation.

Core Features & Use Cases

  • Model Merging: Merge multiple fine-tuned models using techniques like SLERP, TIES-Merging, and Task Arithmetic.
  • Model Fusion: Combine models from different domains, such as math, coding, and chat, to create multi-capability models.
  • Use Case: Combine a math model with a code generation model to create a specialized model that can perform math calculations and code generation.

Quick Start

Merge two fine-tuned models, 'mistralai/Mistral-7B-v0.1' and 'teknium/OpenHermes-2.5-Mistral-7B', using a linear merge and save the output to 'merged-model'.

Frequently Asked Questions about model-merging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I combine multiple fine-tuned models without retraining?

Model merging combines multiple fine-tuned models into a single specialized model using techniques like SLERP, TIES-Merging, and Task Arithmetic to enhance capabilities without retraining.

What is the best way to merge transformers models for multi-domain capabilities?

Model fusion merges fine-tuned transformers from different domains, such as math and coding, to create a multi-capability model, reducing training costs and enabling rapid experimentation.

Does mergekit support linear averaging and SLERP for model fusion?

Yes, mergekit supports model fusion using linear averaging, SLERP, and TIES-Merging techniques to combine pre-trained models effectively.

Do I need torch and transformers to use mergekit for model merging?

Yes, model merging with mergekit requires torch and transformers to execute model operations and save the combined output effectively.

Can I merge a math model and a code generation model using mergekit?

Yes, model merging allows you to combine a math model with a code generation model to create a specialized model capable of performing both calculations and code generation.

Why use TIES-Merging instead of linear averaging for model merging?

TIES-Merging resolves parameter conflicts during model merging more effectively than linear averaging, ensuring that combined capabilities from distinct fine-tuned models are retained without interference.