[II] Execute Brandon GLM-5.2 SQG W4A8 - #197
voipmonitor wants to merge 1 commit into
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add native SM120/SM121 route-packed W4A8 execution for the topology-neutral GLM SQG atoms-v2 checkpoint contract. Gate, up, and down retain independent K3/K4 expert partitions, while uniform K6 non-routed matrices use an exact SQG W6A16 endpoint with caller-owned CUDA graph storage. Reject incompatible codebooks, rates, schedules, and fallback endpoints before execution. Cover the K6 codebook exhaustively and validate numerical agreement, fixed scratch bounds, and CUDA graph replay for dense and routed paths. Assisted-by: OpenAI Codex Signed-off-by: Martin Vit <martin@voipmonitor.org>
f0fab0a to
b234532
Compare
Qualified release evidenceStatus: qualified for The immutable release image contains this pull request's head and no private source patch: Validation:
Merge contract: local-inference-lab/rtx6kpro#67 This pull request remains draft because its comparison base is the exact integration of B12X PRs #145, #146, #148, #149, and #150. Merge those prerequisites into |
|
Closing because this branch is incompatible with the repository master execution contract. It targets GLM-5.2 SQG support should be proposed from |
Status
Implemented and qualified on SM120. Human review is required before merge.
Purpose
Serve
brandonmusic/GLM-5.2-SQG-W4A8revision593dd0d2de6f79ce4e65303930c22c75e1359d44through native B12X kernels.The checkpoint uses Luke Alonso's SQG reconstruction primitive. Its independent
K3/K4/K6 allocation and BMM-Law calibration form Brandon's GLM profile, not the
canonical paired-rate QSRT format.
Resulting behavior
endpoint with independent K3/K4 expert partitions and direct E4M3 weights.
small-row kernel decodes the exact T12 codebook inline; larger row counts use
the generic Trellis scheduler.
CUDA graph capture. Replay performs no allocation.
unqualified launch schedules before execution.
Dependency and scope
The comparison base
agent/pr197-base-glm52-sqgis a read-only integration ofthe exact heads of B12X PRs #145, #146, #148, #149, and #150. It gives reviewers
a one-commit SQG diff while those prerequisites remain unmerged. Merge those
five PRs into
master, retarget this PR tomaster, and delete the comparisonbase branch.
The SQG implementation preserves PR #150's preallocated FC1 preparation output;
it does not restore the allocation-producing
torch.stackform. This PR doesnot duplicate PR #129, which serves canonical Fruit QSRT atoms, or PR #149,
which validates the W4A8 rate contract without adding the GLM route-packed
runtime.
Validation
tests skipped.
192.168.0.69: 94 passed in 118.12 s.and routed outputs with independent references, checks scratch upper bounds,
and replays both endpoints in CUDA graphs.
graphs: 31.3 tok/s C1 decode and 2,856 tok/s 8K prefill.
0.12375 with NVFP4 KV. The BF16-equivalent KV diagnostic measured
0.07865.
AI assistance: OpenAI Codex was used for implementation, profiling, tests, and
PR drafting. A human maintainer must review and defend the change before merge.