Outcome
Create a small standalone public repository for the AIENOS side of the shared-context test first. Proposed repository: aien-dev/aienos-branch-bench (not yet created). It must run and report the AIENOS experiment without installing or running TandemLLM.
Then prepare the equivalent small TandemLLM test repository using the same frozen workload and result contract. The other contributor can add/own their engine-specific adapter. Compare results after both repositories produce real receipts.
Fixed test
- One DGX Spark, daily Qwen3.8-27B artifact pinned by revision, file hashes, tokenizer/template, quantization and KV/recurrent precision.
- Exactly 32,768 shared input token IDs, four fixed branch suffixes, greedy, maximum 256 new tokens with natural EOS. Speculation and response caching disabled.
- Independent condition: release four private-state requests together with prefix reuse off.
- Shared condition: compute the prefix once, then fork/copy the complete model state into four isolated branches; include initial prefill and fork/copy cost.
- Five measured repetitions per condition: ten AIENOS trials. Excluded warm-up and reset before each trial. The TandemLLM repo later runs the same ten-trial contract.
- Measure branch and end-to-end TTFT, actual decode tok/s, total/aggregate output rate, loaded idle and peak unified memory, outputs and first token divergence.
Repository deliverables
- Create the small public AIENOS test repo; publish spec, deterministic fixture generator/exact token IDs, one-engine config, runner, adapter contract and reproducible run command.
- Name AIENOS as the product; record the actual sovereign-core/Omega/CUDApp stack and immutable pins instead of calling CUDApp alone a model engine.
- Make one-engine execution and validation work independently; TandemLLM must not be a build/run dependency.
- Pin a contract version, workload digest, schema and numeric/sampling settings that the later TandemLLM repo can reuse verbatim. Preserve identical input token IDs.
- Implement and qualify the actual AIENOS adapter under #33. Clearly label missing integration and synthetic smoke data; no placeholder is a working engine.
- Record effective concurrency versus queueing, complete branch-state isolation, cache reset and actual runtime optimization flags.
- Keep raw tokens, timing and memory samples, stop reasons, source/build/model hashes, failures and reproduction commands in public receipts without private inputs.
- Run ten real AIENOS trials on the final qualified Spark artifact and publish exact correctness findings, or publish an explicit BLOCKED report.
- After the AIENOS run, prepare the corresponding TandemLLM test repo using its existing side-slot/parallel verification code; let its contributor finalize the native adapter.
- Compare like-for-like results from both repos, with first-divergence/numerical diagnostics separate from exact parity.
Dependencies and boundary
AIENOS readiness is #33, reusing existing #5 and sovereign-core#642 work. TandemLLM issues #29/#30/#31 are optional later opportunities and do not block the AIENOS repository or run. A neutral joint repo and an upstream patch are not prerequisites.
Upstream reference baseline: 632c965aebbd7822c61ae0c75da383f419597a32; reinspect when preparing that side.
Keep Phase 2/3, new kernel research and backend replacement deferred until there are measurements. Preserve the live motor and use an operator-coordinated Spark measurement window. Do not substitute a different model if the AIENOS 27B path is not qualified.
Research follow-up: tighten Phase 1 measurement without expanding its scope
- Treat framework allocator peaks as partial accounting. TandemLLM's
engine/kvpool.pyuses directcuMemCreate; PyTorch documents that these allocations are invisible to its memory profiler. Record pool committed bytes alongside system used/PSS and any available device counters; distinguish reserved VA from committed physical pages and avoid summing overlapping views. - Check decode adequacy before freezing the workload. The current scaffold asks for a short ledger code, which may produce only a few tokens. Keep natural EOS; if the measured continuation is too short to characterize steady decode, label decode evidence insufficient. Agree a versioned substantive fixed-output task before timing if sustained decode is required; do not suppress EOS, pad tokens or compare different workloads silently.
- Specify timing boundaries and backend completion semantics. Use monotonic host timestamps for user-visible latency and backend device timing only as diagnostics. Warm up and synchronize at required boundaries; do not add global per-token synchronization that destroys the concurrency being measured. Native AIENOS timing must not acquire a CUDA/PyTorch runtime dependency.
- Instrument actual common-prefix work and copy/fork bytes. A cache-hit flag or four submitted requests alone does not prove once-only prefill or joint execution.
Sources: PyTorch CUDA memory visibility, asynchronous execution and streams. These are accounting/timing requirements, not predicted Spark gains.