/vibe:merge-expertsfrom vibe
Guides model merging with MergeKit: SLERP, TIES, DARE, task arithmetic, model soups, and MoE construction. Use to combine fine-tuned LLMs without retraining.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in post-hoc model merging using MergeKit (arcee-ai/mergekit). You combine fine-tuned LLMs without additional training to recover or stack capabilities, build cheap MoE models, and run leaderboard-style mash-ups responsibly.
Model merging takes two or more checkpoints derived from a common ancestor and combines their weights into a single model — no gradients, no data, just tensor arithmetic. The major methods:
| Method | What it does |
|---|---|
| Linear | Weighted average of N models. Simplest baseline (also called "model soup"). |
| SLERP | Spherical linear interpolation between two models — preserves vector norm direction. |
| Task Arithmetic | Add/subtract "task vectors" (delta = finetuned - base) onto a base. |
| TIES | Trim small-magnitude deltas, elect sign by majority, then merge — handles destructive interference. |
| DARE | Drop random elements + rescale before merging — restores most quality post-pruning. |
| DARE-TIES | DARE pruning then TIES merging — current popular recipe. |
| Model Stock | Geometric weight calculation across many checkpoints (Apple's approach). |
| DELLA / DELLA-Linear | Magnitude-pruning + adaptive sampling refinement of TIES. |
| NuSLERP / Karcher Mean | Multi-model spherical extensions. |
| Passthrough | Stitch layer slices from different models (frankenmerges, MoE construction). |
mergekit-moe).Skip if: the constituent models don't share a base (merging a Llama with a Mistral is nonsense), you're solving a specific task and have data (just fine-tune), or you need verifiable behavior guarantees (merging is unpredictable).
# slerp.yml
slices:
- sources:
- model: NousResearch/Hermes-3-Llama-3.1-8B
layer_range: [0, 32]
- model: meta-llama/Llama-3.1-8B-Instruct
layer_range: [0, 32]
merge_method: slerp
base_model: meta-llama/Llama-3.1-8B-Instruct
parameters:
t:
- filter: self_attn
value: [0, 0.5, 0.3, 0.7, 1]
- filter: mlp
value: [1, 0.5, 0.7, 0.3, 0]
- value: 0.5
dtype: bfloat16
mergekit-yaml slerp.yml ./out/slerp-llama --cuda --lazy-unpickle
# dare-ties.yml
models:
- model: meta-llama/Llama-3.1-8B-Instruct
# base, no parameters needed
- model: NousResearch/Hermes-3-Llama-3.1-8B
parameters:
density: 0.5 # keep top 50% by magnitude
weight: 0.5
- model: cognitivecomputations/dolphin-2.9-llama3-8b
parameters:
density: 0.5
weight: 0.3
- model: meta-math/MetaMath-Llama-3-8B
parameters:
density: 0.5
weight: 0.4
merge_method: dare_ties
base_model: meta-llama/Llama-3.1-8B-Instruct
parameters:
int8_mask: true
dtype: bfloat16
# task-arithmetic.yml
models:
- model: meta-llama/Llama-3.1-8B-Instruct
parameters:
weight: 1.0
- model: meta-math/MetaMath-Llama-3-8B
parameters:
weight: 0.7 # add math task vector
- model: codellama/CodeLlama-7b-Python # subtract is allowed via negative weight
parameters:
weight: -0.3
merge_method: task_arithmetic
base_model: meta-llama/Llama-3.1-8B
dtype: bfloat16
# moe.yml
base_model: meta-llama/Llama-3.1-8B-Instruct
gate_mode: hidden # or "cheap_embed", "random"
dtype: bfloat16
experts:
- source_model: NousResearch/Hermes-3-Llama-3.1-8B
positive_prompts: ["assistant", "chat", "general"]
- source_model: meta-math/MetaMath-Llama-3-8B
positive_prompts: ["math", "calculate", "equation"]
- source_model: WizardLMTeam/WizardCoder-Python-7B-V1.0
positive_prompts: ["code", "function", "python"]
mergekit-moe moe.yml ./out/moe-llama --cuda
# franken.yml — duplicate-and-stitch a model to grow it
slices:
- sources:
- model: meta-llama/Llama-3.1-8B-Instruct
layer_range: [0, 24]
- sources:
- model: meta-llama/Llama-3.1-8B-Instruct
layer_range: [8, 32]
merge_method: passthrough
dtype: bfloat16
t value: 0.0 = pure model A, 1.0 = pure model B. Per-layer interpolation (attention vs MLP) often beats global t.density: 0.3-0.7. Lower = more aggressive pruning, more divergence from base. 0.5 is a safe default.density: 0.5-0.9. DARE is more forgiving than TIES because of magnitude preservation.base_model for TIES/DARE/Task Arithmetic — they need a reference to compute deltas.int8_mask: true for memory-tight merges; trades a tiny bit of precision for big RAM savings.--lazy-unpickle to avoid loading full models in RAM at once.gate_mode: hidden uses positive_prompts to compute gate weights from hidden states; cheap_embed is faster but lower quality; random for ablations.tokenizer: block to project vocabularies if needed.mergekit-moe builds the structure; usually you still need a brief SFT pass to align the router. Plain merge MoEs often underperform.dtype. Default may be fp32; explicitly set bfloat16 to halve disk size.Activate when the user wants to combine fine-tunes without training, builds an MoE from dense models, asks about MergeKit / SLERP / TIES / DARE / model soups, or wants to climb HF leaderboards via merging.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job