Repository navigation
Conversation
…uences on one program - Seats ring: a program of M seats passes every seat each lap; the seats wrap a single-sequence build, and SEATS=1 writes the sources as before. Hazard checks cover queues rebound in a ring and its handoffs. - Engine seats: the ring serves Pie's lanes, one per seat. A seat whose lane leaves what it ran starts again from 0 with its rows forced. Greedy readouts are taken by argmax. - Shared KV pool: the seats take KV windows the host states in one pool. A plan's positions are the per-sequence limit. Windows grow in place where they can, a free seat keeps an even share, and Pie's pages come from the pool. wafer-bench --seats/--windows runs a ring bare. - Fixes: a lane waiting for an execution seat does not hold the scheduler's frame gate; a one-sequence program serves one lane a fire and its launch writes its first token id; Kv::history keeps a slot's next lane's prefix.
This branch has not been deployed
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.
A program of M seats serves M sequences on one wafer program: every lap passes each seat once, so decode throughput scales with concurrent streams while a single stream keeps its speed.
wafer-bench --seats/--windowsruns a ring bare.runtime/scheduler/frame.rs, only when admission is capped); a one-sequence program serves one lane a fire (was replaying history per token); its launch writes the first token id (Gemma E2B/E4B);Kv::historykeeps a reused slot's prefix.CS-3, pie serve, 256 tokens, aggregate decode tok/s (bare ring in parentheses):
Every stream equals its solo run; bare M-seat runs match M=1's hash, including uneven and moved windows. A 2000-token stream beside short ones decodes at ~1,880 tok/s. Gemma and gpt-oss stay M=1.
Tests: engine-cerebras 31, kernels-cerebras 77, runtime 163, worker 11; fmt and clippy clean.