Skip to content
Back to skills

Mergekit

ASecurity

"Use mergekit to configure, validate, and operate language-model

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
developmentpythonrustbashbackend

Works with

  • cli

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill mergekit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mergekit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mergekit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-mergekit/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-mergekit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mergekit
description: "Use mergekit to configure, validate, and operate language-model
  merges, checkpoint surgery, tokenizer changes, MoE construction, LoRA
  extraction, and optional evolutionary searches."
disable-model-invocation: true
metadata:
  disco-role: operating
license: LGPL 3.0
---

# mergekit

Use this repo skill when a task names mergekit, `mergekit-yaml`, model merging,
TIES/DARE/DELLA/SLERP/task arithmetic, layer or tokenizer surgery, dense-to-MoE
conversion, LoRA extraction, or mergekit's optional evolutionary search.
mergekit 0.1.4 is a PyTorch/Transformers toolkit that writes a new checkpoint;
it does not train a model or replace downstream validation.

## Install and inspect first

Install the public package in an isolated Python 3.10+ environment. The base
package includes PyTorch, Transformers, safetensors, Accelerate, Pydantic,
Hugging Face Hub, PEFT, datasets, and related runtime dependencies. Add only
`[test]` for focused tests; `[evolve]` adds Ray/CMA/lm-eval/W&B and `[vllm]`
adds a pinned vLLM/evaluation path. Do not install every extra by default.

```bash
python -m pip install mergekit
python -c "import mergekit, torch, transformers; print(mergekit.__name__, torch.__version__, transformers.__version__)"
```

For a local checkout, an editable install is useful for development but the
runtime guidance in this skill uses installed console entry points. Before a
run, use the read-only diagnostics in
[sub-skills/model-io-and-architecture/scripts/mergekit_model_diagnostic.py](sub-skills/model-io-and-architecture/scripts/mergekit_model_diagnostic.py)
and [references/troubleshooting.md](references/troubleshooting.md).

## Choose the route

- [merge-configs](sub-skills/merge-configs/SKILL.md): standard YAML merges,
  method selection, slices/modules, parameters, dtype, tokenizer, chat
  templates, and `mergekit-yaml`.
- [model-io-and-architecture](sub-skills/model-io-and-architecture/SKILL.md):
  model references, architecture/key conversion, task planning, checkpoint IO,
  sharding, safe serialization, memory, CPU/CUDA, and multi-GPU decisions.
- [specialized-workflows](sub-skills/specialized-workflows/SKILL.md):
  `mergekit-pytorch`, `mergekit-moe`, `mergekit-multi`, LoRA extraction,
  `mergekit-tokensurgeon`, layer shuffle, and compatibility routes.
- [extension-and-evolution](sub-skills/extension-and-evolution/SKILL.md): custom
  merge methods/task graphs and bounded preflight for `mergekit-evolve`.

## Safe operating contract

1. Normalize model paths/Hub ids, revisions, output location, hardware, network,
   credentials, and overwrite policy before constructing a command.
2. Validate YAML or specialty config without downloads when possible. A parser
   pass is necessary but does not prove model files, tensor shapes, tokenizer,
   or architecture compatibility.
3. Choose a method whose model count/base-model requirements match the inputs;
   keep `models`, `slices`, and `modules` mutually exclusive at each level.
4. Treat `--trust-remote-code` and `--allow-crimes` as explicit risk decisions.
   Prefer safe `safetensors`, a new output directory, and a recorded command.
5. Select CPU/CUDA/device, lazy, shard, and write flags from actual RAM/VRAM and
   backend probes. Do not claim a written checkpoint is usable until its config,
   shards, tokenizer, and downstream load have been checked.

## Provenance and refresh

Read [references/repo-provenance.md](references/repo-provenance.md) before
refreshing this skill. It records the inspected mergekit commit, package
version, and evidence baseline; source or entry-point drift is a refresh signal.
The detailed method, CLI, tokenizer, architecture, and failure references are
owned by the nearest sub-skill and are intentionally not duplicated here.

Files in this skill

  • SKILL.md3.7 KB
  • references/repo-provenance.md1.6 KB
  • references/repo-routing-metadata.json331 B
  • references/troubleshooting.md2.3 KB
  • scripts/check_install.py1.8 KB
  • sub-skills/extension-and-evolution/SKILL.md2.6 KB
  • sub-skills/extension-and-evolution/references/custom-methods.md12 KB
  • sub-skills/extension-and-evolution/references/evolution.md10.6 KB
  • sub-skills/extension-and-evolution/references/troubleshooting.md8 KB
  • sub-skills/extension-and-evolution/scripts/check_extension_registration.py9.4 KB
  • sub-skills/merge-configs/SKILL.md6 KB
  • sub-skills/merge-configs/references/configuration.md7.7 KB
  • sub-skills/merge-configs/references/merge-methods.md9.2 KB
  • sub-skills/merge-configs/references/tokenizer-and-chat.md6.4 KB
  • sub-skills/merge-configs/references/troubleshooting.md11.5 KB
  • sub-skills/merge-configs/scripts/validate_merge_config.py3.2 KB
  • sub-skills/model-io-and-architecture/SKILL.md6.1 KB
  • sub-skills/model-io-and-architecture/references/api-reference.md11.2 KB
  • sub-skills/model-io-and-architecture/references/architecture-and-checkpoints.md9.3 KB
  • sub-skills/model-io-and-architecture/references/resource-and-backend-planning.md8.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.