Repository navigation
Conversation
…kSlots > MAX_NCOLS does not throw (Fixes simplexai-labs#355)
|
Thanks for the pull request. To keep the tracker readable, every item needs an area prefix in the title and the parts of the pull request template filled in. This one is missing:
Edit the pull request (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment Details: CONTRIBUTING.md |
|
Thanks, this follows the format now. |
This was referenced Nov 26, 2026
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.
Fixes #355.
Problem and result
On
v0.2.20-poly.5(d62dfacbe), passing--expert-gpu 1onInkling-2-Mini-UD-Q4_K_XL.ggufimmediately threwstrata-poly: native MMVQ requires 1 <= ncols <= MAX_NCOLS(exit code 1) insideExpertCard::ExpertCard()before loading finished.Computing the single-column
Q8_1byte size (native_q8_1_bytes(n) * kCpuRows/kSlots) fixes the crash:--expert-gpu 1loads745 / 745remaining experts onto GPU 1 (3657 MiB) and decodes cleanly at61.08 tok/s(99.6%VRAM hits).Approach
engine/src/poly/expert_card.cpp: Replacedkernels::native_q8_1_bytes(n_embd, kCpuRows)andkernels::native_q8_1_bytes(n_ff, kSlots)withkernels::native_q8_1_bytes(n_embd) * (size_t) kCpuRowsandkernels::native_q8_1_bytes(n_ff) * (size_t) kSlots, matchingiq_slot_lanes_test.cuandengine.cppsokSlots(16) andkCpuRowsdo not tripvalidate_shape(n_in, ncols)(MAX_NCOLS = 8).Validation
Tested on Windows 11, RTX 5080 16 GB (
sm_120) + RTX 4060 Ti 16 GB (sm_89, PCIe Gen4 x2), CUDA 13.4,v0.2.20-poly.5(d62dfacbe):strata-poly.exe --model Inkling-2-Mini-UD-Q4_K_XL.gguf --expert-gpu 1 --kv fp8 --max-context 32768 --tokens @ids302.txt --max-new 256:exit code 1(native MMVQ requires 1 <= ncols <= MAX_NCOLS).exit code 0,745 / 745experts on GPU 1 (3657 MiB),prompt 302 tokens 240.1 tok/s,generated 256 tokens 61.08 tok/s(99.6%VRAM hits).Limits
ExpertCardscratch allocation crash;--expert-gpustill routes via host (moe_cardand DSpark remain off underecard_).