Skip to content

bench/embed: the write-up of the embedding gate (PR 4 of the plan) - #174

Merged
winding-lines merged 1 commit into
mainfrom
embed-writeup
Nov 29, 2026
Merged

winding-lines merged 1 commit into
mainfrom
embed-writeup

Conversation

@winding-lines

Copy link
Copy Markdown
Contributor

PR 4 of the plan in bench/embed/README.md: the README becomes the results of the embedding gate.

What changes. bench/embed/README.md is restructured: what was compared (the job, both systems, the machines), the verdict per bar, the tables, the two slow runs, memory and what grows, recovery, groups, what is like-for-like and what isn't, how the runs were made and how to rerun them, what is unmeasured, and the background from PRs 1 and 2 (shortened; the development numbers that the gate's runs replaced are gone). Every number was checked against results/2026-11-28-sai and results/2026-11-28-bgent. A comment in runs.sh points at the new section name.

The verdict.

  • Speed: passed (1.58 and 2.10 times Ray Data per pinned CPU on sai), but most of the lead is encoder.mojo against PyTorch: the flow made 97.5%/90.0% of E times its encoder alone, Ray 94.7%/83.6%.
  • Memory: not met as stated. Under 512 MB to 10M stub texts, but the total grows about 19 MB per million texts.
  • Recovery: exact on both; dista +61% on sai because nothing replaces the killed worker in this bench, Ray +2.5%.
  • Groups: passed. Sharing: not measured. No GPU, no cluster run.

Two findings settled.

  • The head's growth is Head._finished, one _Span per settled task, kept until the driver asks for its spans and capped at MAX_SPANS (1,000,000) per driver. A local build with MAX_SPANS = 0 had a flat head (18.8, 18.9, 18.7 MB at 1M, 2M, 4M stub texts, against 28.7, 39.5, 59.7 MB as merged). It is bounded retained data, not a leak, so no issue was opened.
  • The two slow dista runs at E = 2 on sai (200.1 and 215.3 texts/s) ran beside about two CPUs of other work: sysstat shows 13% to 14% user on each of CPUs 8 to 15 during them, and about 1% or less during the fast runs, while the job's own CPU fell from 6.7 to 5.5/5.8 cores.

Old text corrected: the "nothing else ran on sai" claim, the head's growth as "unexplained" and the 23-million-text extrapolation, model load times, the Mac's load-average range, sai's memory (63 GiB), and two small table values.

🤖 Generated with Claude Code

https://claude.ai/code/session_017TycsyUqdnuDeZrYc3z6wV

The README becomes the results: what was compared, the verdict per bar,
the tables (each number checked against results/2026-11-28-sai and
-bgent), how the runs were made and how to rerun them, and what is
unmeasured. Two findings are settled: the head's growth is its list of
settled tasks' spans (bounded by MAX_SPANS), and the two slow dista runs
at E = 2 on sai ran beside other work there (sysstat).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017TycsyUqdnuDeZrYc3z6wV
@winding-lines
winding-lines merged commit a5ca94b into main Nov 29, 2026
12 checks passed
@winding-lines
winding-lines deleted the embed-writeup branch November 29, 2026 13:04
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