mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2743] iq_embed_rows: missing the >65535-row guard - fixed --prefill 65536 fails deterministically at a 64K chunk (invalid argument) #1100
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1100
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @daifeiya on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2743
Environment: Windows 11, RTX 4090 48GB (non-D), driver 617.42, engine/project 0.1.44.1 (source tree), NVFP4 pack (Qwen3.8-Flash-Next-NVFP4-GPTQ-Strata).
Symptom: with a FIXED
--prefill 65536, every launch fails when the 131072-token tier is requested: the engine's last log line isiq_embed_rows: invalid argument, the request returns HTTP 503, and the engine stops serving (the Python server stays up). Reproduced 3/3 launches (deterministic). The same config completes every tier up to 65536 (actual 65527 tokens).Log excerpt (run 1 of 3, tune/logs/r4-1.log; identical shape in runs 2 and 3 at lines 86 and 85):
The failing request (the next tier, 131072 tokens) produced no
prompt ... readline at all - the failure is at prompt ingestion, before any chunk progressed.Analysis:
iq_embed_rowslaunches one row per prompt token. Three sibling kernels guard the same CUDA grid-y limit of 65535 (src/kernels/cuda/qsa_select.cu:1168grid.y > 65535; native_rope.cu:191,223 rows > 65535; sampler.cu:1196 tokens > 65535), but the iq_embed_rows path has no guard or row tiling - a 65536-row launch exceeds grid.y (max 65535). Consistent with this: a FIXED chunk of 61440 (below the limit) completes a full 9-tier x 3-run ladder on the same machine/config with zero occurrences of the error (prompt-path borrow 23.70 GiB vs 9988 slots at 65536, proportional).Suggestion: add the guard + row tiling (or clamp) to the embedding upload path, like the sibling kernels.
Secondary:
--prefill auto:NNsilently clamps to 32768 for NN >= 32768 (src/program/generate.cpp:2041-2049); I first triedauto:65536expecting a larger chunk and got 32768 with no notice. Documenting (or reporting) the ceiling would help.Happy to paste the full three run logs if useful.
@ischencheng commented on GitHub (Oct 17, 2026):
Opened #2911 for this. A named
--prefillabove 65280 now becomes 65280, with a note at start. On an L40S with IQ2_XS, a 70K prompt at--prefill 65536now reads fine instead of stopping the engine.@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.