# Qwen3.8-Flash-Next on 16 Trainium2 chips, tuned by ServingStudio and VibeSys Qwen3.8-Flash-Next (BF16, all 48 layers) served on one `trn2.48xlarge`: 16 Trainium2 chips, 64 logical NeuronCores. Each round, an agent using [ServingStudio](https://github.com/SyFI-ServingStudio/ServingStudio), our simulator for LLM serving systems, picked one bottleneck. A fresh VibeSys run then implemented a fix for it. In 12 rounds, profile A's output throughput rose from 404 to about 1,245 tok/s (3.1×). - **Hardware and model:** one `trn2.48xlarge` running Qwen3.8-Flash-Next BF16, all 48 layers. - **Profile A** (the headline metric): DP8/TP4, MTP with one draft token, and a burst of 64 requests of 8,192 input and 1,024 output tokens. The metric is output throughput. - **Profile B:** DP4/TP8, with 128 requests arriving over 8 s. - **Starting point:** an engine seed written for the simulator work, with TP, EP, attention data parallelism, MTP, a block-table KV cache and `nkilib` kernels. Round 1 had VibeSys build a live HTTP service on top of it. - **Agents:** every agent, the outer orchestrator and every VibeSys role, ran Claude Code with Opus 5.5 at effort `max`. The 12 rounds took 18 VibeSys runs over about four days and roughly $800 in API usage. ## How a round works Each round is one Tick → Tock → Probe cycle. The full procedure is in [`PROCEDURE.md`](campaigns/opus55-restart/PROCEDURE.md) and [`EXTENSION-rounds7-16.md`](campaigns/opus55-restart/EXTENSION-rounds7-16.md). 1. **Tick.** The orchestrator profiles where time goes in the current engine, explores what-ifs in the simulator, and sometimes runs a quick test of the fix on the hardware. It then writes a **handoff** ([example](campaigns/opus55-restart/rounds/round11/HANDOFF.md)), a document for VibeSys that covers: - one change and why it should help; - which files may change; - which tests the result must pass: bit-identical, or within the engine's existing BF16 tolerance; - which measurement decides whether to keep it. The handoff is frozen before VibeSys starts. 2. **Tock.** One fresh VibeSys run implements the handoff. 3. **Probe.** A protected evaluator runs the tests and measures the candidate against matched runs of the unchanged engine. The orchestrator keeps or rejects it by the frozen rule ([example](campaigns/opus55-restart/rounds/round11/DECISION.md)). ## Results | Round | Change (one bottleneck per round) | Decision | Key result | |:--|:--|:--|:--| | [1](campaigns/opus55-restart/round1/DECISION.md) | Live HTTP service on the original seed | retain | A 403.7 tok/s | | [2](campaigns/opus55-restart/rounds/round2/DECISION.md) | Run only the active prefill MoE expert blocks | retain | A 478.8 tok/s (+19%) | | [3](campaigns/opus55-restart/rounds/round3/DECISION.md) | Prefill MoE routing → block mapping on device (NKI), bit-identical | retain | A 809.4 tok/s (+70%) | | [4](campaigns/opus55-restart/rounds/round4/DECISION.md) | Decode MoE as expert-layout einsums | retain | A 893.2 tok/s; A time per output token −20% | | [5](campaigns/opus55-restart/rounds/round5/DECISION.md) | Scatter-free decode affinities under a bit-identical gate | reject | 20 of 28 seam cases bit-identical | | [6](campaigns/opus55-restart/rounds/round6/DECISION.md) | Same change under the tolerance gate | retain | A 1,057.0 tok/s; A time per output token −6% | | [7](campaigns/opus55-restart/rounds/round7/DECISION.md) | QSA prefill attention as exact masked-dense attention | retain | A 1,124.3 tok/s; A time to first token −15% | | [8](campaigns/opus55-restart/rounds/round8/DECISION.md) | Scatter-free selection mask and query chunking for that path | retain | B time to first token −11%; A −6% | | [9](campaigns/opus55-restart/rounds/round9/DECISION.md) | Balanced static MoE expert placement | retain | A time to first token −8% | | [10](campaigns/opus55-restart/rounds/round10/DECISION.md) | No routed-expert work for idle data-parallel groups in prefill | retain | B time to first token −16% | | [11](campaigns/opus55-restart/rounds/round11/DECISION.md) | Prefill context bucket from the chunk's real end | retain | A time to first token −5%; A 1,263.2 tok/s | | [12](campaigns/opus55-restart/rounds/round12/DECISION.md) | Decode MoE over the active local experts (NKI) | retain | B time per output token −12%; A 1,242.9 tok/s | | [13](campaigns/opus55-restart/rounds/round13/STATUS.md) | No routed-expert work for idle data-parallel groups in decode | unfinished | Stopped before its official measurement | Profile A's throughput varies by about ±8% between runs of identical code, because it depends on how many draft tokens the last few requests accept. Most handoffs therefore used a steadier latency metric to decide. Two later re-measurements of the final engine gave 1,245.1 and 1,246.6 tok/s. Per-round numbers, noise bands and caveats are in [`RESULTS.md`](campaigns/opus55-restart/RESULTS.md). **Numerical scope.** Every change had to be bit-identical, or stay within the engine's existing BF16 operator tolerance against a CPU FP32 reference, on frozen seam tests. Live behavioral checks ran every round. The seed's original exact replay test already failed on the unchanged seed, so it is reported as `inherited_failed`, and full model accuracy is not established. ## What's here | Path | Contents | |:--|:--| | [`handover/source/claude-final/`](handover/source/claude-final/) | **The final engine** (round 12). The engine is `flashnext/neuron/`, the HTTP service `flashnext/service/` and the CPU FP32 reference `flashnext/reference/`. The tasks VibeSys was given, including the protected evaluator and each round's frozen handoff, are under `.vibesys/tasks/`. | | [`handover/source/seed/`](handover/source/seed/) | The original engine seed (94 files) that round 1 started from. | | [`handover/source/patches/`](handover/source/patches/) | Per-round diffs. For each round there is a task-freeze diff (the frozen handoff and trusted test changes) and a candidate diff (what VibeSys wrote, rejected candidates included). [`REVISIONS.md`](handover/source/REVISIONS.md) maps every run, revision and decision. | | [`campaigns/opus55-restart/`](campaigns/opus55-restart/) | One directory per round: the handoff (`HANDOFF.md`, `handoff.json`), the Tick evidence (`tickN/`), the source diff, reviews, measurement summaries and the decision (`DECISION.md`). Round 1 is in `round1/`; rounds 2–13 are in `rounds/`. | | [`handover/simulator/`](handover/simulator/) | The ServingStudio simulator revisions and source used, presets and workloads, analyzer reports and fidelity findings. | | [`handover/environment/`](handover/environment/) | Container image digest, Neuron SDK packages, model revision and tool versions. | | [`handover/orchestrator-tools/`](handover/orchestrator-tools/) | The orchestrator's measurement and analysis scripts. | | [`handover/agent-sessions-supplement/`](handover/agent-sessions-supplement/) | The ServingStudio agent session that produced the engine seed and the first handoff. | | [`agent-logs/`](agent-logs/) | Agent logs (below). | ## Agent logs Under [`agent-logs/campaigns/opus55-restart/`](agent-logs/campaigns/opus55-restart/): | Path | Contents | |:--|:--| | `agent-transcripts/orchestrator-NNN/transcript.md` | The outer orchestrator (the Tick and Probe agent), rendered as Markdown. Each number is one restart of the orchestrator process. | | `vibesys///` | One directory per VibeSys run (the Tock). `README.md` indexes the run; `conversations/` has every role's conversation (orchestrator, implementer, judge, profiler) as Markdown; `run-timeline.md` lists the framework events; `core-events.jsonl` is the full event journal. | | `control/` | The orchestrator's prompt, its progress notes and its review of each candidate. | Identifying information (names, email addresses, EC2 hostnames, IP addresses and instance IDs) has been redacted, and credentials were removed when the logs were archived. Raw provider session files, raw measurement bundles (per-request client records and service logs), compiled Neuron artifacts and model weights are not included. Some records link to the original private campaign repository or to those raw bundles; those links do not resolve.