Repository navigation
Flash Next native: single-stream measures and options (split graphs at the gathers, draft knobs), init fix - #7
Closed
BobClawblaw wants to merge 7 commits into
Closed
BobClawblaw wants to merge 7 commits into
BobClawblaw wants to merge 7 commits into
Conversation
…; TENSORFOLD_FN_CONFIDENCE sets the draft cut Development measures for the draft and round tuning: each call kind's ms a round and the host's time between calls, logged every that many rounds; the head's confidence cut (0.70) as a knob both ranks read.
The engine is built field by field, so a field's default never applies: the verify timing flag (events around every step when set) and the counters were whatever the allocator's memory held.
…aits for others to share its prompt pass Requests sent together arrive a few ms apart; the first, admitted alone, held the rest up for its own prompt pass.
…, in one graph and between split graphs
…gather (TENSORFOLD_FN_SPLIT_GRAPHS) The gathers then run eager between the graph segments, the same work in the same order (the payload and the sum untouched). fn-native's "split" word runs the exactness checks that way.
… each held draft (step, chain or off) step (as before): the head's probability given the drafts before it; chain: its chance of landing (the product); off: no per-node chances, the depth rule sizes chains from acceptance by depth as the Python engine's Flash Next does.
Owner
Author
|
The split graphs shipped through #9 (merged into native-v1.0.4); the draft knobs were measured and nothing beat the default, so they stay off the branch. |
ashhart
pushed a commit
that referenced
this pull request
Nov 30, 2026
…dy shaders for ashhart#1544 Rewrites the omarchy-derived Vulkan compute shaders from the behavior spec, from cast/copy through the gated-delta state machines to the argreduce pair. omarchy_trig.h becomes vulkan_trig.h (single inv_freq helper, Synthena #6), gated_delta_prefill_ash becomes gated_delta_prefill_oracle, accepting both -DASH_QWEN35 and -DORACLE_QWEN35. PRESERVE_F32 requests OpExecutionMode DenormPreserve (f32) via spirv_execution_mode; sdpa_decode_native pins the single-key bit-exact V transport (Synthena #7) and the 7168-key shared bound. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.
Single-stream measures and options for the native Flash Next engine. Everything is off by default apart from one init fix.
Commits:
TENSORFOLD_FN_PROFILE=<rounds>logs rank 0's backend call times a round (verify, keep, draft, prefill, and host time between calls).TENSORFOLD_FN_CONFIDENCEsets the head's confidence cut, which defaults to 0.70. Both ranks must read the same value.TENSORFOLD_FN_SPLIT_GRAPHS=1ends each captured graph at a cross-rank gather, which then runs eager between graph segments. The payload, sum and order are unchanged.TENSORFOLD_FN_CHANCES=step|chain|offsets what the window allocator receives for each held draft.stepis the current behaviour.TENSORFOLD_ADMIT_GATHER_MSmakes an idle lane host wait briefly so requests sent together share one prompt pass.tf-cuda-test fn-gatherstimes the partial-sum gathers between the ranks: eager, in one graph, and between split graphs.Gathers between the two GB10s, fp32 partials (us a gather; eager / one graph / split graphs):
NCCL_GRAPH_MIXING_SUPPORT=0brings graphs close to eager, but it is unsafe here because we mix graph and eager collectives.NCCL_PROTOand channel settings did not help.Ruler, int8, 256 tokens, one stream (prose / code / structured / list, tok/s), same image and kernel set:
v1.0.4 with the init fix at 16 streams: 300.5 / 506.8 / 386.7 / 525.7. The split graphs at 16 streams were not measured.
The fn-native exactness suite was not rerun on these commits; it is needed before any of the switches is turned on.