Skip to content

Add an engine card for llama-modchip - #308

Merged
Andyyyy64 merged 1 commit into
Andyyyy64:v0.6.9from
hannibal-lee:feat/engine-card-llama-modchip
Nov 19, 2026
Merged

Andyyyy64 merged 1 commit into
Andyyyy64:v0.6.9from
hannibal-lee:feat/engine-card-llama-modchip

Conversation

@hannibal-lee

Copy link
Copy Markdown
Contributor

Adds a card for synchopate/llama-modchip, the first entry under "Young
repositories" in #294. It is a llama.cpp fork aimed at large MoE models on the
CPU, at 1022 stars today and released v2.5.1 on 2026-11-12.

Why a runner and not a fixed_model. It does publish its own GGUFs, but it
also loads ordinary ones — the README names Q4_0, MXFP4, Q3_K_M and Q8_0 — and
its parser is llama.cpp's, so the card describes an engine rather than a pack
list. gguf.extra carries VQ3_0, the only type that exists nowhere else:
Fractal-64 reuses type 42 but with a 30-byte block, so mainline llama.cpp sizes
it at 18 and refuses the file. That is stated in note instead of missing,
because mainline does have its own Q2_0.

What the platforms say. Linux CPU covers the prebuilt x86-64 AVX2 and
AVX-512 binaries and the source build, which also covers ARM64 (Graviton3 is in
their leaderboard). Windows CPU is the MinGW-w64 UCRT64 build. darwin/metal
is the patched engine from apple-silicon/setup.sh. CUDA and Vulkan are listed
for the hybrid split, with the limit the fork states itself: only standard
quant types have a shader, "neither Q2_0 nor VQ3_0 has a Vulkan/CUDA GPU
shader yet" (FAQ Q8).

Three values are deliberately absent.

  • No probe: the patched server is llama-server, so /props is mainline's
    reply. Using it would mark any llama.cpp server on 8789 as this engine.
  • No detect_paths: install.sh keeps the binary in the clone's
    workspace/bin, and there is no fixed home path to look in.
  • No models: the fork's packs are ordinary Hugging Face repos and the card
    does not need to pin them to describe the engine.

port is 8789, the default install.sh and ./modchip start the server on;
api includes anthropic because the bundled SSE gateway on 8787 proxies
/v1/messages.

Sources are the README, install.sh, FAQ.md, docs/HARDWARE_OPTIMIZATIONS.md,
docs/WINDOWS_PORT.md, apple-silicon/README.md, gateway/sse_gateway.py and
the v2.5.1 release, all read today.

Tests. ruff check, ruff format --check and pytest pass (1992). Two
existing assertions enumerate the engines, so they now include this one:
test_a_plain_gguf_runs_on_every_engine_here gains llama-modchip, and
test_who_reads_which_quant gains VQ3_0 for both this card and llama.cpp,
which pins the reason the type is listed at all.

Refs #294

@Andyyyy64 Andyyyy64 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this reads well, and the values I checked hold up against the repo. Port 8789 and the binary name come from install.sh, VQ3_0 as type 43 on AVX-512 VBMI and Fractal-64 as type 42 match the FAQ, and leaving out probe and detect_paths is the right call.

A few things before merging.

  1. The CUDA and Vulkan platforms. What the fork ships is CPU builds (the prebuilt Linux AVX2 and AVX-512 binaries, the Windows MinGW build) and the Metal build on a Mac. The only CUDA build of the patched engine I found is the experimental -Cuda switch of windows\build_patched_engine.ps1, and install.sh has no GPU build. The README's GPU and CPU path for standard GGUFs on Windows, windows/AVVIA_MODCHIP.bat, downloads mainline llama.cpp's CUDA 12.4 and Vulkan binaries, so that run is llama.cpp's. Right now whichllm engines on my RTX 5080 says llama-modchip runs here with CUDA, which install.sh would not give me. I'd keep CUDA for Windows only, with a note that it's the experimental -Cuda build, and leave Vulkan out, unless there's a Linux GPU build I missed.
  2. The Windows install command only works inside a clone, and -Target dsv4 builds the DeepSeek engine only. whichllm prints it as the install hint, so I'd point Windows at docs/WINDOWS_PORT.md instead, or put the clone in front the way the Linux and macOS commands do.
  3. v2.5.2 came out on 2026-11-12 as well. If nothing in the card changes with it, bumping version keeps the weekly check from listing the card again.

One thing for later, not for this PR. The index lists Synchopate's Fractal-64 and VQ3-64 repos with no files parsed, so nothing ranks them yet. If whichllm ever reads those files and calls the Fractal-64 ones Q2_0, mainline would be picked for a file it refuses, and the card can't say that today. That one is mine to handle in the parser.

I'd like this in v0.6.8, the branch for the next release, so I'll switch the base. That branch already has an Unreleased section in the CHANGELOG, so it will need a rebase.

@Andyyyy64
Andyyyy64 changed the base branch from main to v0.6.8 November 13, 2026 02:17
@hannibal-lee
hannibal-lee force-pushed the feat/engine-card-llama-modchip branch 2 times, most recently from 855ae38 to 358b9db Compare November 14, 2026 05:47
@hannibal-lee

Copy link
Copy Markdown
Contributor Author

Sorry, my mistake: I wrote the platforms from llama.cpp's binaries instead of what this fork builds, so CUDA and Vulkan were wrong.

Fixed and rebased onto v0.6.8: Vulkan removed, CUDA Windows-only as the experimental -Cuda build, Windows install clone-first, version bumped to 2.5.4.

@Andyyyy64
Andyyyy64 changed the base branch from v0.6.8 to v0.6.9 November 14, 2026 12:54

@Andyyyy64 Andyyyy64 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, the platforms read right now, and the card matches v2.5.4. CUDA is Windows only with the -Cuda note, Vulkan is gone, and version is current.

About the Windows command, without -Target the script builds dsv4, its default, so it's the same build I asked about. Reading the script again, both targets are llama.cpp with the LUT-VQ3-64 patch and build a llama-server.exe, so I was wrong to call it DeepSeek only. The line is fine as it is.

The corrected platforms show one thing that's whichllm's to fix, not the card's. On Linux with an NVIDIA GPU, whichllm engines now says llama-modchip runs on the CPU, which is right. But engines_for only checks that an engine runs on the machine, not that it runs on the GPU, so --json lists llama-modchip for the GGUF rows on my RTX 5080, the ones held on the GPU included. test_a_plain_gguf_runs_on_every_engine_here pins that. llama-modchip is the first runner with no GPU build on a machine that has a GPU, so nothing showed it before. I'll fix it in a follow-up once this is in, and that test will change with it.

0.6.8 went out yesterday, so I've moved the base to v0.6.9. #309 went in first, and both PRs add to the CHANGELOG's Unreleased section, so this needs one more rebase onto v0.6.9. I'll merge it once that's done.

llama-modchip is a llama.cpp fork for large MoE models on the CPU. Its own
quant types do not load in mainline: LUT-VQ3-64 is VQ3_0 at 3.00 bpw, and
Fractal-64 reuses type 42 with a 30-byte block, which mainline sizes at 18
bytes and refuses. Standard GGUFs still load, so the card is a runner and
lists VQ3_0 under `gguf.extra` the way ik_llama.cpp lists its own types.

The platforms are the builds the fork actually ships: x86-64 AVX2 and
AVX-512 prebuilt binaries plus a source build for ARM64 on Linux, a MinGW-w64
UCRT64 build on Windows, and the patched Metal engine on Apple silicon. CUDA
is Windows only and experimental, the -Cuda switch of the build script, since
install.sh builds no GPU engine and the CUDA and Vulkan binaries the Windows
hybrid pack downloads are mainline llama.cpp's.

There is no `probe`: the patched server is llama-server, so its /props reply
is mainline's and would claim the port for this engine on any llama.cpp
server. `detect_binaries` names the two files install.sh leaves in the
clone, and the note says the installer does not put them on PATH.

Refs Andyyyy64#294
@hannibal-lee
hannibal-lee force-pushed the feat/engine-card-llama-modchip branch from 358b9db to a24be6b Compare November 15, 2026 06:52
@hannibal-lee

Copy link
Copy Markdown
Contributor Author

Rebased onto v0.6.9 (faa468e); the only conflict was CHANGELOG's Unreleased section, so both entries are kept. Full suite passes and ruff is clean. Left the engines_for / GPU-test fix to your follow-up.

@Andyyyy64
Andyyyy64 merged commit da62786 into Andyyyy64:v0.6.9 Nov 19, 2026
6 checks passed
@Andyyyy64 Andyyyy64 mentioned this pull request Nov 19, 2026
@synchopate

Copy link
Copy Markdown

Maintainer of llama-modchip here — thank you @hannibal-lee and @Andyyyy64 for adding first-class llama-modchip support in v0.6.9, and especially for how carefully you audited the actual build scripts, ports, /v1/messages SSE gateway, and GGUF quant semantics!

We just starred whichllm and added Andyyyy64/whichllm to the Ecosystem & Integrations section of our README.md.

One small technical heads-up in case it is ever handy for future card refreshes (regarding your spot-on note on type 42 block-size collision):

  • Starting in v3.0 / v3.1.0, we moved FRACTAL_64 and VQ3_64 to non-colliding enum IDs 44 and 45 so standard upstream MXFP4 (42) and NVFP4 (43) work seamlessly side-by-side without clashing with mainline llama.cpp, and unified speculative decoding under --spec-type routecrack2 (with portable static-libgomp GLIBC 2.30 x86-64 binaries).

Thanks again for building whichllm and including us!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants