Repository navigation
perf(deepseek): prompt spans, a lent-slot fix and Strata 0.2.6 on one host - #143
Merged
Merged
Conversation
A wide call sets the next layer's successor only after another wide call, so a prompt span's repeated calls to one layer and the narrow calls between prompts no longer clear the bank prefetch. A round candidate that a narrow call routes from a lent slot moved to its cache slot while the call was served, and a miss of the same call could take the freed lent slot and overwrite it before the call's cached pairs read it. Such candidates now land at a later call. The lent_landing test reproduces the overwrite without the fix.
With host or disk experts, every chunk of a span of up to 16,384 tokens passes a block before any passes the next, so each block's experts cross the bus once per span. Beside the elastic expert cache the span borrows its buffers from the cache while it runs; a span the cache cannot lend them to runs chunk by chunk.
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.
DeepSeek-V4.1-Flash prefills in prompt spans, the shared expert delivery no longer lets a miss overwrite a lent slot its own call reads, and the docs compare NInfer with Strata's latest release on one host.
Changes
--expert-cache-mibthe buffers stay in the workspace.core/expert_delivery: DeepSeek-V4.1-Flash, Gemma 4, Flint, native Qwen3.5 MoE). A round candidate that a narrow call routed from a lent slot moved to its cache slot while that call was served; a miss of the same call could then take the freed slot and overwrite it before the call's cached pairs read it. Such candidates now land at a later call.strata-dsv410.1.51) and NInfer on one RTX 4090 host, spans, 16 GB (RTX 4090 held to 16 GB and a Tesla V100), README What's New, performance and GPU tables.Verification
RTX 4090 (Vast, 2x EPYC engineering samples, 409 GiB RAM, driver 615.71, CUDA 13 build):
ninfer_expert_delivery_test: all 25 cases pass with host and disk sources. The newlent landingcase fails without the fix (229,184 wrong values, host and disk) and passes with it.--expert-cache-mib 8150(spans of 4,096) 3 of 3 differed, by 0.0004 to 0.021; default cache (spans of 16,384) 3 of 3 equal. Tokens were equal in every run.Not verified