Skip to content

About

MergeCraft | A intuitive and powerful Web UI for mergekit. Stop wrestling with YAML files and start crafting your custom LLMs with a seamless visual experience.

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MergeCraft

A local, graph-first workbench for composing, validating, running, and evaluating merged language models.

Python License Platforms UI

English · Português (Brasil) · Français · 简体中文 · 日本語 · Español · Deutsch · 한국어

MergeCraft welcome

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.

Why MergeCraft

  • Graph-first composition for dense merges, layer stacking, and Mixture of Experts.
  • Local by default: the UI runs on 127.0.0.1 and 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.

First-run setup

Initial setup

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.

Interface gallery

Graph Workbench

Graph Workbench

The workbench supports draggable nodes, visual connections, zoom, panning, auto-layout, fit-to-view, full screen, contextual inspection, and synchronized recipe fields.

Runtime dashboard

Runtime dashboard

Track active jobs, logs, CPU, RAM, VRAM, GPU utilization, progress, throughput, and recent outputs.

Model chat

Model chat

Load a local Transformers model or connect to supported remote-compatible backends, then adjust generation parameters in the same interface.

Benchmarks

Benchmarks

Create benchmark suites, preview commands, import public GitHub runners, and collect normalized output artifacts.

Memory planner

Memory planner

Compare memory profiles before launching a merge and apply the selected profile directly to the current recipe.

Supported workflows

Dense merging

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

Layer stacking / Frankenmerge

Define ranges using Python-style [start, end) intervals, reorder them visually, validate dimensions, and inspect the final layer map before running.

Mixture of Experts

Configure a base model, expert checkpoints, routing descriptions, gate mode, experts per token, dtype, shard size, and output directory.

Benchmarks

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.

Quick start

Windows

  1. Install 64-bit Python 3.11 or newer and Git.
  2. Extract the repository.
  3. Run:
START_MERGECRAFT.bat

The launcher creates .venv, installs dependencies on first use, starts the server, and opens http://127.0.0.1:5000.

Manual commands:

install.bat
run.bat

Linux, macOS, or WSL

chmod +x START_MERGECRAFT.sh install.sh run.sh install_benchmarks.sh
./START_MERGECRAFT.sh

Manual setup:

./install.sh
./run.sh

Benchmark adapters

./install_benchmarks.sh core
./install_benchmarks.sh livecodebench
./install_benchmarks.sh all

Windows equivalents:

install_benchmarks.bat core
install_benchmarks.bat livecodebench
install_benchmarks.bat all

all may install large GPU-focused dependencies. Linux or WSL is recommended for the broadest benchmark compatibility.

Development setup

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.py

Open http://127.0.0.1:5000.

Frontend syntax checks:

for file in static/js/*.js; do node --check "$file"; done

Python checks:

python -m compileall app.py services tests
pytest -q

See CONTRIBUTING.md and docs/DEVELOPMENT.md for the full workflow.

Repository layout

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

Localization

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.

Accessibility and motion

  • 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.

Security model

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_code is 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.

Contributing

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:

API overview

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.

Known limitations

  • 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.

Roadmap

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.

License

MergeCraft is released under the MIT License. Third-party tools and model repositories keep their own licenses; see THIRD_PARTY_NOTICES.md.

Acknowledgements

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.

About

MergeCraft | A intuitive and powerful Web UI for mergekit. Stop wrestling with YAML files and start crafting your custom LLMs with a seamless visual experience.

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages