Skip to content

evidence/upstream_fa4: the FA4 SM90 paged-KV checks behind the sgl-project/sglang#35757 comment - #228

Merged
SamMausberg merged 26 commits into
mainfrom
upstream/fa4-evidence
Oct 3, 2026
Merged

SamMausberg merged 26 commits into
mainfrom
upstream/fa4-evidence

Conversation

@SamMausberg

@SamMausberg SamMausberg commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

Commits the checks behind our comment on sgl-project/sglang#35757 (issuecomment-5961366446) as code in experiments/upstream_fa4/ and summaries in evidence/upstream_fa4/. Until now they existed only as uncommitted scripts and logs.

What the run shows (GH200, upstream SGLang f6fcda8827, one shared hold, correctness only):

The README also notes that wrong outputs differ between identical calls (8 of 9 wrong varlen cases). The comment's 1.03-1.43 range for head_dim 160/224 is therefore one run's value; this run gives 0.67-1.47, and every case covered by both runs has the same status in both.

Provenance:

  • run_all.sh ran at fd07270 (meta.repo_commit, tree clean).
  • summarize.py was fixed in 51a4376 to read pytest's -q totals, and the summaries were rewritten from the same raw records at that commit (summarize_commit). cases.csv is unchanged by that rerun.
  • Each tree's paged_kv.py is byte-identical to the local commits used for the posted comment.
  • Codex found missing input checks, all added after the run:
    • flash-attention checkout cleanliness (9d1844f);
    • each SGLang tree's paged_kv.py checked against its variant (4461a99);
    • environment isolation, a fresh output directory, and an import-path check in summarize.py (80f4ba8, from a sweep of both scripts for the same classes);
    • no untracked or ignored files in the trees apart from __pycache__, and a committed repository (b064a31);
    • a proactive sweep for settings that could change a result: inherited torch, cuBLAS (TF32) and pytest settings cleared, explicit FP32 references, any CUDA error counted as a fault, and the regression test's sglang checked against its tree (a1acb6f);
    • a complete run required: summarize.py fails on skipped regression tests, a missing or extra case record, or an unknown status (4efc901);
    • CUDA path and preload overrides cleared, ignored importable files near sys.path refused, and every Python started with -P (5a50ff7);
    • each case run in its own process group and everything it started stopped when it ends or times out, instead of timeout --foreground (b181506);
    • bytecode read only from a cache of the run's own, never from a tree's __pycache__, and fa-pkg's initializer required to be the empty file make_trees.sh writes (ea4ce6b).
      The committed run passes all of them: its trees, the upstream venv's package versions in meta, a new output directory, and the summaries unchanged on rerun. So the evidence was not regenerated; the README says why (its "Checks added after the run" section, b12bbe5).
  • The reviewer caught a wrong entry count at tile_n 144 (the ceil forms give 2, not 1). It is fixed in 6420364; the finding is unchanged.
  • 98a27c0 merges main after bf16_paths: neither BF16 miss at the served gross positions is shown to be specific to SGLang #222 and engine/sglang: upstream patches for FA4 hd256 (SM90) and the sgl-kernel sm_90a build #226 (the index rows kept side by side); 74057d6 and 11eabc5 merge main again (11eabc5 keeps main's updated bf16_paths row and ours).
  • Raw records stay in ~/vp-data/upstream/fa4-evidence/.

Neither the paper nor the research notes cite this topic. Once this merges, a follow-up can point row 0001 of #226's engine/sglang/README.md section at it.

Repository pre-commit passed on 11eabc5. On b12bbe5, shellcheck passes on the changed script, and the full run is queued.

… SM90

The code behind the comment on sgl-project/sglang#35757 and the
head_dim 160/224 and tile_n 144 findings. make_trees.sh builds upstream
SGLang at f6fcda8827 with four forms of the cp.async loader's page-entry
count (floor, Dao-AILab/flash-attention#2745's ceil, #35757's
cute.ceil_div, #42019's max(1, floor)) and flash-attention at
843bf0b86b. run_all.sh runs, one process per case, the comment's
flash_attn_with_kvcache check across head dims, page sizes and KV load
paths; a single flash_attn_varlen_func call on SGLang's copy and on
flash-attention; and the comment's regression test on every tree.
summarize.py writes cases.csv and summary.json.
…ummarize commit

summarize.py looked for a summary line framed by '=' signs, which pytest -q
does not print, so summary.json had no pytest totals. It also records the
commit it ran from, since run_all.sh's meta.json records the run's.
One run of experiments/upstream_fa4/run_all.sh at fd07270 (summaries
from 51a4376) on a GH200, upstream SGLang f6fcda8827 with four forms of
the cp.async loader's page-entry count, and flash-attention 843bf0b86b.

- The three fixes make head_dim 256 (tile_n 80 and 64) and 192 (tile_n
  112) compile and match the reference, as the sgl-project/sglang#35757
  comment says; the comment's regression test fails on main and passes
  on all three.
- head_dim 160 and 224 get past the compile error but give wrong output
  (flash_attn_with_kvcache) or an illegal memory access
  (flash_attn_varlen_func), on SGLang's copy and on flash-attention.
- tile_n 144 (head_dim 80 and 96, non-causal) is wrong with the cp.async
  paged loader on every tree, including main and flash-attention main;
  cause not located, not reported upstream.
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-03T02:46:42.614353Z b12bbe5 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6d5d4901dd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread experiments/upstream_fa4/make_trees.sh Outdated
git -C "$fa" sparse-checkout set flash_attn/cute
git -C "$fa" checkout --quiet --detach "$fa_commit"
fi
[ "$(git -C "$fa" rev-parse HEAD)" = "$fa_commit" ]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject dirty reused FlashAttention checkouts

When <dir>/flash-attention already exists at the pinned HEAD but has tracked edits under flash_attn/cute, make_trees.sh reuses it and this check validates only the commit ID; run_all.sh likewise records only that ID before importing the edited files through the fa-pkg symlink. The resulting cases are therefore labeled fa-843bf0b86b even though they may exercise modified kernel code, invalidating the comparison with FlashAttention main. Require a clean checkout or verify the imported files' hashes before running.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Fixed in 9d1844f: make_trees.sh refuses a reused checkout with tracked changes, and run_all.sh checks the same and that fa-pkg/flash_attn/cute resolves to the checkout's directory. The checkout this run used was clean when checked afterwards (git status --porcelain empty, symlink resolves to it); 50b6f15 says so in the evidence README. The evidence was not regenerated, since the change only adds input checks.

make_trees.sh reused an existing checkout after checking only its commit,
and run_all.sh labels the flash-attention cases with that commit, so local
edits under flash_attn/cute would have been reported as main's. Both now
require no tracked changes, and run_all.sh checks that fa-pkg points at the
checkout. (Codex on #228.)
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 50b6f153cd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread experiments/upstream_fa4/run_all.sh Outdated
Comment on lines +33 to +36
changed=$(git -C "$t" status --porcelain --untracked-files=no | awk '{print $2}' | tr '\n' ' ')
want='python/sglang/kernels/ops/attention/flash_attn/cute/paged_kv.py '
[ "$v" = main ] && want=''
[ "$changed" = "$want" ] || { echo "$t: unexpected changes: '$changed'" >&2; exit 1; }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Verify each SGLang variant's actual contents

The new cleanliness checks protect the FlashAttention checkout, but each SGLang variant is accepted solely because paged_kv.py is the only changed path. If that file is edited after make_trees.sh—including replacing the intended one-line variant with arbitrary kernel changes—this check still passes and the run labels the results ceil, ceil_div, or max_one; the recorded hash exposes the mismatch but does not prevent mislabeled evidence. Compare the file contents or hash against the output expected from apply_variant.py before running.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Fixed in 4461a99: apply_variant.py --check rebuilds each variant from the tree's committed paged_kv.py and fails on any byte difference, and run_all.sh runs it for every tree before any case. The committed run is unaffected: the trees it used pass the check, and the four sha256 values it recorded (summary.json meta.paged_kv_sha256) are exactly the variants' (main a80b0caf, ceil aa302635, ceil_div 5733190a, max_one 69fc3314; the reviewer recomputed them independently from f6fcda8827). 8dbc98e notes both after-the-run input checks in the evidence README.

…ctly its variant

run_all.sh accepted a tree when paged_kv.py was its only changed file, so
any edit to that file after make_trees.sh would have run under the
variant's label. apply_variant.py --check rebuilds the variant from the
tree's committed file and fails on any difference; run_all.sh runs it for
every tree. (Codex on #228.)
@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES at 50b6f15

This is a full review of the head as it stands. The head has moved past 6d5d490, and its author has an unpushed commit for the Codex item below. The evidence agrees with the posted #35757 comment, and the numbers check out. Two items block.

Blocking

  1. The tile_n 144 paragraph misstates the entry count (evidence/upstream_fa4/README.md, "tile_n 144").
    • The README says: "Head_dim 96 and 80 without causal masking use a 192 x 144 tile, and every form of the line, including main's floor, gives 1 entry per thread."
    • The SM90 call passes num_threads = self.num_threads_per_warp_group (flash_fwd_sm90.py:983-997 at f6fcda8827), which is 128. For n = 144: main 144 // 128 = 1, max_one 1, ceil (144 + 127) // 128 = 2, ceil_div 2.
    • This contradicts engine/sglang/README.md's speed-lowc row 0001 ("the 192 x 144 tile ... gets two entries per thread instead of one"). The README's own earlier sentence ("At tile_n 144 every form gives at least 1") is right.
    • Correction: "... use a 192 x 144 tile: main's floor and max_one give 1 entry per thread, ceil and ceil_div give 2, and all four compile."
    • The finding itself (wrong on every tree) is unaffected.
  2. Codex P2 4170643759 on 50b6f15 is unanswered ("Verify each SGLang variant's actual contents"). It is valid as hardening, and fixing it as you plan (check each tree's paged_kv.py hash against apply_variant.py's expected output before running) closes it. For the reply, the committed run is unaffected:
    • I recomputed each variant from f6fcda8827's paged_kv.py with apply_variant.py's exact text, and the four sha256 values equal summary.json meta.paged_kv_sha256: main a80b0caf, ceil aa302635 (= 4eba651f81's file), ceil_div 5733190a, max_one 69fc3314.
    • The ceil_div and max_one hunks equal fix: FA4 paged-KV zero-size page-table registers on SM90 sgl-project/sglang#35757 at c378afffbe and #42019 at 5d452c36de, read live: same line, same comment.

Verified (no change needed)

  • The fix's cases.
    • On main, head_dim 256 (tile_n 80, causal at page sizes 1 and 16, non-causal at page size 1), the 127-token window (tile_n 64) and head_dim 192 (tile_n 112) fail with the ValueError.
    • On all three fixed trees they are ok with identical errors: 0.00222-0.00294, against 0.00598-0.00996 for the BF16 reference.
    • The head_dim 128 control is ok on all four trees.
    • pytest: main fails 2 of 2 with the ValueError; ceil, ceil_div and max_one pass 2 of 2 each.
  • head_dim 160 and 224, page size 1.
    • kvcache is wrong on all three fixed trees: 0.674-1.467, against BF16 0.0047-0.0080.
    • varlen faults on ceil and on flash-attention 843bf0b86b (four cases each).
    • The contiguous and TMA cases are ok on main and ceil (0.00217-0.00246).
  • The posted comment (live, updated 22:02 UTC) agrees on every status. Its 1.03-1.43 is from the earlier run, which the README states, and it lies inside this run's 0.67-1.47.
  • The rows_per_pass rule.
    • The formula matches paged_kv.py:74-90: rows = 128 // (gcd(d, dv, 64) // 8) for BF16.
    • Of the 66 cp.async cases that compiled, the 37 wrong or faulting ones are exactly those whose tile_n is not a multiple of rows_per_pass. Of the remaining 29, 27 have tile_n a multiple and 2 are the 144-key varlen cases (cpasync_pattern lists those two as its mismatches).
  • tile_n 144 numbers.
    • head_dim 96, page size 1: 0.353 / 0.979 / 0.963 / 0.602 against 0.0106.
    • Page size 16: 0.518 / 0.324 against 0.0136.
    • head_dim 80: 0.946 / 1.944 against 0.0076.
    • varlen at 144 keys: 0.00129.
  • Varying wrong outputs. paged_calls_identical is False in 8 of the 9 wrong varlen rows and True in all 6 ok rows.
  • Meta. Repository fd07270 with repo_dirty false; SGLang f6fcda8827; flash-attention 843bf0b86b; driver 570.195.03; torch 2.13.0+cu130.

Pending

Queued in the CPU window because a timed hold is running (reviewer4-228-regen.sh):

  • summarize.py on a scratch copy of run-20261002T223025Z, compared with the committed cases.csv, with cases.run.csv (the fd07270 run), and with summary.json minus summarize_commit;
  • an AST comparison of regression_test_sm90.py's test function with the comment's code block;
  • pre-commit.

I will post the results. On the next head I will check the variant-hash check, the reply, the tile_n 144 sentence, Codex, and those results.

…t tile_n 144

The tile_n 144 paragraph said every form gives 1; floor and max(1, floor)
give 1, the ceil forms give (144 + 127) // 128 = 2. The finding is
unchanged. (Reviewer on #228.)
# Conflicts:
#	evidence/README.md
#	experiments/README.md
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@SamMausberg

Copy link
Copy Markdown
Owner Author

CPU-window results at 50b6f15, the head of my verdict:

  • Regeneration. summarize.py on a scratch copy of run-20261002T223025Z reproduces cases.csv byte for byte, and the run's own cases.run.csv (written at fd07270) is byte-identical to the committed cases.csv. summary.json is identical apart from summarize_commit (summarize.py is unchanged between 51a4376 and 50b6f15).
  • Regression test. regression_test_sm90.py's test function has the same Python syntax tree as the code block in the posted #35757 comment.
  • pre-commit passed on the 12 changed files (rc 0).

The head has since moved to 98a27c0. I will review that delta when it is routed to me.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE at 98a27c0 (provisional on Codex, which is running on this head)

This is a delta review from 50b6f15. Both blockers are fixed.

  • tile_n 144 (6420364). The README now reads "main's floor and max_one give 1 entry per thread, ceil and ceil_div give 2, and all four compile". That is correct for n = 144 with 128 threads.
  • Codex P2 4170643759 (4461a99, replied).
    • apply_variant.py --check rebuilds the variant from the tree's committed paged_kv.py (git show HEAD:) and fails on any byte difference.
    • run_all.sh runs it after checking that each tree is at f6fcda8827 with only paged_kv.py changed.
    • The trees the run used still pass: all four are at f6fcda8827, their paged_kv.py sha256 values are a80b0caf, aa302635, 5733190a and 69fc3314 (equal to summary.json meta and to my rebuild from the base), and flash-attention is at 843bf0b86b with no local edits.
    • The README's new provenance sentence (8dbc98e) is accurate.
  • The merge of main f6f86ac (98a27c0). The PR's files equal 6420364's blobs except the two index files, whose added rows are identical to the PR's rows before the merge.
  • pre-commit. The author's run at 6420364 passed (rc 0). My CPU-window results at 50b6f15 still apply to the evidence files, which are unchanged.

I will confirm once Codex has finished on 98a27c0.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 98a27c0a9f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread experiments/upstream_fa4/run_all.sh Outdated
fa_commit=843bf0b86bda1c92edc440ec58f9b5194609abac
export SGLANG_DIR=${SGLANG_DIR:-$HOME/sglang-upstream}
# shellcheck source=/dev/null
source "$repo/scripts/sglang_env.sh"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Abort when the SGLang environment fails to activate

When SGLANG_DIR names a checkout with a missing or broken .venv, this source returns nonzero, but set -uo pipefail does not stop the script. If the caller's existing Python environment happens to provide the required packages, the GPU suite then runs under that unintended environment and can produce evidence rather than reporting the setup failure; guard the activation with || exit 1.

AGENTS.md reference: AGENTS.md:L7-L10

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Fixed in 80f4ba8. The || exit alone would not have caught it: with a missing venv, scripts/sglang_env.sh prints the activate error but returns 0. So run_all.sh now stops unless command -v python is $SGLANG_DIR/.venv/bin/python and meta.json is written (meta's Python also asserts sys.prefix). It also clears inherited SGLANG_*, CUTE_DSL_*, FLASH_ATTENTION_* and PYTHON* settings and records their names. Checked on CPU: a nonexistent SGLANG_DIR now stops before any case. The committed run used the upstream venv: meta records nvidia-cutlass-dsl 4.8.0 and quack-kernels 0.6.5, which only that venv has here. The evidence README says so (b2e60d8).

Comment thread experiments/upstream_fa4/run_all.sh Outdated
export SGLANG_CUTE_AOT_CACHE_DIR='' OMP_NUM_THREADS=1 PYTHONUNBUFFERED=1
unset FLASH_ATTENTION_CUTE_DSL_CACHE_ENABLED FLASH_ATTENTION_CUTE_DSL_CACHE_DIR
cores=${CORES:-56-59}
mkdir -p "$out"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Refuse to reuse a nonempty output directory

When <out> already contains a kv_*.json or vl_*.json from an earlier run—for example after the case matrix changes—mkdir -p preserves it, while summarize.py later globs every matching record. The resulting cases.csv and summary.json therefore mix stale results with the new run under the new meta.json; require a fresh directory or remove all owned artifacts before starting.

AGENTS.md reference: AGENTS.md:L15-L18

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Fixed in 80f4ba8: run_all.sh refuses an output directory that holds anything but hold.log (which a caller may have redirected into it). summarize.py now also fails unless every record was imported from its own tree. The committed run is unaffected: its directory was created at 22:30:25 UTC, and all 89 records were created after that (22:30:27-22:42:56, file birth times). Rerunning summarize.py with the import check on those records reproduces the committed cases.csv and summary.json, apart from summarize_commit. The evidence README says so (b2e60d8).

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES at 98a27c0

I am withdrawing my provisional approval of 98a27c0. Codex finished on this head and raised two new P2s on run_all.sh. Both are valid as hardening and blocking under the standing rule until they are fixed or answered.

  • 4170805273. source scripts/sglang_env.sh is not guarded, so a broken SGLANG_DIR venv lets the suite run under whatever Python the caller has. Use || exit 1.
  • 4170805275. mkdir -p "$out" reuses a non-empty directory, and summarize.py would then mix stale kv_*/vl_* records into the new summary. Refuse an existing non-empty <out>.

Neither affects the committed run.

  • meta.json records the venv's torch 2.13.0+cu130 and the package versions the README lists.
  • The run directory holds exactly the 89 records in cases.csv, all written between 22:30:35 and 22:43:01 UTC in one run.

A reply can say so. My delta checks at 98a27c0 (tile_n 144 wording, apply_variant.py --check, the trees' hashes, the merge) stand.

…tput directory

From Codex on #228, and a sweep of both scripts for the same classes:

- run_all.sh clears inherited SGLANG_*, CUTE_DSL_*, FLASH_ATTENTION_* and
  PYTHON* settings, and stops unless `python` is SGLANG_DIR's venv (a
  missing venv made sglang_env.sh print an error but return 0) and unless
  meta.json is written; meta records the cleared names.
- run_all.sh refuses an output directory holding anything but hold.log,
  so summarize.py cannot mix in records of an earlier run.
- run_all.sh checks that fa-pkg holds only flash_attn/{__init__.py,cute};
  make_trees.sh rebuilds fa-pkg, checks each variant it writes, and names
  the failed precondition.
- summarize.py fails unless every record was imported from its own tree.
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b2e60d8b9a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread experiments/upstream_fa4/run_all.sh Outdated
for v in main ceil ceil_div max_one; do
t=$trees/sglang-$v
[ "$(git -C "$t" rev-parse HEAD)" = "$sglang_base" ] || die "$t: not at $sglang_base"
changed=$(git -C "$t" status --porcelain --untracked-files=no | awk '{print $2}' | tr '\n' ' ')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject untracked importable files in reused trees

The new cleanliness check still suppresses untracked files, so a reused SGLang worktree containing an untracked importable file such as python/sitecustomize.py passes both this check and apply_variant.py --check. Every case later places that python directory on PYTHONPATH, causing Python to load sitecustomize.py automatically even with PYTHONNOUSERSITE=1; it can therefore alter the experiment while the summary's module-origin check still succeeds and the results remain labeled as pristine pinned variants. Reject untracked source files while explicitly allowing only known cache artifacts.

Useful? React with 👍 / 👎.

@SamMausberg SamMausberg Oct 3, 2026 •

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Fixed in b064a31. run_all.sh now accepts nothing in an SGLang tree or the flash-attention checkout beyond the expected change: no tracked, untracked or ignored file, apart from __pycache__ directories. It uses git status --porcelain --untracked-files=all --ignored. It also stops on any uncommitted or untracked file in this repository. make_trees.sh checks a reused checkout the same way. Checked on CPU: an untracked python/sitecustomize.py in a tree, or an extra file in the flash-attention checkout, stops the run; the clean trees pass. The trees the committed run used, checked afterwards, hold nothing beyond their expected change apart from __pycache__. The evidence README lists this (e0989f5).

…rees

The cleanliness checks ignored untracked files, so an untracked
python/sitecustomize.py in an SGLang tree (on PYTHONPATH in every case)
would have run unnoticed. run_all.sh now accepts no file in an SGLang tree
or the flash-attention checkout beyond its expected change, tracked,
untracked or ignored, apart from __pycache__ directories; make_trees.sh
checks a reused checkout the same way. run_all.sh also stops if this
repository has uncommitted or untracked files, instead of recording it.
(Codex on #228.)
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

…ange a result

A proactive pass over the same classes as Codex's items on #228:

- run_all.sh also clears inherited PYTEST_*, TORCH_*, CUBLAS_*,
  NVIDIA_TF32_OVERRIDE and CUDA_LAUNCH_BLOCKING, and stops if the
  repository is not a git checkout.
- kvcache_check.py and varlen_check.py turn TF32 off for their FP32
  references explicitly (torch's default for matmuls, so no change in
  this run) and count any CUDA error as a fault, not only an illegal
  memory access.
- regression_test_sm90.py checks that the imported sglang comes from
  SGLANG_TREE, ahead of anything pytest adds to sys.path.
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3805c0c691

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread experiments/upstream_fa4/summarize.py Outdated
tail = re.findall(r'^(?:=+ )?(\d+ (?:passed|failed|errors?)\b.*?) in [0-9.]+s', text, re.M)
errors = sorted(set(re.findall(r'^E\s+(\w+(?:Error|Exception)[^\n]{0,120})', text, re.M)))
return {
'outcomes': re.findall(r'^(PASSED|FAILED|ERROR) (\S+)', text, re.M),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject skipped regression-test runs

When is_sm90_supported() is false, both parametrizations are skipped and pytest still considers the suite green (pytest skip documentation); section 4 of run_all.sh therefore accepts exit 0, while this regex and the summary regex ignore SKIPPED/skipped. The overall run can consequently finish with status 0 and an empty regression-test result, so require exactly two completed PASSED/FAILED outcomes or explicitly reject skips.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Fixed in 4efc901. summarize.py now takes --expect-pytest (the trees the test ran on) and fails unless each tree's log has exactly two PASSED or FAILED outcomes and no SKIPPED, ERROR, XFAIL or XPASS. In the same pass it takes --expect-cases: run_all.sh counts the cases as it runs them, and summarize.py fails unless exactly that many records exist, each with a known status. Checked on CPU: a log with both cases skipped, a wrong case count, or a missing tree each fail. The committed run passes: 89 records, and the test on four trees with 2 outcomes each, none skipped (main FAILED x2, the three fixed trees PASSED x2). The evidence README says so (d824590).

…cluded

summarize.py accepted a regression-test log whose two cases were
skipped (pytest exits 0) and any number of case records. It now takes
--expect-cases (the number of cases run_all.sh ran, counted as they run)
and --expect-pytest (the trees the test ran on), and fails unless every
record is there with a known status and each tree's test log has exactly
two PASSED or FAILED outcomes and no SKIPPED, ERROR, XFAIL or XPASS.
(Codex on #228; the case-count and status checks are this round's sweep
of the same class.)
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d824590504

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +35 to +36
cleared=$(compgen -e | grep -E '^(SGLANG_|CUTE_DSL_|FLASH_ATTENTION_|PYTHON|PYTEST_|TORCH_|CUBLAS_|NVIDIA_TF32_OVERRIDE$|CUDA_LAUNCH_BLOCKING$)' | grep -vx SGLANG_DIR | tr '\n' ' ')
for v in $cleared; do unset "$v"; done

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Clear CUDA path overrides before activating the environment

When the caller exports CUDA_HOME_13 or CUDA_COMPAT_DIR, this filter leaves both variables intact, and scripts/sglang_env.sh explicitly uses them to select the toolkit and compatibility libraries. The suite can therefore compile and run against a different CUDA installation while still reporting success, and meta.json does not record those paths; clear these overrides before sourcing the required environment.

AGENTS.md reference: AGENTS.md:L7-L10

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Fixed in 5a50ff7. run_all.sh unsets CUDA_HOME, CUDA_HOME_13, CUDA_COMPAT_DIR, CUDA_PATH, LD_LIBRARY_PATH and LD_PRELOAD before sourcing scripts/sglang_env.sh, so the machine's defaults are used. meta.json records whether CUDA_HOME is the default, whether the compat directory comes first, and LD_PRELOAD. Checked on CPU: with all six set to bogus values, the environment comes out at the defaults with nothing preloaded. The committed run is unaffected: the shell that submitted it had none of these overrides; its inherited LD_LIBRARY_PATH held only the system's OpenMPI directories, which sglang_env.sh places after the CUDA ones. The README says so (85d8b93).

Comment on lines +54 to +55
repo_state=$(git -C "$repo" status --porcelain --untracked-files=all | grep -vE '^\?\? (.*/)?__pycache__/')
[ -z "$repo_state" ] || die "the repository has uncommitted or untracked files: $(echo "$repo_state" | head -3 | tr '\n' ' ')"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject ignored bytecode that can shadow experiment imports

When an ignored legacy bytecode file such as experiments/upstream_fa4/torch.pyc exists, this status command omits it because it does not request ignored files. Python places the invoked script's directory first on sys.path and can import that sourceless bytecode instead of the venv package, so an altered experiment is still recorded with repo_dirty: false; inspect or reject ignored importable artifacts in this experiment directory as well.

AGENTS.md reference: AGENTS.md:L15-L19

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Fixed in 5a50ff7, in two ways. run_all.sh starts every Python with -P, so a script's directory and the working directory are never on sys.path. It also stops on ignored files Python could import ahead of the venv: anything in experiments/upstream_fa4/ or src/ (pytest adds src/ and the repository root), and at the repository root, module-like files (.py/.pyc/.pyo/.so/.pth) or untracked directories. Checked on CPU: a planted experiments/upstream_fa4/torch.pyc, ./einops.pyc, an ignored ./torch/ package, or src/sglang.pyc each stops the run; the clean checkout passes. The checkout used for the committed run holds none of these (README, 85d8b93).

…iles that could shadow imports

From Codex on #228, with a sweep of the same classes:

- run_all.sh unsets CUDA_HOME, CUDA_HOME_13, CUDA_COMPAT_DIR, CUDA_PATH,
  LD_LIBRARY_PATH and LD_PRELOAD before scripts/sglang_env.sh, which
  otherwise uses the first three to pick the toolkit and compatibility
  libraries; meta.json records whether the defaults are in use.
- It stops on ignored files Python could import ahead of the venv:
  anything in experiments/upstream_fa4/ or src/ (pytest adds src/ and the
  repository root to sys.path), and at the repository root module-like
  files or untracked directories.
- Every Python it starts runs with -P, so a script's own directory or the
  working directory is never put on sys.path.
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 74057d67e5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread experiments/upstream_fa4/run_all.sh Outdated
local tag=$1 pp=$2
shift 2
ncases=$((ncases + 1))
PYTHONPATH=$pp timeout --foreground 150 taskset -c "$cores" "$@" >"$out/$tag.json" 2>"$out/$tag.stderr"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Time out compiler children with their parent

When a harness or pytest invocation spawns a CuTe compiler subprocess and exceeds its limit, --foreground defeats the intended containment: GNU timeout --help explicitly states that in this mode “children of COMMAND will not be timed out.” Only the Python parent receives TERM, so a compiler child can survive and keep using the GPU while the loop launches cases for subsequent trees; gpu_job.sh cleans such descendants only after the entire run_all.sh command exits. Use timeout's normal process-group mode or explicitly terminate the descendant group here and in section 4.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Fixed in b181506 with experiments/upstream_fa4/run_case.py. It replaces timeout --foreground for every case, every regression-test run and the meta.json step. It starts the command in a process group of its own, waits up to the limit, and afterwards (after a normal exit too) stops whatever is left in that group, SIGTERM then SIGKILL after 10 s; it exits 124 on a timeout. The group stays a descendant of gpu_job.sh, which reaps anything that escapes it when the job ends. Checked on CPU: a command that backgrounds a long sleep and times out is stopped with its child, and a command that exits normally and leaves a background child has that child stopped. The committed run is unaffected: no case or test run reached its limit (hold.log exit codes are all 0/2/3/4 for cases, 0/1 for tests), and nvidia-smi listed no GPU process when the cases had finished. README a090ed8.

…ds or times out

From Codex on #228: `timeout --foreground` stops only its direct child,
so a compiler process started by a timed-out case could keep running into
the next case. run_case.py runs each case, each regression-test run and
the meta.json step in a process group of its own, waits up to the limit,
and afterwards (after a normal exit too) terminates whatever is left in
that group, SIGTERM then SIGKILL. It exits 124 on a timeout, as timeout
does. The group stays a descendant of gpu_job.sh, which reaps anything
that escapes it when the job ends.
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 11eabc5ac8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

# else, tracked or not, ignored or not (an untracked sitecustomize.py on PYTHONPATH would run in
# every case), apart from Python's own __pycache__ directories.
state() { # git status of a tree, ignored files included, without __pycache__ entries
git -C "$1" status --porcelain --untracked-files=all --ignored | grep -vE '^(\?\?|!!) (.*/)?__pycache__/'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject bytecode caches in tested source trees

When a reused SGLang or FlashAttention tree contains an unchecked-hash .pyc under __pycache__, this filter hides it from the cleanliness check, yet Python will load that bytecode in preference to the verified source even if the source hash or contents differ. The run can therefore execute arbitrary stale or modified kernel code while reporting the pinned commit and verified paged_kv.py hash. Fresh evidence beyond the earlier script-directory bytecode fix is that state() still explicitly exempts every __pycache__; remove these caches before running or reject their contents.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Fixed in ea4ce6b: run_all.sh sets PYTHONPYCACHEPREFIX to a directory of the run's own, so Python writes and reads bytecode only there and never from a tree's pycache. Checked on CPU: a module whose pycache holds an unchecked-hash .pyc of different code loads that code without the prefix, and the source with it. Sourceless .pyc files outside pycache were already refused by the tree checks. The committed run is unaffected: every .pyc in the trees' pycache was first written during the run (from 22:30:28, each tree's at its first case), so none predated it. README updated in the same push.

Comment on lines +84 to +85
fa_pkg=$(find "$trees/fa-pkg" -mindepth 1 ! -path '*/__pycache__*' ! -path "$trees/fa-pkg/flash_attn/cute/*" -printf '%P\n' | sort | tr '\n' ' ')
[ "$fa_pkg" = 'flash_attn flash_attn/__init__.py flash_attn/cute ' ] || die "fa-pkg holds more than flash_attn/{__init__.py,cute}: $fa_pkg"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Verify the FlashAttention package initializer contents

When fa-pkg/flash_attn/__init__.py is edited after make_trees.sh, this layout-only check still passes because the filename is unchanged. Importing flash_attn.cute executes that initializer first, so it can alter imports or runtime state while the results remain labeled with the pinned FlashAttention commit; require this file to be empty as created by make_trees.sh, or rebuild fa-pkg before every run.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Fixed in ea4ce6b: run_all.sh stops unless fa-pkg/flash_attn/init.py exists and is empty, as make_trees.sh writes it, alongside the existing checks on the fa-pkg layout and on the symlink target. Checked on CPU: a one-line initializer stops the run, and the empty one passes. The committed run used the empty file make_trees.sh wrote at 22:12 (birth time; size 0). README updated in the same push.

…-pkg's empty initializer

From Codex on #228:

- The tree checks leave out __pycache__, and Python would load a .pyc
  with an unchecked hash from there in place of the verified source.
  run_all.sh now sets PYTHONPYCACHEPREFIX to a directory of this run's
  own, so Python writes and reads bytecode only there and never from a
  tree; meta.json records that the prefix is set.
- run_all.sh checks that fa-pkg/flash_attn/__init__.py is the empty file
  make_trees.sh writes, since importing flash_attn.cute runs it first.
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: b12bbe58b3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@SamMausberg

SamMausberg commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE at b12bbe5

This is a full review of the head: the whole diff against main (ae473c4, which is also the merge base), the PR body, and every earlier comment. Codex is clean on this head (5964782818). Nothing blocks. Three optional items are at the end.

Earlier items, all resolved

  • Reviewer 4, tile_n 144 entry count. README:73-75 now says main's floor and max_one give 1 entry per thread and ceil and ceil_div give 2. That is right for n = 144 with 128 threads.
  • Codex 4170643759 (variant contents). apply_variant.py --check passes on all four trees the run used. Their hashes are a80b0caf, aa302635, 5733190a and 69fc3314, equal to meta.paged_kv_sha256.
  • Codex 4170805273 and 4170805275 (environment activation, reused output directory). I ran both cases on CPU at this head:
    • SGLANG_DIR=/nonexistent stops with "python is /usr/bin/python, not /nonexistent/.venv/bin/python" (rc 1).
    • An output directory holding a kv_x.json stops with "is not empty" (rc 1).
    • Neither starts a case.
  • The later Codex items (4170859102, 4170893634, 4170991837/841, 4171122954, 4171282235/238) each have a reply, and the fix each reply describes is in run_all.sh, run_case.py or summarize.py at this head. The README's list of checks added after the run (130-162) names each one with the commit that added it. I matched each commit's subject and files.

Verified

Numbers. I recomputed every number in the README and the PR body from cases.csv, and the varlen per-call ranges from the raw records. Every one matches, including its rounding.

  • Fix cases:
    • Fixed-tree errors are 0.0022-0.0029 (0.00222-0.00294), against BF16 0.0060-0.0100 (0.00598-0.00996).
    • The errors are identical across ceil, ceil_div and max_one in all five configurations.
    • main fails all five with the ValueError.
    • The regression test fails 2 of 2 on main and passes 2 of 2 on each fixed tree.
  • head_dim 160/224, kvcache on the fixed trees: errors are 0.674-1.467, against BF16 0.0047-0.0080.
    • Contiguous and TMA cases are 0.00217-0.00246.
    • The varlen cases are 8 illegal memory accesses (4 on ceil, 4 on flash-attention).
  • tile_n 144:
    • head_dim 96, page size 1: 0.353, 0.979, 0.963 and 0.602, against 0.01055.
    • head_dim 96, page size 16: 0.518 and 0.324, against 0.01358.
    • head_dim 80: 0.946 and 1.944, against 0.00759.
    • varlen: 0.2616-0.5103 over all calls (BF16 0.00097-0.00185), up to 1.478 at head_dim 80, and 0.00129 at 144 keys. contiguous_ok is true in all of these.
  • Paired calls: paged_calls_identical is false in 8 of the 9 wrong varlen cases and true in all 6 ok ones.
  • Exit codes in hold.log: 41 zero, 11 two, 29 three and 8 four, which is the 89 cases and equals the status counts. The pytest exits are 1, 0, 0 and 0. nvidia-smi printed no process.

Rules in the README, checked against f6fcda8827.

  • _tile_size_fwd_sm90 (interface.py:191-214) gives the tile_n values in README:26-29.
  • page_size not in [None, tile_n] (interface.py:1284) selects the cp.async loader, as the harness labels it.
  • rows_per_pass follows paged_kv.py:71-88. Its gcd uses padded head dims, but padding is to multiples of 16 (flash_fwd.py:91-96), so the raw head dims here are exact.
  • The SM90 forward passes num_threads_per_warp_group = 128 (flash_fwd_sm90.py:324, 996).

Provenance.

  • run_all.sh at fd07270 has the same 89-case matrix as the head.
  • The check scripts changed after the run only in three places: the explicit TF32 flags, the fault classifier ('CUDA error' instead of 'illegal memory access'), and the regression test's import assertion.
    • torch 2.13.0+cu130 in the upstream venv defaults to allow_tf32 False, precision "highest".
    • All 8 faults are illegal memory accesses, so neither change affects the committed results.
  • The head's summarize.py, with the import and completeness checks, reproduces the committed cases.csv byte for byte on a scratch copy of the run (--expect-cases 89 --expect-pytest main,ceil,ceil_div,max_one). It also reproduces summary.json apart from summarize_commit.
  • Negative copies fail with rc 1: 90 expected cases, a missing pytest log, a SKIPPED outcome, an empty record, a record imported from another tree, an unknown status and a missing record.
  • The README's claims about the trees and the run directory hold:
    • Every tree is at its commit with only its expected change.
    • Each tree's .pyc files were first written at its first case (22:30:28, 22:31:41, 22:33:26 and 22:35:10), and flash-attention's during the varlen cases.
    • fa-pkg/flash_attn/__init__.py is 0 bytes, born at 22:12:06.
    • The run directory was born at 22:30:25, and its 89 records between 22:30:27 and 22:42:55.7.
  • One gap the PR does not mention: the CuTe DSL has a file cache that is on by default. It played no part here. Its key is a hash of the traced MLIR bytecode (dsl.py:1621), so it can only return the same kernel. Its directory (/tmp/ubuntu/cutlass_python_cache) is empty and unchanged since 2026-09-30.
  • The package claims hold: the upstream venv has nvidia-cutlass-dsl 4.8.0 and quack-kernels 0.6.5, the paper's venv 4.6.2 and 0.6.4, and the system Python has no cutlass.

Upstream references.

  • The links to #35757, [CuTe] Fix forward dynamic-shape correctness Dao-AILab/flash-attention#2745 and #42019 return 200.
  • f6fcda8827 and 843bf0b86b resolve. 843bf0b86b is 44 commits ahead of #2745's merge commit (69e1bcbe77) and 0 behind, and its paged_kv.py has the ceil line with the same comment as the ceil variant and patch 0001.
  • #35757 (head c378afffbe) and #42019 (head 5d452c36de) are open at the heads apply_variant.py names.
  • regression_test_sm90.py's test function has the same syntax tree as the code block in the live comment, which was last edited at 22:02.
  • Nothing has been posted to flash-attention yet, so "not reported upstream" is true today.

Repository rules.

  • pre-commit passes on all 13 files at this head (rc 0: ruff, mypy, codespell, shellcheck, host-identity).
  • No hostname or IP, no ~/vp-coord or notes paths, and no co-author or "Generated with" lines in the 26 commits. All are authored as Samuel Mausberg.
  • Neither the paper nor the notes cite upstream_fa4, as the index row says.
  • "Codex on #N" in the README follows the convention of main's evidence READMEs (bf16_paths, certified_head).

Optional

  1. "stops at the first paged call" (README:67-68). The record's failed_call is paged for either of the two paged calls, and both run the same source line, so the run cannot show which call faulted. The posted comment's wording is "a single flash_attn_varlen_func call". Suggested: "fails in a paged call, before the contiguous one".
  2. Wording that will go stale. README:11 says the tile_n 144 finding "has not been reported upstream; its cause is not located", and README:73 says "cause not located". Both become stale once the flash-attention issue for the partial-pass bug is posted. "These checks do not locate its cause" stays true. Otherwise, a follow-up should update both lines when that issue is posted.
  3. summarize.py writes cases.csv before it validates the pytest logs (122-125 before 154). A failed pytest check therefore leaves a new cases.csv next to an older summary.json. run_all.sh's fresh directory prevents this in the pipeline. It matters only for the README's manual rerun on an existing run directory. Building the pytest dict before the write closes it.

The PR body's last line ("the full run is queued") can now say that pre-commit passes at b12bbe5.

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