Repository navigation
Add an engine card for llama-modchip - #308
Conversation
Andyyyy64
left a comment
There was a problem hiding this comment.
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.
- 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
-Cudaswitch ofwindows\build_patched_engine.ps1, andinstall.shhas 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 nowwhichllm engineson my RTX 5080 says llama-modchip runs here with CUDA, whichinstall.shwould not give me. I'd keep CUDA for Windows only, with a note that it's the experimental-Cudabuild, and leave Vulkan out, unless there's a Linux GPU build I missed. - The Windows install command only works inside a clone, and
-Target dsv4builds the DeepSeek engine only. whichllm prints it as the install hint, so I'd point Windows atdocs/WINDOWS_PORT.mdinstead, or put the clone in front the way the Linux and macOS commands do. - v2.5.2 came out on 2026-11-12 as well. If nothing in the card changes with it, bumping
versionkeeps 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.
855ae38 to
358b9db
Compare
|
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 |
Andyyyy64
left a comment
There was a problem hiding this comment.
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
358b9db to
a24be6b
Compare
|
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. |
|
Maintainer of We just starred One small technical heads-up in case it is ever handy for future card refreshes (regarding your spot-on note on
Thanks again for building |
Adds a card for
synchopate/llama-modchip, the first entry under "Youngrepositories" 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.extracarriesVQ3_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
noteinstead ofmissing,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/metalis the patched engine from
apple-silicon/setup.sh. CUDA and Vulkan are listedfor the hybrid split, with the limit the fork states itself: only standard
quant types have a shader, "neither
Q2_0norVQ3_0has a Vulkan/CUDA GPUshader yet" (FAQ Q8).
Three values are deliberately absent.
probe: the patched server is llama-server, so/propsis mainline'sreply. Using it would mark any llama.cpp server on 8789 as this engine.
detect_paths:install.shkeeps the binary in the clone'sworkspace/bin, and there is no fixed home path to look in.models: the fork's packs are ordinary Hugging Face repos and the carddoes not need to pin them to describe the engine.
portis 8789, the defaultinstall.shand./modchipstart the server on;apiincludesanthropicbecause 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.pyandthe v2.5.1 release, all read today.
Tests.
ruff check,ruff format --checkandpytestpass (1992). Twoexisting assertions enumerate the engines, so they now include this one:
test_a_plain_gguf_runs_on_every_engine_heregainsllama-modchip, andtest_who_reads_which_quantgainsVQ3_0for both this card and llama.cpp,which pins the reason the type is listed at all.
Refs #294