mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #532] [CLOSED] tests: prefill_mmq_kquant_test waits for its uploads before the kernels #2681
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#2681
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/532
Author: @eadra
Created: 10/2/2026
Status: ❌ Closed
Base:
main← Head:fix/mmq-kquant-test-sync📝 Commits (10+)
9bbee42server (#208 follow-up): a request stamps last_request_at in load() (the idle thread cannot unload between load and run); unload() sends QUIT before terminate; the VRAM guard checks the first GPU (docs); #163's test engine answers poll()a94fe10Docker build (#96): the engine compiled in docker build, STRATA_EXECV so the server is PID 1, SIGTERM stops it cleanly, KV/GPUS/LOW_RAM as env vars01bca8aPascal (sm_60): bring the engine up on compute capability 6.0dfa2bdacore: add guarded shared expert arena backingf9dad01docs: limit shared arena backing to dev shm77709efMulti-GPU: the session carve and the per-stage prompt loans1f5db5fwip: version 0.1.3001df436STATE_HASH: pooled= keeps its 0.1.29 meaning (the completed indexer rows); the extent with the spare row is pooled_full=93d81fbqsa: the table indexer's spare rotates at position 0 like the native one (TODO 7)71f031frope: one validity rule for the resolved config; none passes the identity constants to every analytic site📊 Changes
1 file changed (+3 additions, -0 deletions)
View changed files
📝
tests/cuda/prefill_mmq_kquant_test.cpp(+3 -0)📄 Description
What
prefill_mmq_kquant_testuploads its inputs and sets the NaN sentinel withcudaMemcpy/cudaMemseton the legacystream, then runs the MMQ kernels on a
cudaStreamNonBlockingstream, which does not wait for the legacy stream. Apageable copy (or the sentinel memset) can still be in flight when the kernels start. This adds a
cudaDeviceSynchronize()before the kernels, the same fix the fused tests got in 0.1.36(
prefill_fused_moe_test.cpp,prefill_fused_iq_test.cpp). Test-only: the engine is unchanged.Measured
RTX 4090 (sm_89, 128 SMs), Windows 11, CUDA 13.3, a
-DSTRATA_MMQ_KQUANTS=ON -DSTRATA_BUILD_TESTS=ONbuild:The failing outputs were whole 128-row tiles left at the sentinel (NaN), or zero when the sentinel was skipped. The
kernels themselves are fine: the same products pass once the inputs are guaranteed to be on the device.
Note
#478 (Q6_K) edits the same file, in the header comment and
main().This change is inside
product(), so the two apply independently.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.