mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #528] [CLOSED] Add lapadatbogdan's RCO-152E coder prune to the setup's model list #584
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#584
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mw00/project-maya/pull/528
Author: @woodsonl
Created: 10/26/2026
Status: ❌ Closed
Base:
main← Head:rco-152e-downloads📝 Commits (3)
ce934calapadatbogdan's RCO-152E coder prune in the setup's model list: llama.cpp's Q3_K / Q4_K_M / Q8_0 of GLM-5.3-Flash with 152 of 288 experts a layer, pinned to the commit their hashes belong to - no shipped expert profile (a prune is another geometry), the card's "hmm" ban at Q3_K / Q4_K_M in the config's sampling defaults267017bthe server reads the config's sampling.logit_bias instead of naming it an unknown key: RCO-152E's hmm ban reached no request - parsed and checked as a request's is (logit_bias_of), a bad value refusing to start; the prune's chooser text says whose quant it isb8d10d5./setup.py starts the installer, as ./setup.sh and START-MAYA.bat do: a main that execs maya.py with whatever Python ran it, and maya.py hands itself to ./maya.sh when that is not the venv's📊 Changes
8 files changed (+148 additions, -9 deletions)
View changed files
📝
README.md(+6 -0)📝
docs/SETUP.md(+4 -1)📝
maya.py(+57 -5)📝
serve/server.py(+10 -2)📝
serve/test_server.py(+21 -1)📝
setup.py(+6 -0)📝
tools/test_maya_models.py(+31 -0)📝
tools/test_maya_profile.py(+13 -0)📄 Description
Adds lapadatbogdan's RCO-152E coder prune of GLM-5.3-Flash (MIT license) to the setup's model choices. RCO keeps 152 of the full model's 288 routed experts a layer (~170B-A17B of the 321B MoE); the GGUFs are llama.cpp's own quants, text only - the repo publishes no vision files. Every file is pinned to the commit it was hashed at and sha256-checked per shard, exactly like Maya's own downloads.
The three choices
RCO-152E-Q3_KRCO-152E-Q4_K_MRCO-152E-Q8_0Sizes are decimal GB summed from the published file sizes. The repo re-uploaded its files under the same names once already (its card warns about truncated Oct 22 files, re-uploaded Oct 25), so
"revision"is pinned to94613287f523a52b5a8d7843db3ff4a1bc8d58c6- the commit every sha256 below was verified against through the Hugging Face API - rather thanmain. The entries carry no"was"names and no"vision"(a setup then says the model reads text only, which is what the repo says itself).Per-shard sha256 as published at that commit (the registry holds the same values; a download is verified against them):
Why these entries carry "profile": False
read_expert_profile(src/core/expert_cache.cpp) refuses a profile whosen_layers x n_expertis not the model's own - "a profile for a different artifact" - and the shippeddata/expert-profile-glm.binranks the unpruned model's 288 experts a layer. A prune is another geometry, so a config for these entries gets no profile:write_configpasses none andadd_profile(the update path that wires the shipped profile into older configs at their next start) adds none. The engine then learns this PC's routing from scratch, as it does without any profile. A--gguf-dirsetup of these exact files is covered too:quant_ofmatches the entries by shard name, so the same flag governs both paths.The "hmm" ban
The model card says that at Q3_K / Q4_K_M the model loops on "hmm" unless three tokens are banned - 86776 (" hmm"), 79380 ("Hmm"), 87459 (" Hmm") - and that Q8_0 needs none. The per-entry
"logit_bias"goes into the config'ssamplingdefaults. The server side of this PR is what makes it reach requests:sampling_defaults_from_configwhitelists the config's sampling keys and had nologit_biasbranch, so without it the key was named at startup ("unknown key, ignored") and never reached a single request - the ban silently did nothing. With it, the key is parsed and checked bylogit_bias_ofexactly as a request's own is (ids, biases in -100..100, not the whole vocabulary; a bad value refuses to start, like every other bad sampling value), merged under every request, greedy ones included - the bias rides thetemperature=0engine line too (server.py'ssampling_keysappends it) - and a request's ownlogit_biasreplaces the default wholesale. Verified live after the fix: the startup line reads[maya] sampling defaults from the config: temperature=1.0, top_p=0.95, logit_bias={86776: -100.0, 79380: -100.0, 87459: -100.0}.MTP
The GGUF ships no NextN/MTP draft block - the pack step logs
glm5-next: block_count 45, nextn 0 -> trunk layers 0..44- and the engine's MTP path simply stays off when the block is absent, so the default draft answer needs no change and costs nothing; the model decodes undrafted. The Maya quants keep the block; this one does not, and nothing special-cases it.Files changed
setup.py- a__main__block, so./setup.pystarts the installer the same way./setup.shandSTART-MAYA.batdo: it execsmaya.pywith whatever Python ran it, andmaya.pyhands itself to./maya.sh(its own existing start-up path) when that Python is not the private venv. Before, running./setup.pyprinted nothing and exited - the file is the installer's helpers library, but nothing on a fresh clone tells you that.maya.py- the threeMODELSentries (pinned revision, per-shard sha256,"profile": False,"logit_bias"on Q3_K / Q4_K_M);"profile"/"logit_bias"documented in the registry's header comment; one guard line each inwrite_config(no shipped profile, the bias intocfg["sampling"]) andadd_profile(no profile added at an update restart); the Q3_K chooser text says whose quant it is.serve/server.py- thelogit_biasbranch insampling_defaults_from_config(parse +logit_bias_ofcheck +SystemExiton a bad value), docstring updated. No engine change: the request path already spokelogit_biason the engine line.tools/test_maya_models.py-RcoPruneDownload: three quants pinned and hashed (shard count, download size, no vision, pinned URLs),quant_ofmapping for--gguf-dir, the bias exactly where the card says and nowhere else, every other model still on the shipped profile.tools/test_maya_profile.py- a pruned-modelwrite_config: no--expert-profile, the bias in the sampling defaults, the rest of the sampling unchanged,add_profileadds none.serve/test_server.py-SamplingDefaultsFromConfig: the bias kept as the engine line takes it (int ids, float biases), five bad shapes refusing to start, an unknown key still ignored with the rest kept.README.md(models section),docs/SETUP.md(the GLM bullet) - the prune, its sizes, text-only, not our quants, not measured by us.End to end (measured, per CONTRIBUTING)
One RTX 4080 SUPER (16 GB), i9-14900K, 61 GB RAM, NVMe, CUDA 13.4, driver 615.71.09.
./maya.sh --setup --model RCO-152E-Q3_K --yes --download-model:tools/iq_pack.py, the experts stay in the GGUF files);/v1/chat/completions- e.g. a correct two-sentence chmod 755 answer, 63 tokens, cleanstop;glm staton that request:decode 89.50 ms/tok (11.17 tok/s) | vram hit 43.26% | ram fetches 42.81/tok | disk 15.94 reads/tok in 14.00 waits/tok, 30.62 ms/tok | promotions 51.24/tok | cpu lane 126.27/tok in 31.91 ms/tok | prompt 40.6 ms/tok | vram 749/798 ram 4918/5019- the first uncalibrated start at the setup's recommended 32K context, nothing tuned;maya-rco-152e-q3_k.jsonhas no--expert-profileand the ban in its sampling defaults;run-maya-rco-152e-q3_k.shstarts it;./maya.sh --setup --model RCO-152E-Q3_K --yeskeeps everything (packages, llama.cpp source, compiled engine, downloaded model, pack) and rewrites only the config.Both suites green locally exactly as CI runs them (
.venv/bin/python -m unittest discover -s tools -p "test_*.py": 410 tests OK;... discover -s serve -p "test_*.py" -t .: 390 tests OK).Measured / not measured
Measured: every file name, size and sha256 against the Hugging Face API at the pinned commit; the whole install-to-answer path above on Q3_K; setup idempotence; both Python suites.
Not measured: Q4_K_M and Q8_0 (the same code path at other sizes - only the shard counts, sizes and the absence of the ban differ); decode speed against a Maya quant on the same box (no before/after pair, so no claim of relative speed); the prune's quality (its card reports RCO's own pruning measurements; nothing re-measured here).
Known edge (pre-existing on main, out of this PR's scope)
A
--gguf-dirprune whose shard names do not byte-match the registry (renamed files, a different split) is not recognized byquant_of, so it gets the shipped profile and the engine then refuses to start with the clear geometry error until the flag is removed. That fail-open exists on main for any unrecognized GGUF; a geometry-reading gate would be its own change.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.