Priority: P1 — higher potential GPU payoff, integration-dependent
Agent ownership (after dependency clearance): crates/aien-serve-http/src/omega_engine.rs, generation controller/adapter API, focused integration tests
Estimated effort: 1–2 days after related PRs settle; GB10 qualification additional
Goal
Connect eligible greedy HTTP requests to AIEN's existing one-command-list Omega decode graph and chip argmax, without changing the server's deterministic sampling and sampling receipts. This is an integration task, not a new inference engine.
Observed on main (rechecked 2026-10-17)
qwen3_moe_omega_dgraph.rsimplements opt-inOWN30B_DECODE_GRAPH=1anddgraph_take_greedy.Qwen3MoeOmegaEngine::generate()usesargmax_sampler=truefor greedy requests.- The HTTP OmegaDoor currently calls
OmegaEngine::generate_with(... sampler ...). The custom callback provides no explicit greedy capability, so graph logits can be read back on greedy requests rather than consuming the already-chosen token. - Chip harness, not HTTP, evidence on idle GB10 reports graph OFF 36.3 tok/s versus graph ON 39.8 tok/s for a matching prompt (October 15). HTTP speed benefit is not yet established.
Dependency / parallel-work rule
- Do not implement overlapping files until PR #557 (ForwardPass/controller migration) and #595 (Omega door follow-ups) have merged or closed. Then re-read
mainand confirm this gap persists. - Until then the agent may prepare a test matrix/design note without edits to overlapping files.
- Do not branch from unmerged PR heads unless explicitly coordinated with the maintainer.
Implementation after revalidation
- Introduce an explicit, typed capability or provable contract that tells the generation path when the HTTP sampler is exactly greedy argmax. Do not infer this from an arbitrary closure.
- For eligible greedy graph steps, consume the GPU token directly rather than read back full-vocab logits; maintain correct
usage.aien_samplingfields and greedy token counters. - Sampled requests retain logits readback and the existing seeded sampler. Keep stop-token, max-token, streaming/cancellation, context, KV restore and generation identity, GPU lock and error envelopes unchanged.
- Leave
OWN30B_DECODE_GRAPHopt-in; do not silently enable the graph by default.
Acceptance criteria
- Fake/CPU tests prove the GPU-token path triggers only for eligible greedy requests and updates each sampling record exactly.
- Eligible greedy graph steps perform no extra full-vocab GPU-to-host readback; sampled requests continue to read back when required.
- Identical greedy reference tokens, stop boundaries and max-token behavior; seeded non-greedy transcripts/receipts unchanged.
- Graph OFF behavior unchanged; graph ON native correctness validated where hardware exists.
- Actual HTTP serving path A/B on idle GB10: same model/pins/weights, prompt set, output length, options; record throughput, TTFT, submissions per step, readback counts, per-run SHA and variance. No cherry-picked headline.
-
cargo test --locked -p aien-serve-http -p aien-inference-abiand relevant chip/ABI gates pass, or blockers precisely documented. - Narrowly scoped and revertible PR; no speculative decoding or unrelated refactor.
Ownership boundaries
Issue #623 owns sampling.rs and sampler-specific tests. This issue owns omega_engine.rs and the generation adapter only after #557/#595. GPU isolation owns scripts/ops notes only. Coordinate necessary APIs, avoid simultaneous edits.
Source: https://github.com/aien-dev/aien-sovereign-core-mv/blob/main/crates/aien-serve-http/src/omega_engine.rs
GPU graph: https://github.com/aien-dev/aien-sovereign-core-mv/blob/main/crates/aien-inference-abi/src/qwen3_moe_omega_dgraph.rs
Blockers: https://github.com/aien-dev/aien-sovereign-core-mv/pull/557 and https://github.com/aien-dev/aien-sovereign-core-mv/pull/595