model-merging

Merge multiple pre-trained language models using linear interpolation, SLERP, TIES-Merging, and DARE.

11.5k|842|Updated Nov 3, 2025
One-click install
npx skills add https://github.com/Orchestra-Research/AI-Research-SKILLs --skill model-merging-orchestra-research
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-merging
Source: https://github.com/Orchestra-Research/AI-Research-SKILLs/tree/main/19-emerging-techniques/model-merging
Command: npx skills add https://github.com/Orchestra-Research/AI-Research-SKILLs --skill model-merging-orchestra-research

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables the combination of multiple fine-tuned AI models into a single, more capable model without the need for computationally expensive retraining.

Core Features & Use Cases

  • Capability Fusion: Blend expertise from different models (e.g., math + coding + chat) into one.
  • Cost & Time Savings: Merging is significantly faster and cheaper than fine-tuning.
  • Rapid Experimentation: Quickly create new model variants by combining existing ones.
  • Use Case: You have a model excellent at coding and another excellent at creative writing. Merge them to create a single model that can assist with both tasks effectively.

Quick Start

Use the model-merging skill to linearly merge the models 'mistralai/Mistral-7B-v0.1' and 'teknium/OpenHermes-2.5-Mistral-7B' with equal weights into a new model named './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 merge multiple pre-trained language models into a single model without retraining?

To merge pre-trained models without retraining, you combine multiple fine-tuned models into a single consolidated model using techniques like linear interpolation, SLERP, TIES-Merging, and DARE. This fuses specialized capabilities from different models efficiently.

Can I combine a coding model and a creative writing model to create a single capable model?

Yes, you can combine a coding model and a creative writing model to create a single capable model. Merging blends the expertise of different fine-tuned models into one, enabling the consolidated model to assist with both tasks effectively.

What is the best way to fuse fine-tuned models using mergekit?

The best way to fuse fine-tuned models using mergekit is to apply techniques like linear interpolation, SLERP, TIES-Merging, or DARE. This approach combines specialized capabilities from different models into a single model without requiring computationally expensive retraining.

Does model merging require retraining to combine specialized capabilities from different LLMs?

No, model merging does not require retraining to combine specialized capabilities from different LLMs. It facilitates the merging of multiple pre-trained language models into a single consolidated model, optimizing for efficiency and performance while saving significant time and costs.

What are the limitations of using model combination techniques like TIES-Merging and DARE?

Techniques like TIES-Merging and DARE facilitate merging multiple pre-trained language models into a single consolidated model without retraining, optimizing for efficiency. However, the resulting model fusion quality depends heavily on the compatibility of the base models being combined.

How do I linearly merge two Mistral models with equal weights?

You linearly merge two Mistral models with equal weights by combining the pre-trained models into a new consolidated model. This model combination fuses their specialized capabilities without retraining, optimizing for efficiency and performance.