Skip to content

Benchmark L01 loader modes and HI Small fitting memory - #479

Draft
nittin-murthi wants to merge 9 commits into
codex/pytorch-cuda-measurementsfrom
codex/pytorch-aml-loader-pairs
Draft

nittin-murthi wants to merge 9 commits into
codex/pytorch-cuda-measurementsfrom
codex/pytorch-aml-loader-pairs

Conversation

@nittin-murthi

@nittin-murthi nittin-murthi commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #478. Covers C-148 fit pairing, C-149 CUDA training, C-150 index lifecycle, C-151 CPU loader timing and C-152–153 native length planning from #353. It also covers C-154–155 HI Small fitting memory and C-157 campaign acceptance.

Summary

The opt-in l01 command prepares the first 512 forecast anchors in source order for each of train, validation and test using the six existing LI Medium pins. It runs three fresh/reused fit pairs through the package loader. Each paired-fit worker has a private DiskGraph index and runs two train epochs against the shared prepared inputs.

The reused worker loads its partner’s artifact. It checks the original anchor column bindings and Parquet hash, the saved train selection for both inputs and targets, and the contract and fitted-state fingerprints. The worker checks all 512 training IDs in order each epoch and verifies that reuse performs zero input or target fits.

Testing Done

From packages/experimental/kumo-pytorch, with the pinned data staged in KUMO_PYTORCH_DATA_ROOT:

python -m tests.e2e.runs l01 --e2e-dir "$OUT" --repetitions 3

Verified at f68d91ff on macOS arm64 with a profiling-enabled DiskGraph wheel. All six workers passed. Every epoch delivered 128 batches of four, including 126 post-warmup batches. All 12 epochs recorded native counters. Seed 0, four threads, uncontrolled file pages. The runner retains raw values and median/range separately for each fit mode.

Median across three workers Materialization Epoch 1 Epoch 2
Fresh fit 507.84 ms 450.89 ms 430.25 ms
Reused fit 330.50 ms 438.03 ms 427.81 ms

Artifact loading took a median 14.38 ms within reused materialization. The focused AML and runner tests had 17 passes and six platform or opt-in skips. The 33-anchor loader control, banking control and Ruff passed. Two independent negative checks rejected a changed source binding and a changed anchor hash.

C-149 CUDA training

Select l01-cuda in the kumo-pytorch tests manual workflow. It uses the same pinned population and fresh/reused workers as the CPU command. Each worker trains a Combined graph, causal-history and aggregate model for two epochs with its own model and AdamW optimizer. The bounded training population has labels for both amount and currency on every row.

Verified at 2bf4ad00 on one RTX PRO 6000 Blackwell Server Edition with PyTorch 2.12.0+cu130. Six isolated workers passed all 12 epochs. Every epoch delivered all 512 training IDs in order, recorded 512 eligible values for each head, and performed 128 optimizer updates. All three reloads reproduced their paired contract, fitted state and source binding with zero input or target refits. The GPU training campaign step took 2 min 11 s, including shared preparation and worker startup. RTX job · Raw JSON and JUnit

Pair Fresh, cold Fresh, warm Reloaded, cold Reloaded, warm
1 5.369 s 3.490 s 5.421 s 2.673 s
2 4.580 s 3.505 s 5.593 s 3.524 s
3 5.734 s 3.682 s 5.599 s 3.584 s
Median 5.369 s 3.505 s 5.593 s 3.524 s

Every worker verified zero of 7,493 selected index pages resident before epoch one and all 7,493 resident before epoch two. Each epoch recorded 128 CUDA transfers, 28–50 post-warmup NVML samples, and peaks of 97.13 MiB allocated and 112 MiB reserved. The sampled host-memory intervals completed on Linux. Focused AML and runner checks had 17 passes and six platform or opt-in skips. The CPU loader controls, 12 workflow-security tests and Ruff passed.

C-150 index lifecycle

Run python -m tests.e2e.runs l01 --index-lifecycle --e2e-dir "$OUT" with the same six pinned files. Three CPU workers share one prepared population and one DiskGraph index. Each fits its own inputs and targets from training data and runs two native epochs. The reopen workers require the index to exist. Each worker times DiskGraph’s index ensure/validation call and checks its native ingest count.

Verified at 396fd47a on macOS arm64 with the profiling-enabled DiskGraph wheel. The three workers had distinct PIDs. All six epochs delivered the same 512 training IDs in order across 128 batches each. Each worker fit inputs and targets once and loaded zero artifacts.

Worker Index action Native ingests Index time Epoch 1 Epoch 2
1 Build 1 1,155.336 ms 0.437 s 0.425 s
2 Reopen 0 4.190 ms 0.450 s 0.427 s
3 Reopen 0 1.109 ms 0.481 s 0.461 s

A forced rebuild during reopen failed the native ingest assertion. The existing CPU fresh/reloaded pair passed. The focused AML and runner tests had 17 passes and six opt-in or platform skips. Ruff checks passed.

C-152–153 native history length planning

Run python -m tests.e2e.runs l01 --length-planning --e2e-dir "$OUT" with the existing LI Medium pins. The L01 CPU runner buckets by history length with training disabled and file pages uncontrolled. Previously the Combined graph/history contract fell back to Python batching and recorded zero native length computations or hits. The package now routes supported single-stage, single-rank batches through the native length planner and recognizes L01’s derived event age.

At f2dd4276, all three fresh/reloaded pairs completed two epochs per worker on macOS arm64. Every epoch delivered all 512 training IDs and 10,293 history events across 128 batches with native merge output.

Within each of six workers Lengths computed Cache hits Same cache as epoch one
Epoch one 512 0 Initial population
Epoch two 0 512 Yes

Independent graph comparison checked nodes, edges, ownership and encoded features against the source for both epochs. Discarding the cache before epoch two and removing native history merges each failed the workload as expected. The ordinary CPU fresh/reloaded control passed. The five affected test modules had identical outcomes on the candidate and its parent: 169 passed, 10 skipped and seven existing failures. Ruff passed.

C-154–155 HI Small fitting memory

The manual hi-small-memory mode uses the existing package stager, CPU setup and isolated host-memory runner. It reads the six HI Small pins once. E01–E05 use the full 515,088 accounts and 5,078,345 transactions. The history contracts also use the 9,565,478 account-role events. Each persisted 25k training table matched the first 25k rows of its 400k table across all projected columns, with 400k distinct training sample IDs.

At 3eb1d4a6 each binding completed three pairs. Each pair built one index, then ran fresh training-only materialization in two separate Linux cgroups with a shared contract, encoder cutoff and one native thread. Size order alternated across pairs. File pages were uncontrolled. The column-statistics cache could persist between the two fits. Index preparation and reopen were outside the measured interval.

Values below are median absolute sampled peaks in GiB over the three fits per size. Growth is the 400k median divided by the 25k median. Total is cgroup memory.current; anonymous is memory.stat’s anon. The collector took boundary samples and polled every 50 ms. Brief peaks may fall between samples.

Binding Total at 25k Total at 400k Growth Anonymous at 25k Anonymous at 400k Growth
E01 · Graph 0.26 0.46 1.78× 0.25 0.39 1.55×
E02 · Combined 0.30 0.93 3.12× 0.28 0.79 2.79×
E03 · Masked history 0.27 0.46 1.70× 0.26 0.39 1.49×
E04 · Next-token history 0.29 0.87 2.97× 0.28 0.79 2.80×
E05 · History classifier 0.28 0.80 2.88× 0.27 0.72 2.69×

The full campaign step took 14 minutes 43 seconds. All 30 raw reports were checked against their sample streams, training counts, contract, cutoff, anchor hashes, prefix and unique cgroup. Both growth ratios for every binding were recomputed independently. The ordinary L01 fresh/reloaded control passed. Focused package checks had 17 passes and seven opt-in or platform skips. Ruff and 12 workflow-security tests passed. Linux run · Raw memory reports

C-157 candidate campaign

Select aml in the manual kumo-pytorch tests workflow to run all four L01 modes and the 15 HI Small size pairs on one revision. The package runner links the five measurement reports in campaign.json and checks the worker results before accepting the campaign. Throughput is reported descriptively.

At e84341c5, all 19 selections passed on one RTX worker in 27 min 37 s of benchmark execution (32 min 19 s from dispatch to completion). Independent checks of the downloaded evidence confirmed 42 complete L01 epochs in 21 workers. This included 12 CUDA training epochs with 128 optimizer updates and 512 eligible targets per head per epoch, one index build and two reopens, and 512 length-cache hits with zero recomputes in each second length-planning epoch. E01–E05 contributed 15 index setups and 30 fresh fits at 25k and 400k anchors in 30 distinct cgroups. The combined run used PyTorch 2.12.0+cu130 for every mode. The HI Small fits ran on CPU and recorded 1.39–2.16× growth in median sampled total peaks and 1.26–2.03× in anonymous peaks. All five reports matched the candidate commit. RTX job · Campaign JSON, worker reports and JUnit

Post-cut verification

At b3366ea1, the focused suite passed 18 tests with seven opt-in or platform skips. All 19 AML selections passed in 27 min 31 s. The downloaded reports verified 42 L01 epochs, including 12 CUDA training epochs with 128 updates and 512 eligible targets per head, plus 15 HI Small size pairs in 30 distinct fit cgroups. Fresh/reloaded workers agreed on population and fitted-state identity. HI Small workers agreed on source, binding, contract, prefix and per-size anchor hashes across repetitions. The cleanup removes 16 net lines. The full diff against #478 is +978/−102 across ten files. RTX job · Raw reports and JUnit

Change map

File-by-file change map

@copy-pr-bot

copy-pr-bot Bot commented Nov 22, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@nittin-murthi
nittin-murthi temporarily deployed to gha-kumo-workflow-tests November 22, 2026 07:20 — with GitHub Actions Inactive
@nittin-murthi

nittin-murthi commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor Author

Change map

The L01 benchmarks use the package’s native DiskGraph loader for three independent fresh/reused fit pairs on the same prepared population. C-149 trains the Combined model on the RTX worker. C-150 runs three fresh-fit CPU workers against one shared index. C-152–153 exercise native length bucketing and merged histories on uncontrolled file pages. C-154–155 compare fresh HI Small fits at 25k and 400k training anchors for E01–E05. C-157 accepts the full campaign only when all four L01 modes and all 15 HI Small pairs succeed on the candidate commit.

File Function / scope What changed Why
packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/native_anchors.py Combined model batches and history lengths Attach the graph neighborhood to supported single-stage, single-rank native bucketed batches and recognize an addition with non-null operands. L01 previously used the Python batcher. Other selections and unsupported native lengths retain the existing delivery path.
packages/experimental/kumo-pytorch/e2e/datasets/aml.py L01 and HI Small benchmark preparation Build L01’s 512-anchor splits and reuse the source conversion for all five HI Small contracts. Verify each persisted 25k prefix against the 400k file and retain the source, contract and population hashes. Keep the dataset and encoder cutoff fixed within each fitting comparison.
packages/experimental/kumo-pytorch/tests/e2e/runs.py Opt-in L01 and HI Small campaigns Run L01 fresh/reloaded fits, CUDA training, index lifecycle and length planning. For HI Small, alternate the two sizes across three pairs per binding and validate identities, cgroups and raw memory peaks before summarizing. Both report writers share provenance. HI Small workers verify the persisted anchor file against the prepared manifest. The coordinator compares source, contract, prefix, cutoff and per-size hashes across repetitions. The manual aml command checks candidate identity, worker coverage and complete epochs across the five reports. Compare six independent fits per binding through the package runner.
packages/experimental/kumo-pytorch/tests/e2e/test_aml.py L01 and HI Small workers Reuse the same L01 population fields for fresh/reloaded comparison. Verify L01 native delivery, fitted state, CUDA, index and length counters. For HI Small, build the index once per pair, reopen it in separate workers, and measure fresh training-only materialization. Keep fit memory separate from input preparation, index construction and model execution.
packages/experimental/kumo-pytorch/tests/e2e/l01_model.py Combined model and training step Feed graph, causal history and twelve aggregate fields to amount and currency heads, and train with the package’s L01 loss. Measure the selected AML workload with a fresh seeded model and optimizer in each process.
packages/experimental/kumo-pytorch/tests/e2e/host_memory.py Cgroup sampling interval Accept a per-operation interval. HI Small samples total and anonymous charges every 50 ms. Reuse the existing cgroup collector and retain its 10 ms default for earlier measurements.
packages/experimental/kumo-pytorch/tests/e2e/loader_timing.py measure_epoch Train after the measured loader request. Count eligible values and optimizer updates, synchronize after warmup, and measure completed-device throughput and count batches carrying actual native history merges for length planning. Preserve separate loader wait and full training times.
packages/experimental/kumo-pytorch/tests/e2e/cuda_metrics.py Steady-state and completion boundaries Share the warmup marker and the synchronized end timestamp with the native epoch loop. Attribute NVML readings and completion time to the actual measured windows.
.github/workflows/kumo-pytorch-tests.yml Manual AML dispatch Stage the required source pins for the selected workload. The full aml mode runs the existing four L01 modes and HI Small pair runner on one RTX worker and uploads the acceptance report, raw measurements and CUDA JUnit. Make the complete campaign reproducible at one revision and share the existing staging permissions and worker.
packages/experimental/kumo-pytorch/tests/e2e/test_runs.py AML campaign acceptance Exercise one complete candidate index lifecycle and reject a stale revision, truncated epoch and missing reopen. An incomplete or mixed-revision campaign must fail acceptance.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

Parsing warnings: 1

Validation error: Unrecognized key: "tone_instructions" at "reviews"
Configuration instructions

  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

No actionable comments were generated in the recent review.

Walkthrough

The pull request adds AML, L01 CUDA, and HI Small benchmark modes to the test workflow. It adds dataset preparation, an L01 model and training step, timing and memory measurement support, benchmark campaigns, and report validation. The workflow selects and stages dataset pins, runs mode-specific commands, and uploads benchmark artifacts. The native anchor engine also enables graph bucketing in a single-rank case and falls back to request-batch sampling for unsupported length-planning inputs in that case.

Sequence Diagram(s)

sequenceDiagram
  participant GitHubActions
  participant aml_source
  participant aml_benchmark
  participant DatasetStaging
  participant BenchmarkCommand
  participant ArtifactUpload
  GitHubActions->>aml_source: start source job for selected mode
  aml_source->>aml_benchmark: provide selected pins and S3 read policy
  aml_benchmark->>DatasetStaging: stage selected dataset pins
  aml_benchmark->>BenchmarkCommand: run mode-specific benchmark
  BenchmarkCommand->>ArtifactUpload: provide benchmark outputs
Loading
Merge Risk: Low · up to d911f

This change adds opt-in benchmark tooling and a narrow native batching fallback. A few measurement and acceptance checks are looser than intended: untracked files can pass the clean-checkout gate, HI Small result files are not parsed at acceptance, and the training-step timer includes transfer time. These affect benchmark evidence quality rather than production behavior, so they can be addressed in a follow-up.

Security architecture risk: Moderate · up to d911f

The new benchmark gives candidate revisions a path to private data and administrator-level execution on a test machine. The workflow limits who can start the benchmark, but those checks do not by themselves establish what the job can access or what an interrupted run leaves behind.

Retained concerns

  • Medium · security · observed: The new manual GPU job runs candidate-controlled staging code while temporary AWS credentials and job-level OIDC are available. The session policy restricts the configured session, but candidate-owned manifests supply its resource list, and the shell-level OIDC cleanup occurs only after staging. The required dispatcher access and branch gate limit reachability; any access beyond the configured session depends on deployed IAM trust and grants.
  • Medium · security · observed: The AML dispatch elevates a Python supervisor from the candidate checkout on the GPU runner. Dropping privileges for its measurement workers does not constrain the candidate supervisor itself. The source establishes runner-local root authority; impact on later jobs or neighboring resources depends on runner disposal and isolation.
Security review details

Security Blast Radius

  • inferred — The newly exposed assets are the staged benchmark data, the GPU runner, and any resources the configured role can actually authorize. The source does not establish public dispatch reachability, production access, or cross-run persistence.

Trust Boundaries and Controls

  • observed — The workflow does not persist checkout credentials or export the AWS session job-wide. It injects AWS credentials into staging and uses a shell hook to unset OIDC request variables afterward. That hook is not a separate job permission boundary.

Resilience and Maintainability Implications

  • observed — The measurement helper allocates a unique cgroup, handles timeout and catchable interruption, and attempts to kill remaining processes and remove the group before returning. Those cleanup paths do not establish runner cleanup after forced termination.

Hardening Proposals

  • proposed — Use protected code and an independently controlled object allowlist for credentialed staging. Pass only verified data to an OIDC-free benchmark job, and delegate cgroup administration to a trusted supervisor rather than elevating candidate Python.
Pre-merge checks: Passed 2 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Change Map Design Review Warning (previously flagged, unaddressed) Details from the previous assessment are unavailable.
Passed Passed checks: 2 passed

Check name Status Explanation
Pr Size Passed PR size check: the PR changes 10 files. The reviewed range (refs/coderabbit/pre-merge-check/base to refs/coderabbit/pre-merge-check/head) lists 10 entries in git diff --name-status: 9 modified (M) a…
Public Resource Access Passed The check covers only external resource references whose text this PR adds or modifies. I searched the full added-line set of the PR diff (10 changed files) for URLs, git/pip/index locations, reposito…
Full details: Pr Size

Explanation

PR size check: the PR changes 10 files. The reviewed range (refs/coderabbit/pre-merge-check/base to refs/coderabbit/pre-merge-check/head) lists 10 entries in git diff --name-status: 9 modified (M) and 1 added (A). The files are .github/workflows/kumo-pytorch-tests.yml, packages/experimental/kumo-pytorch/e2e/datasets/aml.py, packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/native_anchors.py, tests/e2e/cuda_metrics.py, tests/e2e/host_memory.py, tests/e2e/l01_model.py (added), tests/e2e/loader_timing.py, tests/e2e/runs.py, tests/e2e/test_aml.py, and tests/e2e/test_runs.py. The count of 10 is at or below the limit of 40. Line counts are ignored by the check.

Full details: Public Resource Access

Explanation

The check covers only external resource references whose text this PR adds or modifies. I searched the full added-line set of the PR diff (10 changed files) for URLs, git/pip/index locations, repository references, and action references. - No added Python, test, or documentation line contains an http(s) URL, git source, package index, or container image reference. - The only new external reference is the action actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 in .github/workflows/kumo-pytorch-tests.yml (aml-benchmark job). Anonymous checks returned HTTP 200 for https://github.com/actions/upload-artifact and for the pinned commit through the GitHub API, so it is publicly accessible. - The S3 ARNs in the workflow (kumo-engine-arena, kumo-test-dataplane-bucket) are IAM session-policy resource ARNs, not public URLs or repository locations. The base branch already contains the same bucket and object references (lines 90–92 on base); the head moves them into the &dataset_credentials anchor. The new jq template only builds ARNs for the same existing bucket from unchanged pin files. These are pre-existing or relocated references, so they fall outside the check scope. For reference, anonymous requests to those bucket endpoints returned HTTP 403, which confirms they are private, but this does not make them a new reference. - The ./.github/actions/kumo-pytorch-setup reference is repository-local. - The pin JSON files, dataset files, and wheels are not changed in this PR. No added or modified external reference was confirmed inaccessible to an anonymous user. The check passes.

Latest assessment: Change Map Design Review

Latest assessment: The latest assessment was inconclusive; the previous failure remains unresolved.

Latest explanation: The check assesses the PR conversation comment that starts with <!-- kumo-pr-change-map -->. That comment's body was not supplied in the review context, and no tool in this run can retrieve PR conversation comments. The PR description links to it (issuecomment-7075858495), but the link does not give its content. What I could verify: - The repository guidance in docs/development/review.md requires one such comment. It must account for every changed file and be linked from the description. The deterministic table check handles file coverage, so I did not assess that. - The git range changes 10 files. These are the workflow, aml.py, native_anchors.py, cuda_metrics.py, host_memory.py, the new l01_model.py, loader_timing.py, runs.py, test_aml.py, and test_runs.py. - The repository contains no copy of the marker comment. A search of the checkout and the review refs found only the guidance document. Without the Change map text, I cannot test its necessity claims, abstraction-layer choices, preserved behavior, verification, or stopping conditions against the code. I cannot establish a PASS. I also cannot establish a FAIL on the map's design, because I have no map text to challenge. The standing previous FAIL has no stated details. I cannot confirm or refute it from the available evidence, so it remains open.

Latest resolution: Supply the full body of the PR conversation comment that starts with <!-- kumo-pr-change-map --> (PR #479, comment referenced as issuecomment-7075858495), or provide an API or tool path that can retrieve PR issue comments. Then re-run this check. The reviewer should check each Change map row against the diff. Each row should state the observed failure or requirement, the existing behavior that was inspected, why the change is the smallest sufficient fix, the focused verification, and the stopping condition. Rows that the diff does not support should be challenged. Also confirm that the map describes material behavior changes, including the native _UnsupportedLengthInput fallback path in native_anchors.py, the new aml-source and aml-benchmark workflow jobs, and the streaming-25b job gating.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between b3366ea and d911fb6.

Files selected for processing: 7

  • packages/experimental/kumo-pytorch/e2e/datasets/aml.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/native_anchors.py
  • packages/experimental/kumo-pytorch/tests/e2e/cuda_metrics.py
  • packages/experimental/kumo-pytorch/tests/e2e/host_memory.py
  • packages/experimental/kumo-pytorch/tests/e2e/loader_timing.py
  • packages/experimental/kumo-pytorch/tests/e2e/runs.py
  • packages/experimental/kumo-pytorch/tests/e2e/test_aml.py

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 2 remain after this review.

Finishing Touches
Fix failing CI checks

  • Commit to this branch
  • Create a new PR

@nittin-murthi
nittin-murthi temporarily deployed to gha-kumo-workflow-tests November 22, 2026 07:58 — with GitHub Actions Inactive
@nittin-murthi nittin-murthi changed the title Benchmark L01 CPU loader with independent fresh and reused fits Benchmark L01 CPU delivery and paired CUDA training Nov 22, 2026
@nittin-murthi
nittin-murthi temporarily deployed to gha-kumo-workflow-tests November 22, 2026 08:18 — with GitHub Actions Inactive
@nittin-murthi nittin-murthi changed the title Benchmark L01 CPU delivery and paired CUDA training Benchmark L01 delivery, index lifecycle and paired CUDA training Nov 22, 2026
@nittin-murthi
nittin-murthi temporarily deployed to gha-kumo-workflow-tests November 22, 2026 08:26 — with GitHub Actions Inactive
@nittin-murthi
nittin-murthi temporarily deployed to gha-kumo-workflow-tests November 22, 2026 08:31 — with GitHub Actions Inactive
@nittin-murthi nittin-murthi changed the title Benchmark L01 delivery, index lifecycle and paired CUDA training Benchmark L01 loader modes and HI Small fitting memory Nov 22, 2026
@nittin-murthi
nittin-murthi temporarily deployed to gha-kumo-workflow-tests November 22, 2026 08:58 — with GitHub Actions Inactive

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Quiet mode is enabled, so only the most important comments were posted inline. Other review comments are grouped below.

Other comments: 3

packages/experimental/kumo-pytorch/tests/e2e/loader_timing.py: 1

319-320: Minor · Data Integrity & Integration · Quick win

Start the training-step timer after the GPU transfer.

train_step_ns starts before gpu.transfer(batch). It therefore includes transfer dispatch and copy instrumentation, in addition to the training callback. A change in copy overhead can look like a training slowdown. Transfer the batch first, then time step and report the result as host-side callback time. Keep the synchronized epoch timer for end-to-end time. (raw.githubusercontent.com)

packages/experimental/kumo-pytorch/tests/e2e/runs.py: 2

269-269: Minor · Data Integrity & Integration · Quick win

Check untracked files before accepting a clean checkout.

git diff --binary HEAD leaves out untracked files. A checkout with a new, non-ignored file therefore passes the AML clean-checkout gate. Use git status --porcelain --untracked-files=normal for that gate. Keep the diff hash for diagnosing tracked changes. (git-scm.com)


556-556: Minor · Data Integrity & Integration · Quick win

Parse the HI Small worker results during campaign acceptance.

_hi_small_fits validates each results.json while it writes the report. _aml_evidence checks only that the HI Small result files exist. It does not read them. If a result file is truncated or emptied after timings.json is complete, the campaign still accepts it.

Parse each HI Small result in _aml_evidence. Require the expected binding and stage. For the 25000 and 400000 stages, also require the expected anchor count and a complete memory record. The index-setup result does not need fit metrics.

Additional comments: 1

packages/experimental/kumo-pytorch/tests/e2e/host_memory.py-42-42: 1

42-42: Minor · Data Integrity & Integration · Quick win

Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Record the sampling period for each interval.

If a record first measures an operation at 50 ms and then uses the 10 ms default, setdefault keeps 50 ms in the report. The polling loop uses 10 ms for the second operation. Store the period on each interval, or reject a period change when reusing a record. The current callers use one period per record and can keep that behavior.

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 47c179d and b3366ea.

Files selected for processing: 10

  • .github/workflows/kumo-pytorch-tests.yml
  • packages/experimental/kumo-pytorch/e2e/datasets/aml.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/native_anchors.py
  • packages/experimental/kumo-pytorch/tests/e2e/cuda_metrics.py
  • packages/experimental/kumo-pytorch/tests/e2e/host_memory.py
  • packages/experimental/kumo-pytorch/tests/e2e/l01_model.py
  • packages/experimental/kumo-pytorch/tests/e2e/loader_timing.py
  • packages/experimental/kumo-pytorch/tests/e2e/runs.py
  • packages/experimental/kumo-pytorch/tests/e2e/test_aml.py
  • packages/experimental/kumo-pytorch/tests/e2e/test_runs.py

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 8 remain after this review.

@nittin-murthi
nittin-murthi removed this pull request from stack #484 November 23, 2026 02:55
@nittin-murthi
nittin-murthi added this pull request to stack #485 November 23, 2026 02:56
@nittin-murthi
nittin-murthi marked this pull request as draft November 23, 2026 20:28

This branch was previously deployed

1 inactive deployment
gha-kumo-workflow-tests — d911fb64 Deployed Nov 23, 2026 by nittin-murthi via import #3046
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant