Skip to content

docs(benchmarks): restructure into internal/longmemeval/locomo, commit raw artifacts, fix baseline labels - #1209

Merged
ajianaz merged 5 commits into
developfrom
docs/benchmarks-restructure
Sep 9, 2026
Merged

ajianaz merged 5 commits into
developfrom
docs/benchmarks-restructure

Conversation

@ajianaz

@ajianaz ajianaz commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

What

Restructure benchmarks/ into the layout agreed with the owner:

benchmarks/
├── README.md        (index: what each benchmark is, status, policies)
├── internal/        (uteke bench perf results)
├── longmemeval/     (harness + committed canonical raw artifacts)
└── locomo/          (planned external benchmark #2)

Details:

  • longmemeval/ scripts move into scripts/ (pure git mv); harness paths fixed (modal_fanout.py, modal_fast50.py, make_fast_eval.py)
  • Canonical raw artifacts now committed under longmemeval/results/ (default-500q.jsonl, fts5-500q.jsonl, contradiction metrics — ~1.1MB total). Previously "raw not committed" made headline numbers unauditable from GitHub; now anyone can recompute any published figure from the repo (audit snippet included in RESULTS.md)
  • RESULTS.md: explicit 470 + 30 decomposition (470 non-abstention / 30 abstention _abs / full 500), all three aggregate bases labeled; full-500 aggregates added (recall_any@5 0.982, strict recall_all@5 0.880, coverage 0.943); corrected baseline label: the 0.854/0.885 (2026-08-13) full-500 baseline is the vector-only run, previously mislabeled "v0.15.0 hybrid" (hybrid 500Q was never run; both delta bases now stated: +8.9pp full-500, +9.2pp 470-aggregate)
  • internal/RESULTS.md: v0.17.0 re-verification run (2026-09-09, native aarch64, 3 scales exit 0) alongside the historical v0.12-era table; removes the stale benchmarks/RESULTS.md stub whose ~800 ops/s figures predate embedding-in-the-loop and contradicted docs/benchmarks.md
  • locomo/README.md: scope + plan for the second external benchmark (adapter reusing run_eval.py, pilot → full, ablations, same raw-artifact audit policy)
  • Housekeeping: drop tracked run logs (lmeval_*.log, lmeval_watch_state.json) and the superseded 470-question metrics snapshot; gitignore allow-lists the committed raw results; docs/benchmarks.md provenance line updated

Why

Single source of truth for benchmark claims: every number traceable to a committed artifact, no silently dropped questions in aggregates, no contradictory stub tables, and a clear home for the upcoming second external benchmark. Directory layout per owner request.

Testing

  • Docs-only: 42 files — 3 new results artifacts (data), 24 pure git-mv renames, markdown updates; zero code changes
  • Every number in the new RESULTS.md recomputed from raw artifacts (0 discrepancy); internal link check passed (all relative links resolve)
  • All four benchmarks/longmemeval path references outside the folder verified (README.md, docs/benchmarks.md) — still valid after the move
  • Modal scripts: dataset/model path fix verified (REPO_DIR → parent; scripts co-located so harness-mount paths resolve); fan-out re-run planned as immediate follow-up (v0.17.0 re-validation)

…ocomo with committed raw artifacts

- benchmarks/README.md: index (what each benchmark is, status, policies, reproduce)
- benchmarks/internal/: uteke bench results — v0.17.0 re-verification (2026-09-09)
  alongside the historical v0.12-era table; removes the stale ~800-ops/s stub
- benchmarks/longmemeval/: harness scripts moved to scripts/; canonical raw
  artifacts now committed under results/ (default-500q, fts5-500q,
  contradiction-f3 metrics) so every headline number is auditable from GitHub
- RESULTS.md: explicit 470+30 decomposition (non-abstention / abstention / full-500),
  full-500 aggregates (any@5 0.982 / strict@5 0.880), corrected baseline label
  (0.854/0.885 is the vector-only run, not hybrid), v0.17.0 re-validation placeholder
- benchmarks/locomo/: planned external benchmark #2 (adapter + pilot scope)
- gitignore: allow-list committed raw results; drop tracked run logs and the
  superseded 470-question metrics snapshot
- docs/benchmarks.md: provenance line updated to committed raw artifacts
…inary cannot resume-skip old-binary shards

- new --tag flag: shards land under {strategy}-{tag}/ on the volume
  (e.g. default-v017), leaving the original default/ artifacts untouched
- without tag, behavior is unchanged (backward compatible)
- motivated by the v0.17.0 re-validation run: the volume still holds
  completed v0.16.0 shards under default/, which the resume logic would
  have silently reused
@github-actions

github-actions Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

🔍 Cora AI Code Review

❌ Blocked — critical issues found.

🔴 Error (1)

  • benchmarks/longmemeval/scripts/make_fast_eval.py:31 — HERE was changed to Path(__file__).parent.parent (= benchmarks/longmemeval) for the scripts/ move, but fast_eval_ids.json was itself moved INTO scripts/ (the rename hunk in this diff). IDS = HERE / "fast_eval_ids.json" now points to benchmarks/longmemeval/fast_eval_ids.json, which no longer exists, so regenerating the fast-eval datasets — required to reproduce the fast50 runs that modal_fast50.py defaults to via data/longmemeval_fast50.json — fails.

Review powered by cora-code · BYOK · MIT

Smoke run with UTEKE_GIT_REF=v0.17.0 caught it: add_local_file still
referenced run_eval/temporal/mmr at the longmemeval/ level (FileNotFoundError
at image build). SCRIPTS = REPO_DIR/'scripts' now feeds all harness mounts in
modal_fanout.py and modal_fast50.py; dataset path (REPO_DIR/data) unchanged.
… fix binary resolution after restructure

- benchmarks/locomo/scripts/convert_locomo.py: maps locomo10.json to the
  harness schema (sessions as {role, content} turns, evidence D1:3 ->
  answer_session_ids). Category 5 (adversarial) and zero-evidence QA are
  excluded from the retrieval dataset and reported separately: 1536
  evaluable QA across 10 conversations. Evaluator is reused unchanged —
  one metric family across both external benchmarks.
- run_eval.py / contradiction_segment.py: repo-root resolution was
  three parents up from longmemeval/; after the scripts/ move it needs
  four. The Modal fanout smoke run caught the fanout variant of this;
  this fixes the local-run variant before it bites.
- locomo/.gitignore: converted harness files (~220MB) and exploratory
  run outputs stay out of git; canonical results get committed explicitly
Enables running other harness-schema datasets through the same fan-out
(first consumer: LoCoMo 1536-QA converted set). Defaults unchanged.
@ajianaz
ajianaz merged commit 5ad4ce7 into develop Sep 9, 2026
17 checks passed
@ajianaz
ajianaz deleted the docs/benchmarks-restructure branch September 9, 2026 04:29
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