Repository navigation
deepseek: bound index scratch before planning and pricing - #1681
Merged
Merged
Conversation
Adapt JustLateNightAI / Astra's PR jayleaton/deepseek-v41-tensorfold-spark#78 to the current symbolic planner. Bound live index scratch for regular, K4 and both TBO branches before workspace reuse and pricing. Preserve the failing baseline extent receipt and test ragged shapes and the materialized TBO counterexample without changing arithmetic. (cherry picked from commit 2b11053)
ashhart
force-pushed
the
dsv41-up/index-scratch
branch
from
November 1, 2026 02:33
e07ee9f to
daa48ba
Compare
Owner
|
Thank you @jayleaton. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
8 of 9 tasks
Owner
|
Thanks @jayleaton! DeepSeek-V4.1's prefill planner now sizes the indexer's scratch before it plans, in 1.2.1: https://github.com/ashhart/TensorFold/releases/tag/v1.2.1 |
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.
What this changes
The symbolic prefill planner did not bound the indexer's live scratch before deciding workspace reuse and pricing it. For ragged shapes, and for the materialized two-batch-overlap (TBO) branch, the planned extent could be smaller than what the indexer uses. This bounds live index scratch for regular, K4 and both TBO branches before workspace reuse and pricing. Arithmetic does not change.
This is adapted from JustLateNightAI / Astra's downstream PR (jayleaton/deepseek-v41-tensorfold-spark#78) to the current symbolic planner.
Issue: none open upstream. Stacked on: nothing (based on main
3f0a715c4; the 35 later main commits, toa0d24896f, touch none of its files).Receipt
e07ee9fddba5on main3f0a715c4; Zig 0.17.0; host checks on a Linux aarch64 DGX Spark (GB10, CUDA 13.0). Real-pack boot on two GB10s, TP=2 over RoCE, checkpointjayleaton/DeepSeek-V4.1-Flash-1017-EXL3-2.8bpwrevision859396591c34,TF_EXPERIMENTAL=deepseek.L.ix.keysno longer shares the prefill workspace there.index_scratch_test.zig): it keeps the failing baseline extent receipt, then checks ragged shapes and the materialized TBO counterexample against the new bound.83ba53298924: passed. Both ranks reached readiness; the recipe smoke, the canary and a strict tool call passed;MissingTritonVariant0 in both rank logs; 2048 greedy tokens in 51.1 s withtoken_sha2567538b20557b1…, the same as the downstream build of this series.Checklist
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo. (Not measured for this change alone.)SUMMARYline is in the receipt. (No kernel changes.)test-dsv41-forward.)