Repository navigation
glm sp: the pair gathers MoE and MLA inputs quantized by default (retires ATLAS_GLM_SP_QUANT_GATHER_PAIR; cold prefill −3%, exact) - #383
Merged
Conversation
…_GLM_SP_QUANT_GATHER_PAIR PR Atlas-Inf#347's mode 1 measured bit-exact against mode 0 on the two-rank pair and ~3% faster on cold prefill, so the pair now always takes it; mode 2 was never output-validated and gained nothing, so it is deleted. One fewer env var on the budget. Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
Merged as |
Contributor
Author
|
@data-angel, here are profile notes from the pair (reiner + spark2), in case they're useful for SparkGLM. Fingerprint: same as the gate above, main
|
Contributor
|
@AzeezIsh thanks for these notes.
|
This was referenced Nov 16, 2026
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ATLAS_GLM_SP_QUANT_GATHER_PAIRis retired. Mode 2 (128-row chunk cut + KDA quantized gather on the pair) was never output-validated and measured no extra gain in glm sp: quantized MoE and MLA gathers on the pair (cold prefill +3.1%, exact) #347, so it is deleted rather than kept behind the switch. That's one env var fewer (check_env_budget.py: 1136 → 1135).@data-angel this builds directly on your #347. Your mode 1 was exact and faster on our pair, so this makes it the default and drops the switch.
Pair gate (2x DGX Spark, reiner + spark2, TP=EP=2)
Fingerprint: GLM-5.3-Flash-FP4-Local @ 76348ddb + DFlash2 @ 7d74cdd8. SparkGLM 0.3.2's
serve.py4x1m spark-mode launch (KV shard on,--gpu-memory-utilization 0.91), with only argv[0] swapped. Binaries are built from fresh clones atd8bcc1785(main) and5ebf67df9(this PR), and are sha-matched on both ranks. There are 2 boots per arm, interleaved. 2026-11-16,glmgate.job.sh qg.GLM SP MoE quant gatherandGLM SP MLA quant gatherwith no switch set; main's log shows neitherBench medians (n=4 per cell for TTFT/conc, n=6 for decode), observed under the fingerprint above:
This matches #347's own
ATLAS_GLM_SP_QUANT_GATHER_PAIR=1arm from the 11-15 gate (TTFT 16K 4.90, 28K 8.18, bit-exact).Tests
glm_sp_tests::every_sp_split_gathers_quantized: pair and chain splits gather quantized, and a lone rank does not.glm_prefill_sp::tests::only_the_chain_cuts_its_chunks_to_the_tile_grid: the pair keeps its chunks, piped or not.cargo test -p spark-model --lib glm_sp(68 passed),--lib startup_parity(13 passed),--lib glm_prefill_sp(2 passed).ATLAS_SKIP_BUILD=1 CUDARC_CUDA_VERSION=13000 cargo clippy --workspace --tests), typos, SPDX and the LoC cap are all clean.Generated with Devin