Skip to content

docs: the GLM CUDA recipe's copy-draft rows from #1910, one checkpoint at TP=2 - #3335

Merged
ashhart merged 3 commits into
ashhart:mainfrom
Bizuayeu:docs/glm-copies-rows
Nov 16, 2026
Merged

ashhart merged 3 commits into
ashhart:mainfrom
Bizuayeu:docs/glm-copies-rows

Conversation

@Bizuayeu

@Bizuayeu Bizuayeu commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

The Verified copy drafts section of docs/recipes/glm-5.3-flash-cuda.md said that device exactness and speed were pending (#1910). They are measured now on one checkpoint: copies kept every reply the same token for token, but sped some loads up and slowed others, so TF_GLM_COPIES=1 stays opt-in. The section now says so and gives the rows, in the scope asked for in #1910 (one checkpoint, greedy, two GB10s at TP=2 with --parallel 4, the main commit), so a reader can see where copies pay and where they cost.

Load 1 stream 4 streams, per stream 4 streams, aggregate
A quoted document (~400 tokens back) +8.1% faster +0.6% faster −0.4% slower
Code +2.3% faster −1.0% slower −1.5% slower
One code prompt on every stream −0.2% inside +10.1% faster +11.0% faster
A file edited back +9.9% faster +1.5% faster +2.5% faster
Prose −3.6% slower +9.7% faster +6.5% faster
Prose after a 31K-token prompt −0.8% inside +6.7% faster +4.0% faster
Prose after a 56K-token prompt −0.6% inside +6.6% faster +4.6% faster

Checks on this head

  • Head commit: 57c5f9dea166, which only puts this pull request's number in the CHANGELOG line, on 8e567dba1126 (docs only: the recipe's paragraph and table, and one CHANGELOG line). On this head, tools/pr_check.py --base origin/main --pr 3335: 0 errors, 0 warnings (lean 341 vs 341, 0 new).
  • Tests run, with the command and pass, fail and skip counts: python -m pytest -q -rs -p no:cacheprovider from the root, on the base and on 8e567dba1126: 459 passed, 86 skipped and 519 subtests passed on each, with the same skip reasons. Main's CI run of the same job on 3d42a462fb86 has 461 passed and 84 skipped: the two more skips here are tools/zig/test_nfkd_tables.py's, since this interpreter has Unicode 15.0.0.
  • CI: green on 57c5f9dea166 (runs 43592855621 and 43592855612): benchmark-clients (ubuntu-latest, windows-latest), pytest (461 passed, 84 skipped and 519 subtests passed, as on main), release-paths (ubuntu-24.04), zig, zig-macos-dev-tools, zig-windows and fmt pass; host-nightly-linux and host-nightly-macos were skipped by the workflow.
  • Not run, and why: inference, since the change is documentation only; the rows come from the runs in glm cuda (native): copy drafts are missing, and the 48% acceptance the Python lane gets from them is what keeps it ahead #1910.

Receipt

n/a: documentation only, so it cannot reach inference. The rows are my #1910 comment's, measured on main 0fed2e4a5f with Bizuayeu/GLM-5.3-Flash-Jammed-XSFP4 on two GB10s at TP=2, --parallel 4, four fresh launches (off, on, on, off), tools/bench_concurrent.py --alone --serial, greedy, 3 reps, each figure the cell's median. Every item's token_sha256 was one hash over its streams, reps, alone and serial runs and the four launches. The copy-on launches turned copies on through a local default with the same path as TF_GLM_COPIES=1, against TF_GLM_COPIES=0; that comment's "Setup and every row" has each launch's tok/s and range.

Checklist

  • The title and description match the head commit, including the receipt and the stack.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency. (No new tests: a recipe paragraph and table, and one changelog line.)
  • Comments and docstrings are one line. No measurements or history in the source. (No source changes.)
  • No personal data, machine names, internal hosts or local paths in the diff or its commits. No AI attribution lines.

Bizuayeu added a commit to Bizuayeu/TensorFold that referenced this pull request Nov 14, 2026
@ashhart

ashhart commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Thanks @Bizuayeu. The table keeps the useful gains and the slower cells visible, names the one-checkpoint greedy TP=2 setup, and explains the copy-on default used for those runs. The default remains off, and the text keeps other checkpoints and sampled replies outside that evidence. The figures match the supplied description and the local link checks pass. Ready for this docs update; no device rerun needed.

  • Synthena (Ash's Agent)

@Bizuayeu

Copy link
Copy Markdown
Contributor Author

Ready for this docs update; no device rerun needed.

#3335 (comment)

One note for landing: main (2ba55ec7d3, Release 1.2.9) has no Unreleased heading, so a test merge of this branch puts its CHANGELOG line under ## 1.2.9, which has already shipped. I can rebase and move the line under the next Unreleased once that section exists, or you can move it at landing, whichever suits the queue.

@ashhart

ashhart commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

@Bizuayeu, we applied the series to main and read the recipe against the rows you posted for #1910: the section
now carries the measured table in the requested scope - one checkpoint, greedy, two GB10s at tensor parallel
two, four fresh launches - and it says plainly where copies pay and where they cost, including the cells where
the aggregate is slower at four streams.

Nothing to change from us. The table is exactly the reason the copies flag stays opt-in, which is the point the
section needed to make; the rows match your #1910 measurements, and the recipe no longer promises device
results that were pending.

No hardware run is needed on our side - the change is documentation only and reaches no inference. The CHANGELOG line's conflict with main's Unreleased section is ours to resolve at landing.

  • Synthena (Ash's Agent)

…eckpoint at TP=2

On Bizuayeu/GLM-5.3-Flash-Jammed-XSFP4, greedy, two GB10s at TP=2 with
--parallel 4 and main 0fed2e4, copies kept every reply the same token
for token, but sped some loads up and slowed others, so TF_GLM_COPIES=1
stays opt-in (the owner's answer on ashhart#1910). The Verified copy drafts
section said device exactness and speed were pending; it now says what
that checkpoint showed and gives its rows, in that scope.
@ashhart
ashhart force-pushed the docs/glm-copies-rows branch from 57c5f9d to 6e2220a Compare November 16, 2026 15:25
@ashhart
ashhart merged commit 6fae210 into ashhart:main Nov 16, 2026
1 of 10 checks passed
ashhart pushed a commit that referenced this pull request Nov 16, 2026
@ashhart

ashhart commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Thank you @Bizuayeu. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

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.

2 participants