Repository navigation
Conversation
…d-built copy GLM's CUDA sampler redeclared sample.cu's Rule and filled it by hand (near 20.0 literal), as MiniMax M3 did before #2680. It now takes cuda.sample.Rule and cuda.sample.rule, which reach the core rule through lanes.Sampling.gpuRule. Byte-equal: a host test checks the old hand-built rule against rule and ruleFor over a 4,500-setting grid; the greedy gate (check) is ruleFor's.
The default pass held 1,536 rows while another stream decoded, so a long prompt ran in passes of 1,536 and each lane admitted 1,536 rows a pass. It holds 3,072 now: a long prompt takes about half the passes, and each one holds twice the rows. A row's bits do not depend on how many rows a pass holds. splitK reads the weight's shape alone, planSlices gives both sizes the fused plan with one K-slice order because the fused floor is 256 rows, and every other prompt kernel computes a row from its own inputs and its absolute position. The change moves launch grouping and the pass's device scratch, not the arithmetic. The scratch at the default grows with the rows, so the test that bounded it at two gigabytes bounds it at three and names the default it prices. The startup line's default pass and the serving pin file follow, and a server started at one stream keeps its 8,192-row passes, so only a server with more than one stream changes.
…tests and docs The empty-setting test expected 1536 and the environment table, its help and the recipe still named it as the default. The test now expects default_chunk for an empty setting and keeps an explicit 1536 case.
Owner
Author
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.
CI for a landing train: #3705 #3726 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.