Skip to content

Defer frozen FM bundle and DuckDB benchmarks - #509

Draft
am-porter wants to merge 3 commits into
codex/fm-loader-migrationfrom
codex/fm-benchmarks-deferred
Draft

am-porter wants to merge 3 commits into
codex/fm-loader-migrationfrom
codex/fm-benchmarks-deferred

Conversation

@am-porter

@am-porter am-porter commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Defer the frozen-bundle loader, dataset generation/validation and DuckDB comparisons removed from #391 into a standalone kumo-fm-benchmark package under benchmark/fm-payloads.

This is a separate, non-blocking draft based on #391's branch. It is not part of the required release stack; #490 continues to target #391 directly. It must not be inserted between #391 and #490.

  • Keep DuckDB and optional dataset tooling inside the benchmark environment, outside the root workspace and engine wheel.

  • Preserve the historical small frozen fixture, comparison report and generation helpers. The retained report remains historical; the new CPU campaign is recorded separately.

  • Give benchmark code its own namespace, packaging and tests. Its frozen loader shares FM's private Arrow assembly helpers; that coupling needs review before this draft is ready.

  • Keep component provenance fallback here, where frozen workspaces need it, rather than in production FM.

  • Expose shared thread settings and the DuckDB reference memory budget, with both recorded in reports; defaults remain two threads and 2GB.

  • Include the standalone benchmark distribution in licensing checks and wheel validation.

Testing Done

Rebase against the current #391 base ec7de041 was already up to date. The measured runner is 8a630724; the later 57af31f8 commit only repairs CI metadata/header/test whitespace and leaves runner/runtime source unchanged.

  • Python 3.11 / CPU: 3 benchmark tests passed and 12 standalone FM tests passed; 1 connector test was skipped because this environment excludes kumo.engine. Both retained and regenerated tiny fixtures passed decoded arrays/Arrow IPC parity.
  • Completed 40 derived full-source comparisons across all seven graphs: 12 passed, 28 rejected (13 decoded-parity failures, 15 original expansion-budget failures). Rejected cells contribute no accepted timings. All 96 original local_native workload files remain unchanged; variants explicitly use native_multihop, with the one-hop family additionally restricting temporal destinations.
  • Large streaming comparisons passed at 10,000 context rows with 32 / 1,000 / 10,000 prediction rows for two hops, plus the temporal-only one-hop variant at 10,000 / 32. Each passed both encodings with two warmups and five measured draws, using two threads and a 64GB DuckDB budget.
  • At streaming 10,000 / 10,000, median DuckDB full construction / FM load-plus-encode was 2,889.93 / 768.95 ms for arrays and 2,800.94 / 692.75 ms for IPC. Setup and FM materialization are excluded; these are warm phase comparisons, not end-to-end speedups.
  • A Commerce mismatch was reproduced as different selected purchases at an equal-timestamp fanout boundary, also changing reached merchants. This rejects strict decoded parity without establishing that either sampler violates its tie policy. Other parity failures were not individually diagnosed.
  • Flake8, license headers, all 17 distribution-manifest checks, benchmark-wheel license inspection and all 21 licensing tests passed. Final CI: 15 workflows succeeded and 1 was skipped.

The original historical report is unchanged. Optional RelBench/Marketo generation, SDM inference and merged-engine benchmark installation remain untested here. The private FM assembly-helper coupling still needs review before this draft is promoted.

Change map

Per-file change map

@copy-pr-bot

copy-pr-bot Bot commented Nov 23, 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.

@am-porter
am-porter had a problem deploying to gha-kumo-workflow-tests November 23, 2026 22:21 — with GitHub Actions Failure
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

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
Pre-merge checks: Passed 1 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Change Map Design Review Warning (previously flagged, unaddressed) Details from the previous assessment are unavailable.
Pr Size Warning The PR changes 45 files. The count compares the PR head (57af31f) with its base (ec7de04, the parent of the first PR commit 2c5458f). Rename detection was off, and the count was run twice with the sa… Split PR #509 into smaller reviewable units so that each PR changes 40 or fewer files. Suggested units: (1) the CI workflow and license-check changes, (2) the benchmark package source under benchmark/fm-payloads/src and its tests, (3) the f…
Passed Passed checks: 1 passed

Check name Status Explanation
Public Resource Access Passed The PR adds external references under benchmark/fm-payloads (commits 2c5458f..57af31f, diffed against base ec7de04). I searched the added lines for URLs, package ind…
Full details: Public Resource Access

Explanation

The PR adds external references under benchmark/fm-payloads (commits 2c5458f..57af31f, diffed against base ec7de04). I searched the added lines for URLs, package indexes, git/file sources and PR links, then probed the ones that are needed to use the code. No added reference was confirmed inaccessible to an anonymous user. - HuggingFace dataset URL (src/kumo_fm_benchmark/_dataset_support/relbench.py:61, https://huggingface.co/datasets/{REPOSITORY}/resolve/{REVISION}/{relative}, pinned to stanford-star/relbench-v1 at revision 21d7284…). It is needed only for optional RelBench generation. An anonymous HEAD request to the pinned-revision resolve/…/README.md returned 200. The commit tree page and the revision API also returned 200. Per-file fetches under the same revision were not individually tested. - PyPI dependency duckdb==2.0.0 (pyproject.toml:16). Anonymous PyPI JSON lists version 2.0.0. - kumo-fm>=0.1.0a1 (pyproject.toml:16) has no explicit source location. It is not on PyPI (404). The README instead points to "source wheels from #391". The public PR page github.com/NVIDIA/kumo-engine/pull/391 returned 200 anonymously. The wheel artifacts themselves were not verified. - README PR references (#391, #404, #403, #448, #490). These are repository PR pointers. The #391 page is public. - Apache License URL (LICENSE, http://www.apache.org/licenses/). This is standard license boilerplate and is not needed to build or use the code. Residual gaps, which do not establish a failure: the fm-dataloader reference checkout is named without a URL (README lines 26–27). The #391 source-wheel artifacts were not fetched. Neither is a confirmed inaccessible reference. The check treats untestable access as INCONCLUSIVE, but both gaps concern unspecified or unverified artifacts rather than a reference that failed a test. Both are noted for follow-up.

Full details: Pr Size

Explanation

The PR changes 45 files. The count compares the PR head (57af31f) with its base (ec7de04, the parent of the first PR commit 2c5458f). Rename detection was off, and the count was run twice with the same result: 45 files. The changes are 1 modified CI workflow (.github/workflows/linting.yml), 2 modified license-check files, and 42 added files under benchmark/fm-payloads (package sources, tests, fixtures, reports, and packaging). The check fails when the count exceeds 40. Line counts were ignored, as the check requires. The primary PR author is am-porter (verified). The previous FAIL had no details, so this verdict relies on the fresh count and not on the prior explanation.

Resolution

Split PR #509 into smaller reviewable units so that each PR changes 40 or fewer files. Suggested units: (1) the CI workflow and license-check changes, (2) the benchmark package source under benchmark/fm-payloads/src and its tests, (3) the frozen fixtures, the historical report, and the generation helpers. Reduce the file count of each unit below 41 before review.

Latest assessment: Change Map Design Review

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

Latest explanation: The check reviews the PR conversation comment that begins with <!-- kumo-pr-change-map -->. I could not read that comment. The PR description links to it as https://github.com/NVIDIA/kumo-engine/pull/509#issuecomment-7115694980. The sandbox checkout is detached at 57af31f and contains no copy of the comment. A search of the working tree and all refs found the marker only in docs/development/review.md, which describes the required map. Linked-repository inspection is unavailable, so no provider call can fetch the comment body. Repository evidence confirms that the change map is a required artifact. docs/development/review.md says the author or an authorized bot must keep one such comment. The commit history shows the related benchmark work: 2c5458f defers the FM benchmark tooling, 8a63072 exposes thread and DuckDB memory settings, and 57af31f adds CI validation. The benchmark/fm-payloads directory is present at HEAD. These facts do not test the map's design claims. They do not show whether the map states the observed failure, the inspected existing behavior, the smallest sufficient change, or the stopping condition. I did not reach a design verdict. The previous run's FAIL has no details. I cannot refute it, so it still stands. PASS would require reading the map, so I do not record PASS.

Latest resolution: Provide the body of PR #509 conversation comment 7115694980, or run gh api repos/NVIDIA/kumo-engine/issues/509/comments and supply the comment whose body begins with <!-- kumo-pr-change-map -->. Then rerun this check. The review should test each change row against these points: - The observed failure or explicit release requirement that motivates the change. - The existing behavior that the author inspected. - Whether the change sits at the right layer. The PR description says the frozen loader shares FM private Arrow assembly helpers. The map must justify that coupling or propose a narrower interface. - Whether the map records the component-provenance fallback that moved out of production FM. It must also state whether production behavior changes. - Whether the map covers the new thread and DuckDB memory defaults, and how it records them in reports. - The verification and stopping condition for the draft.

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

@am-porter

am-porter commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Change map

Requested separation: keep frozen-bundle loading, SQL-backed dataset tooling and DuckDB comparisons in a standalone draft package based on #391. It remains outside the required release stack; #490 continues to target #391 directly. The package still shares private FM Arrow assembly helpers, which needs review before promotion.

Observed failures and smallest repairs: large-source DuckDB index creation exhausted the runner's fixed 2GB budget. Add explicit shared thread and DuckDB memory controls, preserve defaults, and record them in results. CI also found missing benchmark distribution/license registration, a missing manifest header and an extra test-fixture blank line; fix those without changing runtime behavior. No sampling or parity rule was relaxed.

Verification: 3 benchmark tests and 12 standalone FM tests passed (1 connector test skipped because this environment excludes kumo.engine). Retained and regenerated tiny fixtures passed arrays/IPC parity. All 40 full-source variants across seven graphs completed: 12 passed, 13 failed strict decoded parity, and 15 exceeded original expansion budgets. Accepted cases provide 120 paired measured draws; four large streaming variants passed both encodings. All 96 original workload files remain unchanged. A Commerce failure was independently reproduced as different purchases chosen at the same-timestamp fanout boundary; other parity failures were not individually diagnosed. Failed cells contribute no accepted timing. Timings compare DuckDB full construction with FM load+encode after materialization and exclude preparation.

CI validation: Flake8, license headers, all 17 manifest checks, benchmark wheel license inspection, all 21 licensing tests, and final CI workflows pass (one workflow was skipped). Measured source is 8a63072; 57af31f only repairs CI/license metadata and test whitespace. The final source matches the measured runtime.

Stopping condition: requested benchmark evidence and CI checks are complete. Leave this as a non-blocking draft, outside the required release sequence. The retained historical report is unchanged; optional RelBench/Marketo generation, merged-wheel installation and SDM inference remain outside this run.

File What changed Why
benchmark/fm-payloads/LICENSE Include Apache-2.0 terms License the separately packaged first-party tooling
benchmark/fm-payloads/MANIFEST.in Include fixtures, tests and runner sources with the required Apache header Make source packaging reproducible and satisfy licensing checks
benchmark/fm-payloads/README.md Document separate setup, draft coupling and non-blocking scope Keep the benchmark outside the release stack
benchmark/fm-payloads/fixtures/smoke/bundle/_COMPLETE.json Retain the original tiny frozen smoke fixture Support optional comparison reproduction without product fixture dependencies
benchmark/fm-payloads/fixtures/smoke/bundle/manifest.json Retain the original tiny frozen smoke fixture Support optional comparison reproduction without product fixture dependencies
benchmark/fm-payloads/fixtures/smoke/bundle/tables/categories/part-00000.parquet Retain the original tiny frozen smoke fixture Support optional comparison reproduction without product fixture dependencies
benchmark/fm-payloads/fixtures/smoke/bundle/tables/interactions/part-00000.parquet Retain the original tiny frozen smoke fixture Support optional comparison reproduction without product fixture dependencies
benchmark/fm-payloads/fixtures/smoke/bundle/tables/items/part-00000.parquet Retain the original tiny frozen smoke fixture Support optional comparison reproduction without product fixture dependencies
benchmark/fm-payloads/fixtures/smoke/bundle/tables/users/part-00000.parquet Retain the original tiny frozen smoke fixture Support optional comparison reproduction without product fixture dependencies
benchmark/fm-payloads/fixtures/smoke/bundle/tasks/binary_classification/context.parquet Retain the original tiny frozen smoke fixture Support optional comparison reproduction without product fixture dependencies
benchmark/fm-payloads/fixtures/smoke/bundle/tasks/binary_classification/labels.parquet Retain the original tiny frozen smoke fixture Support optional comparison reproduction without product fixture dependencies
benchmark/fm-payloads/fixtures/smoke/bundle/tasks/binary_classification/predict.parquet Retain the original tiny frozen smoke fixture Support optional comparison reproduction without product fixture dependencies
benchmark/fm-payloads/fixtures/smoke/bundle/tasks/regression/context.parquet Retain the original tiny frozen smoke fixture Support optional comparison reproduction without product fixture dependencies
benchmark/fm-payloads/fixtures/smoke/bundle/tasks/regression/labels.parquet Retain the original tiny frozen smoke fixture Support optional comparison reproduction without product fixture dependencies
benchmark/fm-payloads/fixtures/smoke/bundle/tasks/regression/predict.parquet Retain the original tiny frozen smoke fixture Support optional comparison reproduction without product fixture dependencies
benchmark/fm-payloads/fixtures/smoke/bundle/validation.json Retain the original tiny frozen smoke fixture Support optional comparison reproduction without product fixture dependencies
benchmark/fm-payloads/fixtures/smoke/workload.json Retain the original tiny frozen smoke fixture Support optional comparison reproduction without product fixture dependencies
benchmark/fm-payloads/make_fixture.py Generate a tiny frozen case using benchmark-owned fixtures Remove dependency on product tests
benchmark/fm-payloads/pyproject.toml Define a standalone package with explicit DuckDB dependency Keep benchmark dependencies out of the root workspace and engine wheel
benchmark/fm-payloads/reports/omnistation-smoke.json Retain historical raw parity and timing data Preserve earlier evidence without claiming a new run
benchmark/fm-payloads/runner.py Run correctness-gated comparisons with explicit thread and DuckDB memory budgets recorded in reports Support large source bundles without changing the two-thread / 2GB defaults
benchmark/fm-payloads/src/kumo_fm_benchmark/__init__.py Export benchmark-only frozen preparation Keep the product FM API snapshot-only
benchmark/fm-payloads/src/kumo_fm_benchmark/_dataset_support/__init__.py Move dataset generation/validation support into the benchmark package Keep SQL and optional dataset tooling out of the FM wheel
benchmark/fm-payloads/src/kumo_fm_benchmark/_dataset_support/config.py Move dataset generation/validation support into the benchmark package Keep SQL and optional dataset tooling out of the FM wheel
benchmark/fm-payloads/src/kumo_fm_benchmark/_dataset_support/generate.py Move dataset generation/validation support into the benchmark package Keep SQL and optional dataset tooling out of the FM wheel
benchmark/fm-payloads/src/kumo_fm_benchmark/_dataset_support/presets/marketo.json Move dataset generation/validation support into the benchmark package Keep SQL and optional dataset tooling out of the FM wheel
benchmark/fm-payloads/src/kumo_fm_benchmark/_dataset_support/relbench.py Move dataset generation/validation support into the benchmark package Keep SQL and optional dataset tooling out of the FM wheel
benchmark/fm-payloads/src/kumo_fm_benchmark/_dataset_support/storage.py Move dataset generation/validation support into the benchmark package Keep SQL and optional dataset tooling out of the FM wheel
benchmark/fm-payloads/src/kumo_fm_benchmark/_dataset_support/tasks.py Move dataset generation/validation support into the benchmark package Keep SQL and optional dataset tooling out of the FM wheel
benchmark/fm-payloads/src/kumo_fm_benchmark/_dataset_support/validate.py Move dataset generation/validation support into the benchmark package Keep SQL and optional dataset tooling out of the FM wheel
benchmark/fm-payloads/src/kumo_fm_benchmark/_provenance.py Read standalone or bundled component identity Keep the frozen workspace workaround confined to benchmarks
benchmark/fm-payloads/src/kumo_fm_benchmark/_pytorch.py Prepare frozen Dataset engines and use shared Arrow graph adaptation Keep SQL eligibility checks outside production
benchmark/fm-payloads/src/kumo_fm_benchmark/_validation.py Run SQL-based frozen sampling eligibility checks Preserve the benchmark's contract validation
benchmark/fm-payloads/src/kumo_fm_benchmark/bundle.py Validate frozen manifests, Parquet files and keys with DuckDB Retain old bundle semantics outside the runtime
benchmark/fm-payloads/src/kumo_fm_benchmark/datasets.py Adapt generated dataset metadata into frozen workloads Retain benchmark dataset compatibility
benchmark/fm-payloads/src/kumo_fm_benchmark/loader.py Provide the frozen loader in the benchmark namespace Remove the production package's positional bundle API
benchmark/fm-payloads/src/kumo_fm_benchmark/native_selection.py Convert frozen anchor cutoffs to inclusive seconds Preserve comparison semantics
benchmark/fm-payloads/src/kumo_fm_benchmark/workload.py Read frozen task instances and traversal policy Keep manifest-driven workloads benchmark-only
benchmark/fm-payloads/tests/_fixture.py Keep frozen fixture construction in benchmark tests Product fixtures now use ordinary Arrow/Parquet sources
benchmark/fm-payloads/tests/conftest.py Isolate managed storage for benchmark cases Keep test artifacts separate
benchmark/fm-payloads/tests/test_contract.py Cover frozen selection and anchor validation Retain benchmark contract regressions
benchmark/fm-payloads/tests/test_frozen_integration.py Check retained batches, independent builds and old workspace markers Validate the moved compatibility path
.github/workflows/linting.yml Build the standalone benchmark wheel during license checks Validate the new distribution alongside existing wheels
scripts/check_python_license_metadata.py Register the benchmark distribution and its canonical Apache license Keep tracked project manifests covered by licensing validation
test/scripts/test_python_license_metadata.py Update the expected inventory count to 17 Verify every tracked Python distribution remains accounted for

@am-porter
am-porter force-pushed the codex/fm-benchmarks-deferred branch from dc553ee to 449e819 Compare November 24, 2026 01:09
@am-porter
am-porter had a problem deploying to gha-kumo-workflow-tests November 24, 2026 01:09 — with GitHub Actions Failure
@am-porter
am-porter force-pushed the codex/fm-benchmarks-deferred branch from 449e819 to a20ae3b Compare November 24, 2026 01:13
@am-porter
am-porter had a problem deploying to gha-kumo-workflow-tests November 24, 2026 01:13 — with GitHub Actions Failure
@am-porter
am-porter force-pushed the codex/fm-benchmarks-deferred branch from a20ae3b to fad1a19 Compare November 24, 2026 01:58
@am-porter
am-porter had a problem deploying to gha-kumo-workflow-tests November 24, 2026 01:58 — with GitHub Actions Failure
@am-porter
am-porter force-pushed the codex/fm-loader-migration branch from 54f1bbd to 960cc4c Compare November 24, 2026 17:06
@am-porter
am-porter force-pushed the codex/fm-benchmarks-deferred branch from fad1a19 to 1c5910b Compare November 24, 2026 17:06
@am-porter
am-porter had a problem deploying to gha-kumo-workflow-tests November 24, 2026 17:06 — with GitHub Actions Error
@am-porter
am-porter had a problem deploying to gha-kumo-workflow-tests November 24, 2026 17:06 — with GitHub Actions Failure
@am-porter
am-porter force-pushed the codex/fm-benchmarks-deferred branch from 1c5910b to 2c5458f Compare November 24, 2026 17:33
@am-porter
am-porter temporarily deployed to gha-kumo-workflow-tests November 24, 2026 17:33 — with GitHub Actions Inactive
@am-porter
am-porter temporarily deployed to gha-kumo-workflow-tests November 24, 2026 20:29 — with GitHub Actions Inactive
@am-porter
am-porter temporarily deployed to gha-kumo-workflow-tests November 24, 2026 20:49 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
gha-kumo-workflow-tests — 57af31f8 Deployed Nov 24, 2026 by am-porter via import #3214
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