Skip to content

Fix per-request result IDs in Qwen-Audio-Jev batches - #4002

Merged
LauraGPT merged 1 commit into
mainfrom
codex/jev-batch-request-keys
Dec 1, 2026
Merged

LauraGPT merged 1 commit into
mainfrom
codex/jev-batch-request-keys

Conversation

@LauraGPT

@LauraGPT LauraGPT commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Passing an ordered list of request IDs to the Jev SDK used to put the entire list in every output row. Applications could not join decisions back to their source jobs. Pair a positional list or tuple with the requests before internal batching. Reject bad lengths or non-string/empty IDs before the first worker. Keep generated IDs and explicit scalar labels; do not change other ASR paths.

Both SDK guides show the distinction between job IDs and question IDs. The NumPy jobs now run the existing Jev adapter tests and the new regressions. Shanghai focused + related CPU selection: 116 passed, 1 opt-in GPU case skipped. Separately, offline on one L20Z, the latest official HF runner (c07c1023) and the cached official Tiny checkpoint reproduced the wrong keys on main. After the fix, a choice and a score request had the correct distinct keys and the two nested decisions were unchanged. No quality, throughput or release claim.

Validate positional keys before starting inference, retain the existing scalar and generated key behavior, and cover cross-batch alignment in NumPy CI.

Signed-off-by: LauraGPT <zhifu.gzf@alibaba-inc.com>
@LauraGPT
LauraGPT merged commit 1e040f7 into main Dec 1, 2026
9 checks passed
@LauraGPT

LauraGPT commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator Author

Verified on one Shanghai NVIDIA L20Z with the official choice and score fixtures. Both Jev-Tiny and Jev ran from verified local snapshots with networking disabled (PyTorch 2.10.0+cu128, Transformers 5.3.0).

Passing two requests to one AutoModel.generate(..., batch_size=1) returned the scalar keys job:17:instrument and job:09:quality in input order on both checkpoints. On the old code Tiny returned the whole list twice; its two nested decision payloads are identical before and after the fix. The full model was tested on the fixed tree only. These four outputs check routing, not accuracy or throughput. The tested tree is now on main at 1e040f74; this is not a PyPI release.

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