Merlin is a vLLM fork tuned for NVIDIA Ampere and Ada GPUs. It runs seven open models at their full 262K context (Nemotron 3.5 Super VL at its 1M context) on four RTX 3090s, plus Hy4 Flash (new in 3.0.2.2, on four cards; eight untested), Inkling 2 Mini (experimental, on one, two or four cards) and Qwen4-35B-A3B (new in 3.0.2.4, tested on two and four RTX 3090s, up to its native 1M context), behind one OpenAI-compatible API with vision, reasoning and tool calling. One install, one command with pre-tuned profiles for your detected GPUs.
git clone https://github.com/halt95/merlin-engine.git && cd merlin-engine && ./setup.shThe setup script checks your GPUs, suggests a model, shows each download and its size before it starts, then
launches the server on 127.0.0.1 (port 8000; 8100 for the 27B and ThinkingCap). Nothing is installed system-wide. Run it again to restart the server.
The How to serve guide covers the rest: Merlin's commands and flags, talking to the server, serving on your network, picking GPUs and switching models.
Manual install
git clone https://github.com/halt95/merlin-engine.git && cd merlin-engine
curl -LO https://github.com/halt95/merlin-engine/releases/download/merlin-v3.0.2.4/vllm-0.33.0+merlin3.0.2.4.a322f0ac20-cp313-cp313-linux_x86_64.whl
MERLIN_WHEEL="$PWD/vllm-0.33.0+merlin3.0.2.4.a322f0ac20-cp313-cp313-linux_x86_64.whl" bash release/install-env.sh ./venv
venv/bin/hf download halt95/Qwen3.8-Flash-Next-W4A16-Merlin --revision cec53e9f90e5995b81691604ec0b32191debf797 --local-dir ~/models/flash-next
(cd ~/models/flash-next && sha256sum -c "$OLDPWD/models/flash-next/checkpoint.sha256")
venv/bin/merlin serve ~/models/flash-nextThe wheel (231,564,610 bytes, 221 MiB) is checked against release/merlin-wheel.sha256, and the checkpoint is pinned to the revision its
checksum list names (the first line of models/flash-next/checkpoint.sha256). Without MERLIN_WHEEL the installer builds the engine
from source, which takes about 1.5 hours on 8 cores. The first start compiles kernels; the server is ready when
merlin: Ready: ... prints.
| Model | Type | GPUs | KV pool, tokens | Decode at 262K | 8 agents, thinking on | 8 agents, thinking off | GSM8K-200, thinking on | GSM8K-200, thinking off |
|---|---|---|---|---|---|---|---|---|
| Flash-Next | 125B MoE | 4 | 924,993 | 204 tok/s | 606 tok/s ‡ | 641 tok/s † | 197 | 198 |
| Swift1.5 | Flash-Next fine-tune | 4 | 924,993 | 182 tok/s | 688 tok/s | 661 tok/s | 199 | 198 |
| Swift1.5-Huihui | Swift1.5, abliterated | 4 | 924,993 | 203 tok/s | 719 tok/s | 668 tok/s † | 198 | 197 |
| Qwen3.8-27B | 27B dense | 1 / 2 / 4 | 271,506 / 826,689 / 2,012,105 | 75 † / 160 † / 267 tok/s | – / 740 † / 1,012 tok/s | – / 677 † / 857 tok/s | 198 † (4 GPUs) | 194 † / 194 † / 195 |
| ThinkingCap | 27B fine-tune | 2 / 4 | 826,689 / 2,012,105 | 163 / 274 tok/s | 731 † / 997 tok/s | 663 † / 875 tok/s | 197 (4 GPUs) | 195 † / 194 |
| Nemotron 3.5 Super VL † | 120B MoE, 1M context | 4 | 1,856,367 | 101 tok/s | 444 tok/s | 417 tok/s | 196 | 194 |
| Ornith 1.5 | 122B MoE | 4 | 894,618 | 106 tok/s | 522 tok/s | 481 tok/s | 195 | 192 |
| Hy4 Flash | MoE | 4 | 609,398 | 109 tok/s | 254 tok/s | 248 tok/s | – | 197 |
| Qwen4-35B-A3B (page; pack) | MoE, effort high by default (60 rows at 1 / 2 / 3 / 4 / 8 cards; the 4 x and 2 x RTX 3090 rows are tested, the rest untested) | 2 / 4 | 1,564,859 / 4,306,651 (both read at boot, one run each) | at 128K, not 262K: 161.4 / 180.6 tok/s (262K not measured; MTP on, one run) | – / 396 tok/s (8 streams at 4K, not 16K conversations; one run) | – | – / 294 of 300 (GSM8K-300, paired; BF16 reference 293) | – |
| Inkling 2 Mini (experimental) | MoE, always reasons | 1 / 2 / 4 | 164,666 / 1,146,340 / 2,971,967 (3.0.2.4 pins; the 3.0.2.3 cards read 138,982 / 1,052,074 / 2,747,953) | – / 137 / 193 tok/s | – / 838 / 1,153 tok/s | – | 193 / 194 / 194 | – |
Merlin 3.0.2.4 (each cell from the release named below) · 4 x RTX 3090 at 220 W, P2P on (aikitoria's driver) and Zagitta's gpu-unlock · bold: measured on 3.0.2.2, 2026-11-21, or on 3.0.2.3, 2026-11-27 (Flash-Next: decode at 262K and 8 agents, thinking on; Hy4 Flash and Inkling 2 Mini: every figure shown, from the 3.0.2.3 bench cards); the other cells are the 3.0.2.1 figures (2026-11-10 to 2026-11-12), carried forward after a spot check on 3.0.2.2 (each lane's 4K decode and 100K prefill inside its run-to-run band; not re-measured on 3.0.2.3); the Qwen3.8-27B four-card thinking-on GSM8K-200 is carried too. Hy4 Flash thinking-on GSM8K-200 was not run; Inkling 2 Mini always reasons, so its thinking-off cells are –, a single card serves one request, so its one-card 8-agent cell is –, and there is no 262K context on one card. Qwen4-35B-A3B was measured on 3.0.2.4, in single runs at effort high on 4 x RTX 3090 (TP2xPP2) and 2 x RTX 3090 (TP2): its decode cell is at 128K (262K was not measured), its 8-agent cell is 8 streams at 4K (not 16K conversations), its quality cell is GSM8K-300 paired against the BF16 model (parity, not lossless; 12.3 % more completion tokens), and its thinking-off cells are not measured. Inkling 2 Mini's pools are the 3.0.2.4 pins; its other cells are the 3.0.2.3 bench cards.
Decode: one stream, thinking on, full 262K context · 8 agents: total throughput on 16K conversations · GSM8K-200: correct out of 200.
Build of each cell, ranges and method: the 3.0.2.4 bench cards, the 3.0.2.3 bench cards, the 3.0.2.2 bench cards and the 3.0.2.1 bench cards; † carried 3.0.2.1 cells from that release's previous build (ThinkingCap's two-card 262K decode excepted), see cards.
‡ One run, below the 624-697 tok/s that 3.0.2.1's repeat runs gave on the same row; it was not repeated, so the difference is not resolved.
Hy4 Flash (new in 3.0.2.2, checkpoint) is a tools/merlin/launch.py lane on four RTX 3090s (in testing: full-model runs passed,
kernel parity qualification pending), with untested rows for eight RTX 3090s and for four or eight 48 GB Ada cards (L40S,
RTX 6000 Ada, modified RTX 4090 48 GB), started with
./setup.sh --model hy4flash, which downloads and verifies its pack (--engram bf16 for the BF16 Engram pack;
see Known limits and the model page). Measured on 3.0.2.3 (thinking on at its default effort, K=3):
112 / 103 / 109 tok/s at 4K / 130K / 262K, a 609,398-token KV pool (2.32× at 262K), 1,478 tok/s cold prefill at 262K,
254 tok/s for 8 agents, GSM8K-200 197 (thinking off); bench card. 3.0.2.4 re-measured the four-card row against the previous row in one session (one run each, effort high; the driver differs from the figures above, so the absolute numbers are not comparable with them): one stream 97.7 to 99.9 tok/s (+2.3 %), 8 agents 182.2 to 225.8 tok/s (+23.9 %), first token for a 4,096-token prompt 2.41 s to 1.92 s and for a 32,768-token prompt 16.9 s to 14.5 s, with identical tokens, the 524 MiB free-memory floor held and the pool unchanged at 609,398 tokens; 3.0.2.4 bench card.
Inkling 2 Mini (model) has experimental lanes on one, two and
four RTX 3090 (inkling2-mini-tp1-spec-3090, inkling2-mini-tp2-3090, inkling2-mini-tp4-3090), installed and served by
./setup.sh --model inkling2-mini or merlin serve inkling2-mini, which pick the row by card count; see its
README. Measured on 3.0.2.3 (thinking on; the model
always reasons, so there is no thinking-off row):
- One card: a KV pool of 164,666 tokens since 3.0.2.4 (138,982 on the 3.0.2.3 card; no 262K context on one card), 8 MP images served, 198 tok/s decode at 4K and 144 tok/s at a 136K prompt; bench card.
- Two cards (TP2): a 1,052,074-token KV pool at the 12.1e9 B pin (1,146,340 at the 1M default since 3.0.2.4; three 262K and six 131K sessions held at once), 294 tok/s decode at 4K and 205 tok/s at a 136K prompt, 137 tok/s at 262K, GSM8K-200 194/200; bench card.
- Four cards (TP4): a 2,747,953-token KV pool at the 16e9 B pin (2,971,967 at the 1M default and chunk 4,096 since 3.0.2.4; three 262K and six 131K sessions held at once), 367 tok/s decode at 4K and 283 tok/s at a 136K prompt, 193 tok/s at 262K, GSM8K-200 194/200; bench card.
Both multi-card rows serve the native 1,048,576-token context by default since 3.0.2.4 (one 1M request on two cards, two on four, at
the same pins; the figures above are the 3.0.2.3 cards at 262K context); MAXLEN=262144 serves 262,144 tokens (an optional override; the KV host tier
no longer needs it, the 262K pool is the same with the tier on). On two and four RTX 3090 the PCIe all-reduce is on by default (MERLIN_INKLING2_PCIE_IPC_AR=0 opts out); the pool and sessions-held figures above were measured before it became the default, the decode, agents and prefill figures with it on.
Qwen4-35B-A3B (new in 3.0.2.4, pack, page, model README) has its own profiles (fn-qwen4-35b-*):
60 rows cover every supported GPU class at 1, 2, 3, 4 and 8 cards where the engine fit allows (no single 20 or 24 GB card).
Only 4 x RTX 3090 (fn-qwen4-35b-quad-3090, TP2xPP2) and 2 x RTX 3090 (fn-qwen4-35b-2x3090, TP2) are tested; the rest are untested,
and the auto-pick prefers the tested rows (a 3-card host with P2P gets the 2-card row, an 8-card host with P2P the 4-card row; --profile picks a 3-card PP3 or 8-card row).
Both tested rows need working P2P (nvidia-smi topo -p2p r): two RTX 3090 without P2P have no Qwen4 row, and four RTX 3090 without P2P use the untested fn-qwen4-35b-quad-3090-nop2p row (--profile fn-qwen4-35b-quad-3090-nop2p-pp4 is TP1xPP4).
Tensor parallel above 2 is refused for Qwen4 (wrong output was found on the reference host); the tested four-card row is TP2 x PP2. Every row serves images up to 8 MP and the native 1M context where it fits.
Reasoning effort is high by default (levels xhigh, high, low, off; reasoning_effort: "off" or thinking: 0 turns thinking off). Single runs, effort high, MTP on:
192.6 tok/s at 4K on 4 x RTX 3090 and 178.3 on 2 x (MTP off 127.9 on 4 x), 180.6 / 161.4 tok/s at 128K, 396 tok/s for 8 streams on 4 x, 1M-token needle first token in 117.5 s on 4 x (219.2 s on 2 x; 262K 40.7 s),
GSM8K-300 294 against 293 for the BF16 model (parity, not lossless; the pack used 12.3 % more completion tokens). The pack is one Hugging Face repository,
halt95/Qwen4-35B-A3B-W4A16-Merlin, pinned by commit: the FP8 n-gram table on main (42.3 GiB) and the BF16 table on the ple-bf16 branch (61.4 GiB).
DFlash2 is an opt-in drafter on the two tested rows (fn-qwen4-35b-quad-3090 and fn-qwen4-35b-2x3090): RadixArk's block-8 drafter (RadixArk/Qwen4-35B-A3B-Dflash2, K=7). ./setup.sh --model qwen4-35b-a3b --spec dflash2 (or merlin pull qwen4-35b-a3b --spec dflash2) fetches the drafter at its pinned revision into qwen4-35b-a3b-dflash2 beside the checkpoint folder, and merlin serve qwen4-35b-a3b <checkpoint folder> --spec dflash2 starts it; every other Qwen4 row refuses it. MTP (K=3) stays the default. On two RTX 3090 (one run, 2026-12-04, one stream, 4K, reasoning on) DFlash2 K=7 decodes 225.0 tok/s against 177.6 tok/s for MTP K=3 on the same tree (+26.7 %), with output identical to MTP at temperature 0 (3 of 3 prompts, 256 tokens) and 1.92 tokens accepted per draft against 1.27 for MTP on mixed reasoning text (the publisher's 4.4 is measured on code). On four RTX 3090 (TP2xPP2) it works (boot, a smoke with an image); its speed gain on four cards is not established (single-stream decode on that row is too noisy to call a gain), and output identity against MTP on four cards is not measured. Use --spec dflash2 on two RTX 3090 (+26.7 %, steady). Quality and memory on two RTX 3090 (one run, 2026-12-04, effort high, greedy): paired GSM8K-100 gave 99 of 100 for MTP and 98 of 100 for DFlash2 (they differ on one question, so the two are equal); an 8 MP image smoke passed on DFlash2 with the GPU free memory never below 1,904 MiB (bar 524 MiB); the KV pin 9,592,158,720 B gives a 1,602,540-token pool (MTP: 1,564,859). See the Qwen4 page.
--swarm is accepted on fn-qwen4-35b-2x3090 (16 seats, default cap 8, with the KV RAM cache at 12 GiB per rank or more = 24g on two ranks; tested (one run on 2 x RTX 3090: 16 seats for 12 rounds plus a concurrent 524,288-token session, 1,137 requests, 0 failures, GPU memory floor at least 2.0 GiB)) and on the two four-card RTX 3090 rows (fn-qwen4-35b-quad-3090, fn-qwen4-35b-quad-3090-nop2p): 24 seats (default cap 8) with the KV RAM cache at 12 GiB per rank or more (48g on four ranks), tested (one run on 4 x RTX 3090: 24 seats for 12 rounds plus a concurrent 1M-token session, 1,724 requests, 0 failures, GPU memory floor at least 1.3 GiB) on fn-qwen4-35b-quad-3090, untested ⚫ (expected to work; the same swarm settings passed on the P2P quad row) on fn-qwen4-35b-quad-3090-nop2p; every other Qwen4 row refuses it.
Not in 3.0.2.4: any Qwen4 row at tensor parallel 4.
Check P2P first: nvidia-smi topo -p2p r must show OK between the cards for both tested rows. Then, from the merlin-v3.0.2.4 checkout, either flow:
./setup.sh --model qwen4-35b-a3b # 1. combined: install the engine, download, verify and serve (--ple bf16 for the BF16 n-gram table)
# 2. step by step, after the engine is installed (see Manual install under Quick start)
venv/bin/merlin pull qwen4-35b-a3b --models-dir "$HOME/models/qwen4-35b-a3b" # download, verify, write the verification stamp
venv/bin/merlin serve qwen4-35b-a3b "$HOME/models/qwen4-35b-a3b" # picks the row from the cards
# the BF16 n-gram table: --ple bf16 on pull (and verify); serve takes PLE_TABLE=bf16, not --ple
venv/bin/merlin pull qwen4-35b-a3b --ple bf16 --models-dir "$HOME/models/qwen4-35b-a3b-bf16"
PLE_TABLE=bf16 venv/bin/merlin serve qwen4-35b-a3b "$HOME/models/qwen4-35b-a3b-bf16"--ple bf16 also defaults to ~/models/qwen4-35b-a3b; give it its own --models-dir to keep both packs. merlin pull verifies the pack and writes the stamp, so a pulled folder needs no merlin verify. For a local copy that did not come from merlin pull, run venv/bin/merlin verify "$HOME/models/qwen4-35b-a3b" --checkpoint qwen4-35b-a3b once (add --ple bf16 for the BF16 pack): it rehashes against the shipped list and silences the "checkpoint shards are unverified" note that every serve prints until a stamp exists.
See the CHANGELOG flags table for documented release options. Dated results below describe their named releases; they do not qualify newer source changes.
- More context in the same VRAM. Embedding tables live in host RAM, so the cards hold more KV cache. Flash-Next keeps three full 262K conversations in memory on four 3090s.
- FP8 KV cache on Ampere, with our own kernels for cards that lack native FP8.
- Faster prefill. Up to 33 % faster at 262K in Merlin 3.0.1 than in 3.0.0, with the optional gpu-unlock host upgrade; 3.0.2 against 3.0.1: unchanged within run-to-run spread, except Nemotron 3.5 Super VL +8 %; 3.0.2.1 against 3.0.2: unchanged within run-to-run spread.
- On vLLM 0.33. torch 2.14, Triton 3.8 and FlashInfer 0.7.2.post1, with the sm_86 FP8 patches carried over.
- Built for agents. Follow-up turns resume from cache, even when more conversations are open than the cache can hold.
- KV RAM cache (experimental).
--kv-ram-cache 24gkeeps conversation prefixes the GPU evicts in host RAM and restores them with identical output: on Flash-Next a 262K restore takes 1.2–1.4 s instead of about 45 s to recompute (Merlin 3.0.1, vLLM 0.32). Since 3.0.2.1 it keeps its speed once full (details). Since 3.0.2.2 host eviction gives up duplicate copies first and keeps the waiting queue's sessions until last, with 8 assembling units and 64 copy credits; the restore-start and seat-hold switches stay off (details). - Swarm mode (experimental).
--swarmraises the session cap on four RTX 3090s, from 8 to 24 on the Flash-Next family and from 24 to 32 on the 27B family, with a 48 GB KV RAM cache. Tested on Flash-Next and the 27B with P2P (Merlin 3.0.1, vLLM 0.32). Two more rows take it in 3.0.2.4, both experimental: Hy4 Flash on four RTX 3090s (16 sessions; the 24-seat arm failed at admission, the admission fix is in this release, 16 seats are tested and 24 stay untested) and Inkling 2 Mini on two and four RTX 3090s (24 sessions; tested on four cards, where the 24-seat run passed; untested on two, where it stalled). - Flash-Next: shared prompts reused, long prompts take turns. A first turn behind a shared system prompt resumes from a cached checkpoint (FGPC), and a long cold prompt holds running sessions back less (prefill runs); both on since 3.0.2.1 (details).
- Flash-Next, Swift1.5 and Swift1.5-Huihui on four 20 GB cards (untested ⚫). One 262K session on RTX 3080 20GB,
RTX A4500 or RTX 4000 Ada cards, with static cold-expert offload (
MERLIN_COLD_EXPERTS); emulated for Flash-Next only. - PLE table on NVMe (experimental).
--ple-store diskreads the Flash-Next family's embedding table from NVMe instead of host RAM, freeing about 47.7 GiB for about 2 % slower decode once cached;ramstays the default. It is also experimental for the Qwen4-35B-A3B FP8 table (measured on 2 x RTX 3090: frees ~19 GiB, 177.5 vs 177.9 tok/s); the BF16 table also works from disk (opt-in) at about 11 % slower decode on a busy page cache (155.1 vs 173.9 tok/s). Costs and limits. - DFlash2 for the Flash-Next family.
--spec dflash2on four RTX 3090s with P2P decodes 5–18 % faster than MTP (Merlin 3.0.1, vLLM 0.32), which stays the default (Qwen4-35B-A3B: opt-in with--spec dflash2on its two tested rows, +26.7 % decode on two RTX 3090 in one run). - Vision, reasoning and tool calling on every model (Hy4 Flash: text only, no vision), with images up to 8 MP (Nemotron: its native ~3.4 MP; the 27B
on one card: 4 MP; not re-measured on Pillow 13). Quoted tool calls stay text (
MERLIN_QWEN3_LITERAL_SPANS). Since 3.0.2.2, forced and strict calls on the Qwen tool parser open with the model's tool-call token, and content starts at its first visible character after the reasoning (details). A Qwen3 call opens only at a line start and never inside a code fence or an inline code span. Strict and free-form tool-call grammars bound each string from a length table and one whitespace run per gap (VLLM_MERLIN_STRICT_LENGTH_TABLE,VLLM_MERLIN_STRICT_WS_CAP), and a slow-fill guard ends a request whose mask fills keep taking long (VLLM_MERLIN_STRICT_STALL_GUARD; details and limits). - The KV pool in
/v1/models.kv_cache_capacity_tokensreports the engine's KV pool in tokens, and a request the KV cache cannot hold gets HTTP 400 with the cause. - Low idle power. Four idle 3090s draw 110 W (Merlin 3.0.0, vLLM 0.32).
- One command.
merlin serve <model>picks the best layout for the GPUs it finds. - A Ready line and a bug-report file.
merlin serveprints the URL, model, context length and key location once the server answers (MERLIN_READY_BANNER=0turns it off);merlin doctor --report [FILE] [--log FILE] [--lines N]writes one redacted file for bug reports; client settings for OpenAI-compatible and Anthropic-compatible clients such as opencode, Cline/Roo, Aider and Continue.
What Merlin adds to vLLM
More context in the same VRAM
- Token embedding tables in host RAM. The token embedding tables of the main model and its MTP drafter are read from pinned host memory, on by default for the Flash-Next and Qwen3.8-27B families (about 1.2 GiB per card freed on 27B at TP=2), with no speed loss.
- N-gram embedding table in host RAM. Flash-Next's n-gram embedding table (about 47.7 GiB) lives in system
memory, one copy shared by every GPU, so the VRAM goes to KV cache: a 924,993-token pool on four RTX 3090s, three
full 262K sessions resident at once. With
--ple-store disk(experimental) it is read from NVMe instead. - FP8 KV cache on Ampere. An sm_86 FP8 QSA attention reader for Flash-Next, and an sm_86 FP8 small-query verify tile for 27B, so every checkpoint keeps an FP8 KV cache on cards with no native FP8.
- QSA indexer scratch reserve (opt-in).
VLLM_MERLIN_QSA_SCRATCH=reserve|workspacelets the KV sizing see Flash-Next's QSA indexer scratch;offstays the default, and KV capacity figures for the two modes have not been measured for 3.0.2. - Static cold-expert offload.
MERLIN_COLD_EXPERTS=<profile.json>keeps each named MoE layer's hottest experts on the GPU and reads the rest from pinned host RAM; output is identical. On by default on the 4 × 20 GB Flash-Next rows;MERLIN_COLD_EXPERTS_LAYERS,MERLIN_COLD_EXPERTS_HOT_FRACandMERLIN_COLD_EXPERTS=0(flags). - Leaner boots.
MERLIN_REPACK_RELEASE(on) frees the allocator's cache after each weight repack, communicators are created before the KV is sized, and--cpu-offload-paramscan name one layer (layers.3.mlp.experts).
Faster decode and prefill
- RecoverSSM on every checkpoint. RecoverSSM recovers the GDN and Mamba-2 state for MTP speculative decoding, on by default for Flash-Next, Swift1.5, Swift1.5-Huihui, Qwen3.8-27B, ThinkingCap, Nemotron 3.5 Super VL and Ornith 1.5. The Flash-Next family drafts over the full vocabulary with a BF16 draft head.
- Faster prefill, with the optional gpu-unlock host upgrade. Cold prefill of a full 262K prompt on four RTX 3090s, Merlin 3.0.1 against 3.0.0: +17 % on Flash-Next, +32 % on Qwen3.8-27B and ThinkingCap, +33 % on Nemotron 3.5 Super VL and Ornith 1.5 (measured on vLLM 0.32). A stock-versus-unlocked A/B ties the gain to the unlocked host on Flash-Next and the 27B; Super VL and Ornith 1.5 had no A/B. Merlin 3.0.2 on vLLM 0.33, against 3.0.1: unchanged within run-to-run spread, except Nemotron 3.5 Super VL +8 %.
- Changes to pipeline-parallel decode with RecoverSSM. Commit kernels are warmed on every pipeline rank at boot, and the
deferred commit reuses a persistent snapshot ring instead of allocating snapshot storage at every step; output is unchanged. Optional switches,
both off by default:
VLLM_RECOVERSSM_PP_SPLIT_RECV=1andVLLM_MERLIN_PP_DECODE_BALANCE=1. Effect on decode: not yet measured; the A/B has not been run for 3.0.2. - Decode-first step budget (experimental, off by default).
VLLM_MERLIN_DECODE_FIRST=1keeps running sessions decoding while a long cold prefill runs, instead of stalling until it ends. Temperature-0 output is not proven identical with it on, so it stays off. On Flash-Next it needsPREFILL_RUNS=0. - DFlash2 drafter for the Flash-Next family.
--spec dflash2runs incoai's block-diffusion drafter on four RTX 3090s with P2P: decode 5–18 % faster than MTP (Merlin 3.0.1, vLLM 0.32), and the server holds three 262K sessions instead of six 131K ones. MTP stays the default (on Qwen4-35B-A3B DFlash2 is an opt-in with--spec dflash2on its two tested rows; see its page). Since 3.0.2.2 it takes its own prefill-runs tick costs at chunk 2048 (cold prompts reach their first token about 18–19 % later;VLLM_MERLIN_PREFILL_RUNS_TICK_COSTS, details). - Rejection-sampler residual repair on by default.
VLLM_SPEC_STABLE_RESIDUALis 1 since 3.0.2.2 (0restores the 3.0.2.1 residual), and the resample insert kernel launches with one warp, which leaves sampled tokens unchanged (details). - All-reduce tuned for PCIe P2P. Flash-Next on P2P hosts uses a PCIe IPC all-reduce for decode-sized messages and NCCL's Simple protocol for prefill.
- Qwen3.8-27B on two RTX 3090s with P2P sets six decode defaults (
NCCL_PROTO=Simple, the PCIe-IPC all-reduce,VLLM_DRAFT_BOUNDED_PLAN,VLLM_GDN_DECODE_FASTPATH,VLLM_GDN_SHARED_ALIGN_INDEX,VLLM_TARGET_SEQ_LENS_ASYNC; results). On four RTX 3090s with P2P (27b-tp4-3090) the last four are on since 3.0.2.2 (results). - Marlin W8A16 for Flash-Next's INT8 GDN projections.
- Bench tools.
benchmarks/suitereruns the bench-card ladder and needle panel against your server;benchmarks/agenticmeasures several agents sharing one server. - Hy4 Flash decode speed-ups (launch.py lane). The hy4flash rows turn on fused indexer and sliding-window
kernels, DFly2 draft graphs and, on four cards, the latent all-reduce on the PCIe IPC path and the adaptive
cold-expert hot set; DFly2 drafts 3 tokens. Each is bit-identical to the stock path in serial compares. Opt-in:
the fused router (as accurate as stock, not bit-identical) and sparse decode (ieee and split modes under
qualification).
NAME=0turns one off:MERLIN_HY4_INDEXER_FAST,MERLIN_HY4_INDEXER_SELECT,MERLIN_HY4_SWA_WINDOW_REUSE,MERLIN_HY4_DFLY_GRAPHS,MERLIN_LATENT_IPCandMERLIN_COLD_EXPERTS_ADAPTIVE;DFLY=0turns the DFly2 drafter off (flags). - Hy4 Flash: sixteen decode switches on by default (3.0.2.3). The four-card row (
hy4flash-quad-3090) turns on sixteen decode switches by default, among themMERLIN_HY4_ENGRAM_EARLY,MERLIN_HY4_BF16_GEMMandMERLIN_HY4_PAIR_REDUCE; exportNAME=0to turn one off. The router/down overlap stays opt-in (MERLIN_HY4_ROUTER_DOWN_OVERLAP=1): a four-card A/B measured no gain (the list and the A/B). - Hy4 Flash on four RTX 3090: faster decode and prefill (3.0.2.4). The
hy4flash-quad-3090row measured, against the previous row on the same hardware, bitwise-identical tokens, 8 concurrent agents +23.9 %, a 4K prompt's time to first token 20.4 % faster, 32K 14.3 % faster and one stream +2.3 % (floor held; details). The single-push DCP-IPC combine is on in the DCP-IPC rows: its quality gate passed, the figures above were measured with it on, and its own speed A/B against the old combine read a loss (decode time per token at 4K up 5.8 %, draft acceptance down 8.3 %, one run). The named-only rowshy4flash-quad-3090-nop2pandhy4flash-quad-3090-seats16(and the Inkling no-P2P and 16-seat rows) are untested; the two Hy4 rows take the quad row's long-prefill workspace. - Hy4 Flash with FP8 or BF16 Engram tables. Two packs: FP8 Engram tables (the default, ~60 GiB pinned in host
RAM) and BF16 Engram tables (~118 GiB pinned, ~198 GiB of host RAM available before the start; the BF16 Engram pack is
untested on hardware).
./setup.sh --model hy4flash --engram bf16plans and checks the host for the BF16 pack; ontools/merlin/launch.pyENGRAM=bf16serves it, and the launcher refuses a pack whoseconfig.jsonsays otherwise (flags).
Built for agents
- Follow-ups resume from cache. Prefix-cache retention keeps each conversation's prefix on a 64-token grid instead of the 4,096-token block, so the next turn starts from cache instead of re-reading the whole conversation (Flash-Next v2.5.1: median follow-up time to first token 0.96 s, was 1.56 s).
- Cache-thrash protection, on by default. Cost-aware admission and session-coherent yields keep follow-ups cached when more sessions are open than the pool holds: under 8 × 131K and 12 × 80K oversubscription, follow-up turns reused 74.7 % and 82.1 % of their prompt from cache (Merlin 3.0.0, vLLM 0.32).
- Shared-prefix checkpoints on every Flash-Next-family and 27B-family launcher. A first turn behind a shared prompt
of at least one attention block resumes from the cached junction (FGPC; off:
-- --no-enable-mamba-shared-prefix-checkpoint). - Long prompts in slices and runs (Flash-Next family). 512-token slices (
LPT,--long-prefill-token-threshold), and prefill runs between decode-only windows while sessions decode (PREFILL_RUNS=0/VLLM_MERLIN_PREFILL_RUNS; costs). - KV RAM cache (experimental).
--kv-ram-cache SIZEkeeps prefixes the GPU evicts in host RAM and restores them instead of recomputing them, with exactly the same output as a GPU cache hit. Flash-Next family with MTP and Qwen3.8-27B; off by default. 3.0.2.1 fixes. - Longer context (experimental).
--context 512kserves past 262K with YaRN built from the checkpoint's config, and refuses a size above the layout's KV pool. Most combinations are untested ⚫; see the Flash-Next reference. - Swarm mode (experimental).
--swarmraises the session cap on four RTX 3090s, with or without P2P: 8 to 24 on Flash-Next, Swift1.5 and Swift1.5-Huihui, 24 to 32 on Qwen3.8-27B and ThinkingCap, with a 48 GB KV RAM cache. Tested on Flash-Next and the 27B with P2P (Merlin 3.0.1, vLLM 0.32); Swift1.5, Swift1.5-Huihui and every model without P2P use the same cap untested (⚫, expected to work). Hy4 Flash on four RTX 3090s (16 sessions, 3 GiB of KV RAM cache per card) and Inkling 2 Mini on two and four RTX 3090s (24 sessions, 12 GiB per card) also take--swarmin 3.0.2.4, experimental (Hy4 Flash: 16 seats tested, 24 untested; Inkling 2 Mini: 24 seats tested on four cards, untested on two); every other Hy4 Flash and Inkling row refuses it. Qwen4-35B-A3B on its two four-card RTX 3090 rows (24 sessions, 12 GiB per card) is tested (one run on 4 x RTX 3090: 24 seats for 12 rounds plus a concurrent 1M-token session, 1,724 requests, 0 failures, GPU memory floor at least 1.3 GiB) with P2P and untested ⚫ (expected to work; the same swarm settings passed on the P2P quad row) without; on its two-card row (fn-qwen4-35b-2x3090, 16 sessions, 12 GiB per card) it is tested too (one run on 2 x RTX 3090: 16 seats for 12 rounds plus a concurrent 524,288-token session, 1,137 requests, 0 failures, GPU memory floor at least 2.0 GiB). - A chat template that keeps the cache. Every Flash-Next-family and Qwen3.8-27B-family recipe serves a fixed Qwen3.8 template that accepts system
messages after the first turn, so coding agents' per-turn notes no longer break the prefix cache.
Nemotron 3.5 Super VL keeps earlier turns' thinking in the prompt (
truncate_history_thinking: trueopts out). - Vision, reasoning and tool calling on every model in the release table except Hy4 Flash (text only), with images up to 8 MP
(Nemotron its native ~3.4 MP, one-card 27B 4 MP) and a per-image pixel cap (
MAX_PIXELS). Hy4 Flash serves text; its vision profile is an opt-in testing profile. - Forged control tokens stay text. Content that spells a control token such as
<|im_end|>is encoded as text (--sanitize-control-tokens, on;--reject-mm-with-string-template, off; Ornith's FIM tokens viaVLLM_MERLIN_EXTRA_CONTROL_TOKENS).tool_choice="none"and quoted or unoffered tool calls stay text (MERLIN_QWEN3_LITERAL_SPANS).
Steady in long runs
- Fault detection on any rank, with faster shutdown. Temperature-0 output repeats for one session on one install; under concurrency it varies (see the bench cards).
- Idle cards drop to P8 with the runtime bounds guards on (Merlin 3.0.0, vLLM 0.32): 110 W idle on four RTX 3090s, against 446 W when the guard reader kept them awake.
- Compile-cache fault guard, on by default. After a sticky CUDA fault the next start sets the used compile cache aside
and recompiles once, and the compiled model file is checked against its SHA-256 at load.
VLLM_MERLIN_COMPILE_CACHE_GUARD=0restores the 3.0.1 behaviour. - Diagnostics on request.
MERLIN_KV_TIER_DIAG=1logs KV-tier decisions,MERLIN_LOAD_PEAK_LOG=1boot memory peaks,MERLIN_SPEC_RESIDUAL_DIAG=1the rejection sampler's residual draws andVLLM_MERLIN_GRAMMAR_STEP_DIAG=1per-step grammar timings; all off by default. - Parser self-test at boot. The served chat template and parsers are round-tripped once in the background; a
mismatch is a warning and never blocks the server.
merlin doctor --parser-selftest <checkpoint>runs it on its own. - No silent hang on the KV RAM cache lock. A boot blocked on the host-wide arena lock stops after
MERLIN_KV_HOST_TIER__ARENA_LOCK_TIMEOUT_S(900 s) with the file and its holder named.
One install, one command
./setup.shchecks the host, recommends a checkpoint and layout for your GPUs, shows every download with its size, installs the prebuilt engine (no compiling, nothing system-wide; about 1.5 minutes on 3.0.0; a 3.0.2, 3.0.2.1, 3.0.2.2, 3.0.2.3 or 3.0.2.4 fresh install has not been timed) and starts the server.merlin serve <checkpoint>recognises the checkpoint, picks the largest tested layout for the GPUs it finds, and starts the server;merlin doctorchecks the host first. Every layout is a profile oftools/merlin/launch.py; every knob (PORT,HOST,KV_BYTES,MAX_PIXELS, ...) is an environment variable.merlin serve --instances Nnow stays in the foreground and stops all N servers together.- Safe updates. A running server holds
.merlin/serve.lock, so./setup.shnever reinstalls under it; stop the server, then update. Every launcher checks the installed native code at start (MERLIN_SKIP_NATIVE_CHECK=1skips it, with a warning), and setup gives every bind but127.0.0.1and::1an API key (localhostis saved as127.0.0.1). - Parser and sampling switches.
REASONING_PARSER,TOOL_CALL_PARSERandGENERATION_OVERRIDEreplace a recipe's parsers or sampling (noneturns one off);USE_CKPT_TEMPLATE=1serves the checkpoint's own template (flags). P2P=ipc(opt-in, untested): a third interconnect mode on the Flash-Next rows with the PCIe-IPC all-reduce, for hosts where NCCL's P2P bootstrap hangs but CUDA peer access works. Since 3.0.2.2 it needs peer access inside each tensor-parallel group only.- Container:
MERLIN_WHEEL_URLinstalls the release wheel into the image instead of compiling, andMERLIN_PROFILEstarts a chosen Flash-Next-family profile (thanks to brandon-nuttall); not requalified on a 3.0.2, 3.0.2.1, 3.0.2.2, 3.0.2.3 or 3.0.2.4 image build. - Profiles beyond the reference host: RTX 3090 without P2P, eight RTX 3090s, RTX 4090 (24 and 48 GB),
RTX A6000 / A40, A100, A30, CMP 170HX and, since 3.0.2.1, 20 GB cards (RTX 3080 20GB, RTX A4500, RTX 4000 Ada:
Qwen3.8-27B on two or four, Flash-Next, Swift1.5 and Swift1.5-Huihui on four). Since 3.0.2.3, 48 GB Ada cards (L40S, RTX 6000 Ada,
modified RTX 4090 48 GB): Flash-Next, Swift1.5 and Swift1.5-Huihui on two, four (
fn-4x48g-tp2pp2-sm89,fn-4x48g-tp4-sm89) or eight, Ornith 1.5 on four, Hy4 Flash on four or eight, Inkling 2 Mini on one, two or four, all untested ⚫. Since 3.0.2.4, Qwen4-35B-A3B on every supported class at 1, 2, 3, 4 and 8 cards where it fits (untested ⚫ except 2× and 4× RTX 3090).--simulate 4x3080-20g(or4xa4500,4x4000ada) plans for them without the cards. - One prebuilt wheel for sm_80, sm_86 and sm_89, installed from a hash-locked requirements file.
- Checkpoint-provided KV scales. Supported Flash-Next-family checkpoints can supply their own FP8 KV scales. This does not qualify an untested checkpoint or hardware layout.
Prefill and time to first token at 262K
| Model | GPUs | Prefill | Time to first token |
|---|---|---|---|
| Flash-Next | 4 | 6,818 tok/s | 38.4 s |
| Swift1.5 | 4 | 6,793 tok/s | 38.6 s |
| Swift1.5-Huihui | 4 | 6,893 tok/s | 38.0 s |
| Qwen3.8-27B † | 1 / 2 / 4 | 587 / 1,117 / 2,118 tok/s | 446.2 / 234.4 / 123.6 s |
| ThinkingCap † | 2 / 4 | 1,116 / 2,118 tok/s | 234.6 / 123.6 s |
| Nemotron 3.5 Super VL † | 4 | 4,193 tok/s | 62.5 s |
| Ornith 1.5 | 4 | 2,302 tok/s | 113.8 s |
| Hy4 Flash | 4 | 1,478 tok/s | 177.1 s |
| Inkling 2 Mini | 2 / 4 | 2,442 / 3,599 tok/s | 107.2 / 72.8 s |
| Qwen4-35B-A3B ‡‡ | 2 / 4 | 6.4k / – tok/s at 262K; 4.8k / 8.9k tok/s at 1M | 40.7 / – s at 262K; 219.2 / 117.5 s at 1M |
One stream, cold cache, 261,888-token prompt. Bold: measured on 3.0.2.2 or 3.0.2.3; the other cells are 3.0.2.1 figures carried forward (see the table above); Inkling 2 Mini has no 262K row on one card; † 3.0.2.1's previous build, see cards. ‡‡ Qwen4-35B-A3B (3.0.2.4, one run each): needle prompts rather than the 261,888-token cold prompt (262K on two cards; 1,048,304-token 1M prompts on two and four cards); the four-card 262K prompt was not run.
Bench cards: Flash-Next · Swift1.5 · Swift1.5-Huihui · Qwen3.8-27B · ThinkingCap · Nemotron 3.5 Super VL · Ornith 1.5 (3.0.2.1); measured on 3.0.2.3: Flash-Next · Hy4 Flash · Inkling 2 Mini, one card · two cards · four cards; measured on 3.0.2.4 (card list): Qwen4-35B-A3B, single runs on four and two cards · Hy4 Flash, speed against the previous row; measured on 3.0.2.2: Flash-Next 4 x 20 GB · Qwen3.8-27B four cards · ThinkingCap four cards · Ornith 1.5
| GPUs | Status |
|---|---|
| 2× or 4× RTX 3090 | 🟢 Tested and tuned (Hy4 Flash four-card: 🟡 testing) |
| 1× RTX 3090 | 🟢 Tested and tuned for Qwen3.8-27B (262K, 4 MP images); 🟡 Inkling 2 Mini testing (./setup.sh --model inkling2-mini; no 262K context on one card) |
| 2× or 4× RTX 3090 (Inkling 2 Mini) | 🟡 Testing (bench cards measured, ./setup.sh --model inkling2-mini; 1M context by default, MAXLEN=262144 for 262K) |
| 4× RTX 3090 without P2P | 🟠 Partly tested (Ornith 1.5, Flash-Next PP4), tuning in progress |
| 4× RTX 4090 | 🟡 Testing on cloud-hosted cards, tuning in progress |
| 2× or 4× CMP 170HX 64 GB | 🟡 Testing on cloud-hosted cards (the 27B and Nemotron; the Flash-Next family ran on BF16 KV there, so its FP8 KV default is ⚫ untested), tuning in progress |
| 1, 2, 4 or 8× RTX 6000 Ada, L40S or RTX 4090 48 GB (modified) | ⚫ Profiles included (3.0.2.3), not yet tested by us: Flash-Next, Swift1.5 and Swift1.5-Huihui, the 27B, Nemotron, Ornith 1.5 (4×), Hy4 Flash (4× or 8×) and Inkling 2 Mini (1, 2 or 4×) |
| 4× RTX 3090 (Qwen4-35B-A3B, TP2xPP2) | 🟢 Tested (3.0.2.4, single runs; ./setup.sh --model qwen4-35b-a3b, row fn-qwen4-35b-quad-3090): the pack booted, passed a 7 of 7 smoke, scored 294 of 300 on paired GSM8K against 293 of 300 for the BF16 reference (effort high; parity, not lossless) and found a needle in a 1,048,304-token prompt (first token in 117.5 s). KV pool read at boot (one run each; it varies by boot): 4,306,651 tokens at the 262K speed boot and 4,602,528 at the 1M quality boot, where the needle ran; 1M context, 8 MP images. Needs P2P between the cards. Decode at 4K with MTP on 192.6 tok/s. Tensor parallel above 2 is refused for Qwen4 (wrong output was found on the reference host), so the tested four-card row is TP2 with pipeline parallel (TP2xPP2); --swarm is refused. Qwen4 page |
| 2× RTX 3090 (Qwen4-35B-A3B, TP2) | 🟢 Tested (3.0.2.4, single runs; row fn-qwen4-35b-2x3090): booted and found 262K and 1M needles (first token in 40.7 s and 219.2 s). KV pool 1,564,859 tokens read at boot (one run; the 219.2 s needle ran at the earlier 1,628,894-token pin), 8 MP images. Decode at 4K with MTP on 178.3 tok/s. Needs P2P: there is no two-RTX-3090 row without it. A 3-card host with P2P gets this row by auto-pick. Qwen4 page |
| Other GPU classes (Qwen4-35B-A3B) | ⚫ Untested. 60 rows in all cover 1, 2, 3, 4 and 8 cards on every supported GPU class where the engine fit allows (no single 20 or 24 GB card); every other pool is an estimate, 1M context where it fits, 8 MP images on every row. An 8-card host with P2P gets the 4-card row by auto-pick, and --profile picks the 3-card PP3 and 8-card rows. The pack is on Hugging Face (FP8 n-gram table on main, BF16 on the ple-bf16 branch). Not in 3.0.2.4: DFlash2 for Qwen4, any Qwen4 TP4 row. Hardware matrix |
| 8× RTX 3090, A100, A30 | ⚫ Profile included, not yet tested by us. Hy4 Flash on 8× RTX 3090 (hy4flash-octo-3090, 3 sessions at 1M context) is untested on hardware (pool is an estimate) |
| 2× or 4× 20 GB (RTX 3080 20GB, RTX A4500, RTX 4000 Ada) | ⚫ Profiles included: Qwen3.8-27B on 2× or 4×; Flash-Next, Swift1.5 and Swift1.5-Huihui on 4× with cold-expert offload, one 262K session. Emulated for the 27B and Flash-Next; Swift not booted at 20 GB |
Merlin profiles target NVIDIA sm_80, sm_86 and sm_89. Available VRAM and the selected model and layout determine fit. The How to serve guide distinguishes measured configurations from estimates.
On RTX 3090s, PCIe P2P and Zagitta's gpu-unlock are optional host upgrades: Merlin runs without them (except Qwen4-35B-A3B on two RTX 3090, which needs P2P), and our bench numbers (3.0.1 to 3.0.2.4) are measured with both. In a stock-versus-unlocked A/B the unlock sped up prefill by about 16–29 %; decode and output are unchanged.
| OS | Linux x86-64, glibc 2.34 or newer |
| Driver | NVIDIA R580 or later (CUDA 13) |
| Python | 3.13 with uv |
| Compiler | GCC 11 or newer for the release wheel (serving JIT-compiles FlashInfer and Triton code; below 13 is untested); GCC 13 or newer for --from-source |
| Host RAM | 72 GiB for the Flash-Next family on four cards (tested minimum; more with --kv-ram-cache or --swarm; --ple-store disk, experimental, moves the 47.7 GiB table to NVMe). Hy4 Flash: 140 GiB available with the FP8 Engram tables (60 GiB of them pinned), 198 GiB with the BF16 ones (118 GiB pinned, untested). Inkling 2 Mini keeps its embedding table in host RAM; its host RAM need has not been measured. Qwen4-35B-A3B holds its n-gram (PLE) table in host RAM: with the token embedding about 20 GiB for the FP8 table (default) and about 39 GiB for the BF16 opt-in (the table alone is 19 / 38 GiB); the whole-server need is not measured; setup checks available memory against 69 GiB (FP8 table) or about 88 GiB (BF16 table) for one 2-card or 4-card Qwen4 server with the table in RAM and the KV host tier off; --ple-store disk (experimental) moves the table to NVMe: on Qwen4 the FP8 table frees ~19 GiB at 177.5 vs 177.9 tok/s |
| Disk | About 115 GiB for Flash-Next, 66 GiB for Ornith 1.5, 142 GiB for Hy4 Flash (the FP8 Engram pack; about 200 GiB with the BF16 one), 19 GiB for Inkling 2 Mini, 42.3 GiB for Qwen4-35B-A3B (the FP8 n-gram pack; 61.4 GiB with the BF16 one) |
merlin doctor checks your system before anything starts.
Models: Qwen (Qwen4-35B-A3B, Apache-2.0) · UkisAI (Swift 1.5) · huihui-ai (abliteration) · BottleCap AI (ThinkingCap) · NVIDIA (Nemotron) · Tencent (Hy4 Flash) · Thinking Machines (Inkling 2 Mini) · ornith-ai (Ornith 1.5, a fine-tune of Qwen's Qwen3.5-122B-A10B)
Quantisation: Intel (AutoRound; the same recipe for Qwen4-35B-A3B) · RadixArk (FP8 PLE table) · DominikBucko (MTP packing) · philbert (AWQ) · philbert440/hy4-flash-v100 (Apache-2.0; ideas behind the 3.0.2.4 Hy4 Flash prefill, indexer and DCP combine work, written again as our own code)
Engine: vLLM, FlashInfer, compressed-tensors · peakcrosser7
(Flash-Next model support, PLE offload) · RecoverSSM (GDN state recovery) · Sumandora (abliteration method) ·
froggeric (chat template) · aikitoria
(P2P on consumer Ampere) · Zagitta (GPU unlock) · incoai (DFlash2 drafter) · RadixArk (Qwen4-35B-A3B DFlash2 drafter) ·
club-3090 (sm_80 FP8 KV decoder port) · Sudzpel (GPU unlock proposal and measurements) ·
brandon-nuttall (YaRN past 262K report, SEQS/MAXLEN launcher fix, use_local_argmax_reduction, TP2×PP4 community rig) · R-omk (YaRN past 262K crash report and recipes) · CoolShades (idle-power report and first fix behind the v2.5.2 engine fix) ·
jbeemer1 (KV RAM cache report) · the-crypt-keeper (Hy4 Flash indexer kernel report and L40S measurements, glibc floor report) · bakiburakogun (PLE pull multi-node pipeline parallelism) · daifeiya (fn-4x48g-tp4-sm89 request) · nomonkeynodeal (Hy4 Flash on four 48 GB RTX 4090 report) · forlayo (Flash-Next decode optimisation proposal, evaluated and not in 3.0.2.3 or 3.0.2.4) · pondzikk · lucifer1004 · Jon-Nielsen · mgabor3141 ·
Neiko2002 · Yarikdevcom (independent work on the same hardware class)
Upstream fixes are credited in the engine repository.
Merlin is built and tested on one home machine. If it saves you time, you can support it on Ko-fi.
The engine is Apache-2.0, like vLLM; see LICENSE and NOTICE. Each model has its own licence on its Hugging Face card. Hy4 Flash is under the Tencent Hy License 1.0, an Apache-2.0-derived licence with added commercial terms for large hosted services (text); Inkling 2 Mini is Apache-2.0, with an acceptable-use policy (licences); Qwen4-35B-A3B is Apache-2.0 (licence).
Coming from qwen38-flash-next-3090s? This repository replaces it. Run
git remote set-url origin https://github.com/halt95/merlin-engine.git, then reinstall with ./setup.sh.