model-merging

model-merging is a skill for Claude Code, Codex from ihatesea69/HieuNghi-AI-Skills. It costs 73 tokens per session (3,685 once invoked), scanned A, a copy of emerging-techniques-model-merging, MIT.

A method for combining multiple fine-tuned AI models into one model using mergekit, without training a new model from scratch.

In plain words
What is it for?
Use it to blend models, create specialised model variants, and experiment with merge methods such as SLERP, TIES, DARE, and task arithmetic.
Why use it?
It lets you combine specialised abilities, such as maths, coding, and conversation, without running another training process. This is useful for testing model variants while avoiding the cost and time of retraining.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to blend models, create specialised model variants, and experiment with merge methods such as SLERP, TIES, DARE, and task arithmetic.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ihatesea69/hieunghi-ai-skills/model-merging
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ihatesea69/HieuNghi-AI-Skills --skill model-merging
Clone the repo
git clone --depth 1 https://github.com/ihatesea69/HieuNghi-AI-Skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for model-merging

README.md
[![agentmods](https://agentmods.dev/badge/skills/ihatesea69/hieunghi-ai-skills/model-merging/github.svg)](https://agentmods.dev/skills/ihatesea69/hieunghi-ai-skills/model-merging)
Your own site
<a href="https://agentmods.dev/skills/ihatesea69/hieunghi-ai-skills/model-merging"><img src="https://agentmods.dev/badge/skills/ihatesea69/hieunghi-ai-skills/model-merging/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for model-merging

Your own site · 80×15
<a href="https://agentmods.dev/skills/ihatesea69/hieunghi-ai-skills/model-merging"><img src="https://agentmods.dev/badge/skills/ihatesea69/hieunghi-ai-skills/model-merging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,685 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.03685
Opus 5.5 $0.00029 $0.01474
Sonnet 5.5 $0.00015 $0.00737
Haiku 4.5 $0.00007 $0.00368

Measured 2mo ago against content hash 39bcead42b69, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

model-merging scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to emerging-techniques-model-merging — 11 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

airesearch_skills/19-emerging-techniques/model-merging/SKILL.md · 540 lines

How it starts

The opening of the file, as written. The whole thing — 540 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Model Merging: Combining Pre-trained Models

When to Use This Skill

Use Model Merging when you need to:

  • Combine capabilities from multiple fine-tuned models without retraining
  • Create specialized models by blending domain-specific expertise (math + coding + chat)
  • Improve performance beyond single models (often +5-10% on benchmarks)
  • Reduce training costs - no GPUs needed, merges run on CPU
  • Experiment rapidly - create new model variants in minutes, not days
  • Preserve multiple skills - merge without catastrophic forgetting

Success Stories: Marcoro14-7B-slerp (best on Open LLM Leaderboard 02/2024), many top HuggingFace models use merging

Tools: mergekit (Arcee AI), LazyMergekit, Model Soup

Installation

# Install mergekit
git clone https://github.com/arcee-ai/mergekit.git
cd mergekit
pip install -e .

# Or via pip
pip install mergekit

# Optional: Transformer library
pip install transformers torch

Quick Start

Simple Linear Merge

# config.yml - Merge two models with equal weights
merge_method: linear
models:
  - model: mistralai/Mistral-7B-v0.1
    parameters:
      weight: 0.5
  - model: teknium/OpenHermes-2.5-Mistral-7B
    parameters:
      weight: 0.5
dtype: bfloat16
# Run merge
mergekit-yaml config.yml ./merged-model --cuda

# Use merged model
python -m transformers.models.auto --model_name_or_path ./merged-model

SLERP Merge (Best for 2 Models)

# config.yml - Spherical interpolation
merge_method: slerp
slices:
  - sources:
      - model: mistralai/Mistral-7B-v0.1
        layer_range: [0, 32]
      - model: teknium/OpenHermes-2.5-Mistral-7B
        layer_range: [0, 32]
parameters:
  t: 0.5  # Interpolation factor (0=model1, 1=model2)
dtype: bfloat16

Core Concepts

1. Merge Methods

Linear (Model Soup)

  • Simple weighted average of parameters
  • Fast, works well for similar models
  • Can merge 2+ models
merged_weights = w1 * model1_weights + w2 * model2_weights + w3 * model3_weights
# where w1 + w2 + w3 = 1

Read the full file on GitHub · 540 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 540 lines · 73 tokens per session scan A 39bcead42b69

Subscribe to this mod's changes

model-merging is a skill published in the GitHub repository ihatesea69/HieuNghi-AI-Skills (3 stars, last pushed 8mo ago), licensed MIT. It adds 73 tokens to every session and 3,685 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to emerging-techniques-model-merging, differing in 11 lines, and is treated as a copy.

Related

model-merging compared with skills from other repositories

model-merging next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
model-mergingihatesea69/HieuNghi-AI-SkillsSkill38mo agoMITA73Claude Code, Codex
model-mergingOrchestra-Research/AI-Research-SKILLsSkill14k28d agoMITA73Claude Code
model-mergingOpenLAIR/dr-clawSkill1.2k2d agononeA73Claude Code, Codex
model-mergingliortesta/ClawdAgentSkill122mo agoApache-2.0A73Claude Code
model-mergingOpenLAIR/dr-claw-plugin-ccSkill55mo agononeA73Claude Code
long-contextOpenLAIR/dr-clawSkill1.2k2d agononeA74Claude Code, Codex
model-pruningOpenLAIR/dr-clawSkill1.2k2d agononeA70Claude Code, Codex