interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

[27B P1] Connect native HTTP serving to bounded multi-session scheduling

Open · #716 · open 2026-10-23 23:03 UTC

Imported from GitHub aien-dev/aien-sovereign-core-mv#716, by drakestapleton

drakestapleton wrote on 2026-10-23 23:03 UTC

Parent delivery index: #715. New first-party implementation/tests/automation are handwritten seeded .om; use existing compiler, runtime and migration owners. Reconcile current heads, PRs, comments, consumer pins and recovery archives before edits. No permanent Rust/C/.osc/Python implementation or hidden third-party inference engine. Qualify affected replacements before deleting superseded active code. Preserve live service, driver state, visibility and existing hardware coordination. Exact hashes, commands, raw results, negative controls and independent final-source review are required. Hardware NOT_RUN is not PASS.

Confirmed gap

Main server.rs blob c826703f67befa6538ed655bc58f35f074d716b4 returns 503 at try_lock_owned while one generation runs. qwen38/serve engine blob 3a593a8a8621f2bacb01f132c9665d11187362fe owns a single Qwen38Session. Existing aien-scheduler has batching primitives; its max_batch_size=64 is not measured model capacity.

Ownership/dependencies

Extend #642 and the existing scheduler migration under Omega #666. #710 establishes the baseline; #713 owns complete state. #485 continues to own storage overlap. This issue owns endpoint/session admission and progress, not a second scheduler or the shared verification kernel.

Acceptance

  • Define narrow .om submit/admit/step/cancel/finish contracts with stable session incarnation IDs, per-session token/RNG/stop state and explicit ownership of KV, recurrent and convolution state.
  • Route real JSON and SSE requests into the scheduler. Bound waiting requests, token work, connection/output queues and all resident/staging/scratch memory. Request floods cannot create an unbounded waiting queue.
  • Explicitly requested parallelism that cannot fit refuses before serving; automatic capacity reports its effective limit. Include speculative scratch and reserved commit storage in admission.
  • Preserve one owner of device execution while interleaving eligible sessions/chunked prefill. Do not replace a global mutex with racing model calls. Distinguish queued admission, interleaved progress and actual batched GPU execution in metrics.
  • Test two requests make progress before either finishes; mixed long prefill/short decode; independent/shared prefixes; FIFO/fairness policy and bounded waiting; stream backpressure/disconnect; EOS/stop/context edge; cancellation, stale completions and slot reuse; OOM recovery; no duplicate/missing published tokens.
  • Overload errors are documented and wrapped consistently; 503 is for capacity exhaustion, not every second request.
  • Under fixed workload and exact qualified artifact, run 1/2/4/8 sessions when memory permits. Report completed requests, aggregate useful output / workload wall time, per-request TTFT/inter-token latency, p50/p95 completion, memory and fairness. Unsupported counts are explicit, not extrapolated.
  • Batch-one behavior and quality remain within #710's frozen contract. Demonstrate endpoint-to-backend routing with hashes and traces; host scheduler tests alone do not prove 27B GPU concurrency.

No comments.

Sign in to comment