Repository navigation
DeepSeek V4.1 remote prefill: leave the Mac only the last prompt token (TF_PREFILL_TAIL) - #99
Closed
BlivionIaG wants to merge 1 commit into
Closed
BlivionIaG wants to merge 1 commit into
BlivionIaG wants to merge 1 commit into
Conversation
…n (TF_PREFILL_TAIL) The Mac now asks the producer for the whole prompt: the export stands one token short of it and the Mac runs that token as one decode-class step instead of a 96 to 461 token prefill pass after the 512-token boundary. The policy gains a tail count (0 keeps the chunk rule); no wire, manifest or producer change.
Owner
Author
|
Published upstream as a draft instead: ashhart#3597. |
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
Before, the Mac runs the part of a prompt past the pair's last chunk boundary (96 to 461 tokens after the 512-token boundary) as a prefill pass. After, by default (
TF_PREFILL_TAIL=1) the Mac asks the producer for the whole prompt but one token: the export stands one token short and the Mac runs that token as one decode-class step.TF_PREFILL_TAIL=0keeps the chunk rule. The policy gains a tail count; no wire, manifest or producer change. Slice 9 of the chain in ashhart#3553.mixed/m3-breaker), on top of the mergemixed/m0-lane-base. This PR adds one commit:be668ff745.atc overlap --json: not run: this PR is on the fork. It runs when the slice is opened upstream.Checks on this head
be668ff745python3 tools/zig/lean_check.py, on the parent head and on this head: 339 problems on the parent head, 339 on this head, 0 new (tools/zig/lean_new.py).zig build -Dfixed-cpu test-native --summary all: 173 pass, 0 fail, 3 skip.zig build -Dfixed-cpu test-lane-api-host --summary all: 709 pass.zig build -Dfixed-cpu test-dsv41-handoff --summary all: 94 pass†.zig build -Dfixed-cpu test-dsv41-env-host test-environment-host --summary all: 14 and 23 pass†.zig build -Dfixed-cpu test-dsv41-draft --summary all: 139 pass†.zig build -Dfixed-cpu test-fabric-scratch --summary all: 60 pass†.compile-dsv41-server: exit 0†.zig fmt --check build.zig zigandgit diff --check: clean.tools/pr_check.py --base <parent>: 0 errors, advisory warnings only (--pr, and a documentation example address0.0.0.0where listed).zig build test test-golden(full suite),dev-tools,test-exl3-gpuandtest-deepseek-v41on this head, any Metal run of this slice on its own. † counts were measured on the tree before a test-only fix tozig/src/native/qwen27_handoff_test.zig; those steps do not compile that file. The failing-before check for the new tests was not done.Receipt
--prefill-from.TF_PREFILL_TAIL: default 1, a whole count of prompt tokens the Mac prefills itself after the pull (0 cuts on theTF_PREFILL_CHUNKboundary); row indocs/environment.md, registered inplatform/environment.zig(scope metal). It changes the default of--prefill-fromfor DeepSeek V4.1.Checklist