Skip to content

perf: Batch benchmark inference and cache baseline results - #29

Merged
Sau1707 merged 1 commit into
mainfrom
perf/batched-evaluation-cache
Nov 10, 2026
Merged

Sau1707 merged 1 commit into
mainfrom
perf/batched-evaluation-cache

Conversation

@Sau1707

@Sau1707 Sau1707 commented Nov 10, 2026

Copy link
Copy Markdown
Member

Summary

  • Batch CUDA benchmark inference in FP32 with four independent execution workspaces. Keep CPU defaults serial, trim per-row EOS padding, and preserve task isolation, follow-up state, grading, 60-task coverage, four calls per stage, and 384 tokens per call.
  • Cache accepted-model results using an exact fingerprint of adapter/base revisions, adapter contents, benchmark/protocol/execution source and data, dependency versions, Python, GPU/driver, execution image, and relevant runtime settings. Training-only changes do not invalidate the baseline.
  • Restore only exact cache matches, validate complete task coverage, and retain original evaluation provenance. Only main-branch runs save caches; candidates are always evaluated and the strict-improvement/publication gates are unchanged. Bootstrap skips the baseline cache.
  • Main-branch manual evaluation primes the cache after merging; PR runs can reuse matching main-branch caches. No BF16 or inference-kernel dependency changes are included.

Validation

  • 124 training/CI/cache tests and 82 benchmark tests passed on Python 3.12 (206 total).
  • Ruff lint and formatting, actionlint, and staged/unstaged diff checks passed. Pyunslop exited successfully with 216 advisory warnings across the repository, including complexity warnings in changed files. No separate type-checker run was performed.
  • Production-code GPU replay on the RTX 4090 evaluated all 60 tasks for both adapters: accepted model 68.0 s and candidate 73.1 s, versus approximately 164–166 s each in the recorded serial CI run. Both remained 9/60 with identical per-task statuses. Candidate generated code was identical; accepted-model code differed on one still-failing task, so batching is not claimed to be universally bitwise equivalent.
  • Cache fingerprint/save/restore round trip completed in 0.45 s locally on the GPU host and preserved result/provenance bytes across different run directories. This excludes GitHub cache transport, which has not yet been measured end to end.
  • No model weights were published or changed. This is a performance improvement, not evidence of model-quality improvement; a score tie still fails the existing strict gate.

@Sau1707
Sau1707 merged commit c5c8a7e into main Nov 10, 2026
10 of 12 checks passed

This branch had an error being deployed

2 failed deployments
model-publishing — 71c56c77 Deployed Nov 10, 2026 by Sau1707 via publish #22
model-training — 71c56c77 Deployed Nov 10, 2026 by Sau1707 via evaluate #21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant