Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The earlier RSI pilot kept the trainer and distributed integration outside the agent's editable surface. This adds a reproducible two-GPU qualification workload for the implementation-contract evaluation in #165, and records what the current instrumenter/checker actually supports.
The probe uses a 5,504-parameter Transformer with DDP, gradient accumulation, unequal valid-token counts per rank, clipping, AdamW, a scheduler, and FP32/BF16 modes. An independent combined-batch gradient calculation distinguishes correct global normalization from a local-mean fault. Fresh processes save/resume complete per-rank checkpoints; a typed comparator checks all stored tensor bits, scalar/container types and fields without normalization. API and active subclass tracing have explicit update scopes and suppress bookkeeping.
Measured on Ring18's two A16 GPUs, Python 3.10.14 / Torch 2.2.2+cu121:
Validation: 28 focused tests pass locally and 28 on Ring18 with CUDA visible, configured hooks pass, explicit strict mypy passes over seven modules, and 188 exported artifact hashes verify. The CUDA-hidden configuration separately preserves 26 passes / 2 tracer-startup failures caused by metadata inspection initializing CUDA; the passing configuration does not fix that existing compatibility gap. All study processes have exited and GPUs are idle.
Scope: no FSDP, stochastic dropout, DataLoader cursor recovery, partial accumulation windows, changed world size, FP16 scaler/overflow or paired agent study. Optimizer state is verified independently but not registered with the model tracker; no cross-rank invariant checker is supplied. The reused supervisor's process-group RSS excludes separate torchrun sessions, and its size limit covers API traces only; these limitations are recorded rather than presented as full enforcement guarantees. Large traces/checkpoints remain outside Git.
Stack dependency: based on open #164 (
codex/rsi-pilot-20261030) to use its integrated core and supervision changes. This PR contains only the distributed probe, regression tests, comparator and measurement report; merge/rebase onto main after #164 lands and recheck the composed result. It does not close #165 or establish agent benefit.Full reproduction, source revisions, scope and artifact locations: measurement report.