Skip to content

🥈 [SR-02] trainer-runner — E2E TTT O(1) per-chunk core #454

Description

@gHashTag

Soul-name: Chunk Champion · Codename: LEAD · Priority: P1-HIGH · Kingdom: Cross-kingdom
Ring: GOLD I trios-igla-race-pipeline / SR-02
Part of: #446
Blocks: SR-04 gardener, SR-ALG-03 e2e-ttt, BR-OUTPUT
Blocked by: SR-00 (issue 2), SR-01 (issue 6), SR-03 (issue 5)

Goal

The E2E TTT O(1) core. Move sampler.rs (11 K, the per-chunk sampler) + attn.rs (11 K) + gf16.rs (12 K) into SR-02. Add a versioned git dep on gHashTag/trios-trainer-igla under features = ["trios-integration"] per the SoT mandate. Do not re-implement trainer code.

Acceptance criteria

  • rings/SR-02/ with I5 trinity.
  • Deps: SR-00 + SR-01 + trios-trainer-igla = { git = "https://github.com/gHashTag/trios-trainer-igla", features = ["trios-integration"], rev = <pinned-sha> } + feature-gated tch (cpu-only by default).
  • Public API: TrainerRunner::stream_chunks(&Job) -> impl Iterator<Item = ChunkInput>, step_one_chunk(ChunkInput) -> Result<ChunkBpb, RunnerErr> amortised O(1).
  • Microbench: step_one_chunk p99 < 50 ms (CPU baseline champion.toml config).
  • INV-3 GF16 closure (Lucas) check active inside step_one_chunk.
  • Backward-compat re-exports in crates/trios-igla-race/src/{sampler,attn,gf16}.rs.
  • Integration test: 1 fake seed, 10 chunks, BPB row written via SR-03.
  • PR closes this issue, Agent: LEAD trailer.

🌻 phi² + phi⁻² = 3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions