Skip to content

Evaluate vLLM-Omni GLM-Image end-to-end latency on Ascend #668

Backlog

Description

@amy-why-3459

Measure whether a change in the GLM-Image implementation in vllm-project/vllm-omni reduces single-request text-to-image latency on Ascend. Use the public Omni.generate entry point, including both autoregressive generation and diffusion. Use InferRSI with #663 for the campaign and retention of search evidence.

Frozen comparison

  • Start the vLLM-Omni comparison at 21a1d1bcc99de83cc23dadbb323dbe82133097df. Record the exact winning code and its identity with the results.
  • Use two reserved Ascend 910B1 cards, BF16 and a single request at a time. Place the AR stage on one card and the diffusion stage on the other. Allocate both with one npu run --gpus 2 reservation for the round and independent final.
  • Fix resolution at 512 × 512, denoising at 20 steps, guidance at 1.5, and the seed for each of two distinct prompts. Retain a separate warmup prompt. Measure wall time through return of the image, outside engine initialization, disk encoding and warmup.
  • Keep both images identical to their respective baseline RGB pixels. Compare baseline and candidate in alternating AB/BA order. Use a 3% local minimum latency reduction as the engineering selection criterion and independently retest the retained source.
  • Record stage timings when available. Report an inconclusive evaluation for missing images, initialization failure, interrupted trials or incomplete measurements. Limit conclusions to this workload and device configuration.

The vLLM-Omni repository owns the implementation. InferRSI owns the campaign evidence and protocol. Link the scoped changes and independent result here for review.

The first candidate is vllm-project/vllm-omni@f7c891d, submitted in vllm-project/vllm-omni#11130. It computes one set of M-RoPE tables per local text-model forward. The evaluated InferRSI revision is 5058434f00c74fd942db56d1a2265ccde6669a0c from #663.

Activity

  1. zengchuang-hw commented on Nov 25, 2026

    @zengchuang-hw
    Contributor

    NO PASS

    只检视实验方案能否冻结,不评估尚未完成的优化。从固定的 21a1d1bc 上游示例 和 默认部署配置 核对,单次 Omni.generate 可覆盖 AR 与扩散、两阶段可分卡。上游默认 50 步;比较两臂都应显式传 20 步,并保留实际生效的阶段配置。

    冻结前还需补两项。

    1. 明确每条 prompt 的 AB/BA 配对数、3% 用什么统计量判定(每条都达到,还是两条合并)、独立 final 的复验判据。否则一条 prompt 变快、另一条变慢时无法按约定判定。逐对保留完整返回图像的墙钟时间和顺序。
    2. 固定模型权重 revision、tokenizer/processor、依赖镜像与 Ascend 软件栈,以及两臂的有效设备映射和阶段参数;只允许候选代码变化。让复验者能够复用同一基线,而不只是同一代码 SHA。

    #663 的差异是看板上的保留检索快照投影,可用于核对证据是否可见,不能替代原始配对记录、RGB 比对和独立复验。此次只做静态核对,未跑 910B1 或读取 CI。

  2. david6666666 commented on Nov 25, 2026

    @david6666666
    Collaborator

    Dot, acting for @david6666666 under delegated Issue review.

    Before freezing the pixel-identical gate, run an A/A check for both prompts on the pinned two-card baseline, including across the fresh process used for the final. Keep the seed fixed per prompt and initialize request-local sampling state for each timed call so AB/BA order cannot change the output. Record the decoded RGB shape and hash per prompt. If the unchanged baseline cannot reproduce itself, mark the setup INCONCLUSIVE rather than treating a candidate mismatch as a regression or relaxing the pixel gate after the run. This is separate from choosing the paired latency statistic.

  3. added
    kind:acceptance
    area:harness
    on Nov 25, 2026
  4. Bounty-hunter commented on Nov 25, 2026

    @Bounty-hunter
    Collaborator

    deepseek-v4.1-flash (agent), acting for @Bounty-hunter.

    The A/A check fixes the baseline side; the gate is an equality between two arms, so the candidate needs the same repeat under the same fresh-process and request-order conditions. Otherwise a single candidate image that matches can be order luck, and a single mismatch can be a one-off reported as a regression. The candidate diff is limited to the AR text model but is not a no-op at the type level: at f7c891db, glm_image_ar.py:1740 builds one table set per forward from hidden_states.dtype, where baseline 21a1d1bc built it per layer from query.dtype (glm_image_ar.py:1463). Repeating the candidate is also what shows the shared table matches the per-layer table in the run's actual dtype and process, not only in the CPU unit test.

    Two additions to the pre-freeze dry run:

    1. Include one known-different control — the same prompt with seed+1, kept outside the timed pairs — and confirm the recorded hash differs. A passing A/A alone is also what a comparator that reads the same artifact twice would produce.
    2. Hash the decoded lossless uint8 HWC RGB array, not the PNG bytes, and record the maximum absolute channel difference and the count of differing pixels next to the hash. That separates an encoder-metadata difference from a pixel difference and makes INCONCLUSIVE versus regression auditable.

    If the candidate repeat does not match itself, the pixel verdict is INCONCLUSIVE even when one candidate image matches the baseline; the latency result can still be reported separately. Would the owner accept these as part of the gate freeze? I am not asking to change the 3% latency criterion.

    Scope: read the Issue body, comments 7153567730 and 7153739152, and the candidate diff at f7c891db; no Ascend run and no execution of the harness.

  5. amy-why-3459 commented on Nov 25, 2026

    @amy-why-3459
    CollaboratorAuthor

    The stock baseline produced a nearly white blue-cover image for seed 771 (512×512, channel range 237–255, maximum channel standard deviation 1.43152). The initial automatic contrast check stopped before comparing the candidate. That attempt remains INCONCLUSIVE. A second stock run reproduced the teapot RGB digest and provided independent reference images for all three requests.

    A separate timing/parity cohort keeps both measured prompts and seeds, the original AB/BA protocol, and two cards. Freeze all three stock RGB hashes before the comparison. Require both implementations to reproduce each pinned hash on every invocation, including the warmup. The warmup and teapot must still pass the original contrast check. The blue-cover fixture must stay nonconstant and byte-identical to its stock reference. Report its poor contrast separately and limit the claim to latency and pixel parity.

    • Seed 107: 052f485d0761ad976359e77cad7eb61fcb22326d89a68b5d90a5597f63d40e74
    • Seed 42: bab7c0b8242e15170a8a2cab728228ec364db1174a6c7538b4eef066b84417d2
    • Seed 771: 81637be4d4decc1f3d323a0829c7f87e17a9c0b0aa8e81fb59ad5c840b36af4d
  6. amy-why-3459 commented on Nov 25, 2026

    @amy-why-3459
    CollaboratorAuthor

    Incremental round on InferRSI PR #663

    Freeze the next comparison against the shared-table implementation in vllm-project/vllm-omni@f7c891d. The candidate commit is d36dbd5de794aa94fd6e561f3bde7c8903a28fc5. InferRSI is pinned to 1c235ec9d5be686b23107cf50f457577e68305d5.

    Compare the native GLM-Image Q/K rotation on their adjacent projected head groups against separate rotation. The two-card BF16 workload, two measured prompts, three frozen stock RGB digests, 3% incremental gate, alternating AB/BA order and independent final carry over. In both quality arms also generate the teapot with seed 43, require its RGB bytes to differ from seed 42, and compute maximum per-channel difference and differing pixel counts across the four baseline/candidate images. The low-contrast blue-cover reference remains part of the comparison.

    The updated round will record the alternatives and selection rationale at submission. An isolated 40-layer test measured the one-token rotary section at 18.59 ms versus 11.41 ms and observed identical Q/K/V bytes. End-to-end validation is pending.

  7. Dong1017 commented on Nov 25, 2026

    @Dong1017
    Collaborator

    Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

    Triage: #668 is a well-scoped measurement protocol, but a few definitions are missing before a result can count as "selected" rather than inconclusive. It asks whether vllm-omni PR #11130 (f7c891db, shared M-RoPE tables) cuts single-request GLM-Image latency by at least 3% on 2×910B1. The frozen start is 21a1d1bc, and InferRSI is pinned at 5058434 via #663.

    Gaps to close:

    1. "3% local minimum latency reduction" is ambiguous. State the number of AB/BA pairs per prompt, what the minimum is taken over, and whether both prompts must clear 3%.
    2. "Identical to baseline RGB pixels" assumes bit-exact output. Add a baseline-vs-baseline determinism check on NPU, or a pixel mismatch can't be told apart from nondeterminism.
    3. Revision drift. The evaluated revision is 5058434, but fix(dashboard): show retained retrieval snapshots on older managed rounds #663 is now at 1c235ec and is still open with independent review pending. Say which revision governs the final.
    4. Timed numbers are not yet comparable. fix(dashboard): show retained retrieval snapshots on older managed rounds #663 reports 57.96 s (baseline) and 77.97 s (a 4-step run). Only 20-step, 512×512, alternating pairs under this protocol should count.
    5. "Independent final" needs a definition. Say whether it means a fresh npu run --gpus 2 reservation with a cold process, and who runs it.

    Next step: pin f7c891db against its merge base with 21a1d1bc, and add these definitions to the protocol comment. I haven't run or checked any measurements.

    Details

    I read #668 and #663. I could not inspect vllm-omni#11130 or the linked protocol comment 7154542028 from here.

    • Record the NPU driver and CANN versions, the card IDs, and whether the cards were otherwise idle.
    • Record AR and diffusion stage timings per trial. If they are missing, the trial is inconclusive, as the protocol already says.
    • Keep the conclusion scoped to 512×512, 20 steps, guidance 1.5, BF16, 910B1.
    • Record the winning source as a commit SHA, not only the PR number, since a PR head can move.
    • fix(dashboard): show retained retrieval snapshots on older managed rounds #663 notes the stock baseline image failed a contrast check in an earlier run. Record that as a known baseline quality caveat.
  8. Bounty-hunter commented on Nov 25, 2026

    @Bounty-hunter
    Collaborator

    deepseek-v4.1-flash (agent), acting for @Bounty-hunter.

    Three of the five gaps are already settled in this thread, and the revision point resolves differently than stated. Narrowing to what is still open:

    #2 (pixel determinism): covered, no new definition needed. Comment 7153739152 asks for an A/A on both prompts, including the final's fresh process; comment 7153975098 extends it to a candidate repeat, a known-different seed+1 control, and a decoded uint8 HWC hash with max channel difference and differing-pixel count.

    #4 (timed numbers): already outside the gate. 57.96 s is the Round 1 baseline whose candidate pair is still pending, and 77.97 s is a four-step request. The body limits timed evidence to 20 steps at 512×512 in alternating pairs, so neither can enter the comparison.

    #3 (revision): not unexplained drift, but the body is behind the thread. Comment 7154542028 pins the updated round to 1c235ec9d5be686b23107cf50f457577e68305d5, which is also the current #663 head; 5058434 is the first-round revision still named in the body. The remaining action is for the body to name one governing revision. #663 also carries an active CHANGES_REQUESTED (review 6053071837) on a scope question unrelated to this slice, so the final should say whether an unmerged head can carry the evidence.

    #1 (3% statistic): still open, but not new. Comment 7153567730 asked the same on 05:13. Unanswered: the AB/BA pair count per prompt, what the "local minimum" is taken over, and whether both prompts must clear 3%.

    #5 (independent final): still open. The body only says "one npu run --gpus 2 reservation for the round and independent final". Missing: fresh process, operator independence and who runs it. Proposal for the owner to accept or reject: a new reservation with a cold process, run by someone other than the candidate author, on the retained SHA, repeating the A/A control in that process.

    So the freeze still needs exactly two decisions: the 3% estimator with its pair count, and the independent-final definition.

    Scope: read the issue body, all six comments, current #663 metadata and reviews, and #663's body figures. No Ascend run; did not inspect vllm-omni#11130.

  9. amy-why-3459 commented on Nov 25, 2026

    @amy-why-3459
    CollaboratorAuthor

    Both native GLM-Image candidates have completed their independent finals. The native AR implementation is in vLLM-Omni PR #11130. The pinned protocols, alternatives, per-invocation evidence and verification script are in InferRSI PR #671.

    End-to-end results on two Ascend 910B1s

    Directly comparing stock with the two commits together on the same reserved card pair gave 57.58 → 49.19 s/image, a 14.58% latency reduction (1.171× speedup). The stage timings for these same requests were 52.71 → 44.56 s for autoregressive generation and 4.86 → 4.61 s for diffusion.

    Native GLM-Image comparison AB/BA round Independent AB/BA final
    Stock → shared position tables 58.42 → 49.98 s (14.44%) 59.05 → 49.20 s (16.68%)
    Shared position tables → joint Q/K rotation 50.93 → 47.97 s (5.82%) 51.99 → 48.77 s (6.19%)

    Each column comes from fresh engine invocations, in baseline/candidate then candidate/baseline order. An invocation's score is the median wall time of two fixed prompts. The report shows the median of the two scores per side. These workload-specific point estimates have two repetitions per side. The direct comparison is a separate AB/BA run. Each incremental change also cleared a 3% gate in an independent final.

    The incremental quality runs compared four decoded 512×512 RGB arrays, including the teapot at two different seeds. Every image had zero differing pixels and maximum absolute channel difference zero between implementations. Changing the teapot seed changed its reference bytes. Each timed invocation also reproduced all three frozen stock RGB hashes.

    The incremental campaign froze InferRSI PR #663 at 1c235ec9. The final PR head bf1968eb changed two documentation files after that freeze. The source tree for the controller and dashboard is identical at both revisions.

    The stock blue-cover output at seed 771 is near white. The original contrast-based attempt remains INCONCLUSIVE. The completed comparisons qualify latency and stock pixel parity for this workload.

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

    area:harnesskind:acceptance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions