Skip to content

[Performance]: Reproducible Laya benchmarks against the original runtime #39

Open

Description

@hsliuustc0106

Proposal to improve performance

We need to establish whether an implementation improves serving latency or throughput while preserving decision quality and probabilities. The first milestone targets NVIDIA GPU serving and complements the native Laya work in #14. Apple Silicon benchmarking (#3) is follow-up work; this issue does not propose another inference implementation.

Initial scope: NVIDIA GPU / CUDA

Use one pinned convaiinnovations/laya checkpoint and the same tokenizer, question formatting, precision, temperature, context limits and truncation policy. Run every inference baseline on the same reserved NVIDIA GPU with CUDA execution verified. CPU inference and Apple Silicon/Metal benchmarks are outside the first milestone. Record necessary backend differences instead of silently changing controls.

Compare:

Path Purpose
Original laya-serve on CUDA Author's GPU HTTP baseline
vllm-jev /v1/systemone on CUDA Existing vLLM-based GPU serving baseline
System1-Omni frontend + external CUDA Laya worker Isolate frontend overhead with the same GPU worker
System1-Omni native Laya implementation, at a pinned runnable revision Evaluate the native engine when available
Original Laya predict_batch SDK on CUDA Separate offline/bulk GPU baseline; do not mix its timings into the HTTP comparison

#14 already reports prototype timings and parity checks. This suite should make such results repeatable across implementations and workloads. A frontend + external-worker result alone must not be presented as a native-engine speedup.

Reuse existing benchmark components

  • Laya batch benchmark: sequential/batched execution, probability drift and decision flips.
  • Laya evaluation harness: labelled JSONL, Choice/Noul accuracy, Score error and regression reporting. Reuse the format and metrics with an HTTP adapter where needed.
  • MMLU: freeze a seeded 500-question test sample and its record IDs for four-option Choice requests. This is our workload, not a claim to reproduce vllm-jev's exact unpublished sample selection.
  • Add a small, separately reported labelled set covering Noul, Score and mixed-question requests. Synthetic cases are contract/parity checks, not evidence of general task accuracy.

The inspected vllm-jev snapshot (2708009c16ec725261fa6b2c52f387724a0279df) publishes performance tables but contains no dedicated benchmark runner. Pin all sources used by this suite and preserve the request manifest so results can be reproduced independently.

Measurements

Correctness and quality

  • Validate response schemas, label mapping and finite, normalized distributions where applicable.
  • Report Choice/Noul accuracy and Score MAE against labels.
  • Separately report decision agreement, probability drift and Score drift against the original runtime, including worst cases.
  • Add probability-quality metrics such as NLL/Brier score; only compare calibration metrics with matching probability/confidence definitions.
  • Record truncation and errors explicitly. Do not improve apparent accuracy or latency by silently dropping failed requests.

Serving performance

  • Replay identical HTTP requests at concurrency 1, 8 and 16.
  • Report successful requests/s, decisions/s, client-observed p50/p95 latency, error/rejection/timeout counts and peak GPU memory. Distinguish requests from questions/decisions and internal candidate sequences.
  • Cover short and near-limit inputs within the checkpoint's supported window; record actual token lengths. Keep input/option-count slices separate.
  • Fix cache conditions and report cold-cache and warmed-cache results separately where supported. Do not clear shared host caches.
  • Report SDK/bulk timing separately from HTTP timing. Do not label batch time divided by batch size as per-request latency.

Experimental protocol

Hypothesis: changing the serving implementation can reduce latency or improve completed-decision throughput without exceeding predeclared quality/parity tolerances.

  • Independent variable: runtime implementation. Keep exact GPU IDs, hardware, affinity, checkpoint, input order, precision, readiness behavior and workload fixed.
  • Record repository SHAs, working-tree changes, model/dataset revisions, dependencies, commands and raw per-request results.
  • Start with a lightweight, weight-free dataset/adapter preflight (no accelerator use or CPU inference benchmark), then one GPU feasibility run per configuration. Exclude feasibility from comparisons; use two additional measured runs per configuration initially and report variation. If inconclusive, report that rather than adding runs silently.
  • Predeclare numeric parity/quality tolerances and the performance success criterion before measurement; publish results even when no implementation wins.
  • Separate downloads, preparation, compilation, startup-to-readiness and warmup from steady-state measurements. Validate the first request after readiness; reuse one server per configuration for steady-state runs.
  • Use the execution host's GPU reservation mechanism and clean up only benchmark-owned processes and reservations.

Acceptance criteria

  • The first report uses the same reserved NVIDIA GPU for all inference baselines, verifies CUDA execution, and records GPU model, driver, CUDA and precision settings.
  • A documented runner can replay the same frozen request manifest against each HTTP backend.
  • Dataset provenance, selected IDs, revisions and request checksums are saved.
  • Choice, Noul, Score and mixed requests have correctness/parity checks with explicit tolerances.
  • The original batched SDK is included as a separately reported baseline.
  • A comparison report includes latency, throughput, errors, quality/parity, memory, raw results and run-to-run variation.
  • Documentation distinguishes frontend overhead, native inference and end-to-end serving measurements.

Follow-up scope

After the CUDA Laya baseline works, add Apple Silicon/Metal benchmarking in coordination with #3. Extend to Valen-Eval-General-5k for vision models, and system1-agents evaluations for task success and end-to-end time. These should be separate extensions rather than prerequisites for the first suite.

Report of performance regression

None. This is a benchmark proposal; no new experiments were run for this issue.

Before submitting

  • Searched open and past issues and checked the repository documentation; related work is linked above.

Activity

  1. added
    performance
    on Sep 29, 2026
  2. changed the title [-][Performance]: Reproducible Laya benchmarks against vllm-jev and the original runtime[/-] [+][Performance]: Reproducible Laya benchmarks against the original runtime[/+] on Sep 29, 2026
  3. added
    help wanted
    on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions