A local, graph-first workbench for composing, validating, running, and evaluating merged language models.
English · Português (Brasil) · Français · 简体中文 · 日本語 · Español · Deutsch · 한국어
MergeCraft turns model merging into a visual engineering workflow. Instead of editing large YAML files by hand, you can arrange checkpoints, layer ranges, routers, validators, and outputs on a graph canvas inspired by node-based game-development tools. The generated configuration remains compatible with the underlying MergeKit workflow.
Project status: community preview. The application is useful today, but model merging can consume substantial RAM, VRAM, disk, and time. Always validate recipes and keep backups of source checkpoints.
- Graph-first composition for dense merges, layer stacking, and Mixture of Experts.
- Local by default: the UI runs on
127.0.0.1and model files stay on your machine unless you explicitly download a remote repository. - Engineering controls: dtype, tokenizer strategy, chat template, memory profiles, shard size, CUDA, lazy loading, and raw MergeKit arguments.
- Compatibility validation before execution.
- Integrated evaluation with AIME, LiveCodeBench, MMLU-Pro, GPQA Diamond, IFEval, GSM8K, HellaSwag, and custom GitHub benchmark adapters.
- English and Brazilian Portuguese UI with persistent language selection.
- Accessible onboarding with multilingual greetings and reduced-motion support.
- No glassmorphism: the application uses solid graphite surfaces, 15 px controls, 20 px cards, and no blur.
The setup assistant starts with a multilingual greeting, then lets users choose English or Brazilian Portuguese, detect local hardware, select a memory profile, and configure model/output directories. The sequence can be skipped and all settings remain editable later.
The workbench supports draggable nodes, visual connections, zoom, panning, auto-layout, fit-to-view, full screen, contextual inspection, and synchronized recipe fields.
Track active jobs, logs, CPU, RAM, VRAM, GPU utilization, progress, throughput, and recent outputs.
Load a local Transformers model or connect to supported remote-compatible backends, then adjust generation parameters in the same interface.
Create benchmark suites, preview commands, import public GitHub runners, and collect normalized output artifacts.
Compare memory profiles before launching a merge and apply the selected profile directly to the current recipe.
MergeCraft exposes the methods supported by this project, including:
- Linear, SLERP, NuSLERP, Multi-SLERP, and Karcher Mean
- Task Arithmetic, TIES, DARE Linear, and DARE TIES
- DELLA, DELLA Linear, Model Breadcrumbs, and Breadcrumbs TIES
- SCE, RAM, RAM+ Tensor Local, Model Stock, Nearswap, and Arcee Fusion
- Passthrough for layer composition
Define ranges using Python-style [start, end) intervals, reorder them visually, validate dimensions, and inspect the final layer map before running.
Configure a base model, expert checkpoints, routing descriptions, gate mode, experts per token, dtype, shard size, and output directory.
Built-in presets cover:
| Benchmark | Default adapter | Typical use |
|---|---|---|
| AIME 2024 / 2025 | Lighteval | Competition mathematics |
| LiveCodeBench | Official runner | Code generation |
| MMLU-Pro | Lighteval | Broad knowledge and reasoning |
| GPQA Diamond | Lighteval | Graduate-level science |
| IFEval | Lighteval | Instruction following |
| GSM8K | lm-evaluation-harness | Grade-school mathematics |
| HellaSwag | lm-evaluation-harness | Commonsense completion |
Public GitHub benchmark repositories can also be imported into workspace/benchmarks/sources. Custom commands support these placeholders:
{model} {task} {output} {samples} {batch}
Commands are tokenized and executed without shell=True, but imported code is still third-party code. Review it and use isolation when appropriate.
- Install 64-bit Python 3.11 or newer and Git.
- Extract the repository.
- Run:
START_MERGECRAFT.batThe launcher creates .venv, installs dependencies on first use, starts the server, and opens http://127.0.0.1:5000.
Manual commands:
install.bat
run.batchmod +x START_MERGECRAFT.sh install.sh run.sh install_benchmarks.sh
./START_MERGECRAFT.shManual setup:
./install.sh
./run.sh./install_benchmarks.sh core
./install_benchmarks.sh livecodebench
./install_benchmarks.sh allWindows equivalents:
install_benchmarks.bat core
install_benchmarks.bat livecodebench
install_benchmarks.bat allall may install large GPU-focused dependencies. Linux or WSL is recommended for the broadest benchmark compatibility.
git clone <your-fork-url>
cd MergeCraft
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements-dev.txt
python tests/smoke_test.py
python app.pyOpen http://127.0.0.1:5000.
Frontend syntax checks:
for file in static/js/*.js; do node --check "$file"; donePython checks:
python -m compileall app.py services tests
pytest -qSee CONTRIBUTING.md and docs/DEVELOPMENT.md for the full workflow.
MergeCraft/
├── app.py Flask API and local server
├── services/ recipe, model, chat, jobs, benchmarks
├── templates/index.html single-page application shell
├── static/
│ ├── css/ visual system and page styles
│ ├── js/ UI modules and localization
│ └── img/ local SVG assets
├── tests/ smoke and repository checks
├── examples/ example MergeKit recipes
├── docs/
│ ├── screenshots/ README gallery
│ └── i18n/ translated README files
├── workspace/ generated models and benchmark artifacts
└── state/ local job and recipe state
The application UI currently supports:
- English (
en) - Brazilian Portuguese (
pt-BR)
The selected language is stored in the browser. The setup assistant and top bar can change it at any time. Translation logic lives in static/js/i18n.js.
Documentation translations are community-maintained and may lag behind the English README. See docs/LOCALIZATION.md.
- Setup animation respects
prefers-reduced-motion. - Controls are keyboard reachable.
- The setup sequence can be skipped immediately.
- The interface avoids blurred backgrounds and low-contrast translucent cards.
- Text and controls use a consistent 15 px spacing rhythm.
MergeCraft is a local development tool, not a hardened multi-user service.
- The default server binds to
127.0.0.1. - Do not expose it directly to the internet.
trust_remote_codeis disabled by default.- A Hugging Face token is optional and should use the least privilege required.
- Imported benchmark repositories and generated code must be treated as untrusted.
- Run untrusted evaluations in a container, VM, or disposable host.
Report vulnerabilities privately using SECURITY.md.
Contributions are welcome in areas such as:
- graph interactions and layer visualization
- MergeKit method coverage
- architecture/tokenizer validation
- benchmark adapters
- accessibility and keyboard navigation
- English and Portuguese UI translations
- documentation translations
- Windows, Linux, macOS, and WSL testing
Before opening a pull request, read:
The local Flask application exposes endpoints for:
- system and GPU metrics
- model inspection and compatibility validation
- recipe preview/import
- VRAM estimation
- merge and tool jobs
- Hugging Face cache management
- chat runtime control and streaming
- benchmark catalog, import, preview, installation, execution, and results
The API is intended for the bundled UI and local automation. It is not currently versioned as a stable public API.
- A visually valid graph does not guarantee a high-quality model.
- Dense merges still require architecture-compatible checkpoints.
- Memory estimates are approximations.
- Benchmark adapters can change upstream.
- Windows support varies for GPU libraries and some benchmark runners.
- Very large checkpoints may require substantial temporary disk space.
Planned work includes richer graph ports, reusable graph templates, stronger architecture diffing, benchmark result comparison, resumable jobs, plugin manifests, and broader automated testing. See ROADMAP.md.
MergeCraft is released under the MIT License. Third-party tools and model repositories keep their own licenses; see THIRD_PARTY_NOTICES.md.
MergeCraft builds an interface around open model-engineering workflows and is designed to interoperate with MergeKit, Hugging Face tooling, evaluation harnesses, and community-maintained benchmark runners. Their names and trademarks belong to their respective owners.






