mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#2955
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/1001
Author: @ischencheng
Created: 10/5/2026
Status: ❌ Closed
Base:
main← Head:fix/residency-upload-order📝 Commits (10+)
fa16567setup: an earlier config that does not parse is skipped, not a crash; configs are written atomically (#459)749d957setup (--backend hip): a system ROCm without the HIP development files falls back to the wheels (#446)5a30024calibrate: the engine's arguments come from the server's engine_args; a failed tuning says why (#447)9f60d13serve, setup: name the small split card that caps the prompt chunk; setup recommends the big card alone (#448)eb8da1d/metrics: each request's speculative draft counts, and their sums in the totals (#457)6a09387setup (--gguf-dir): GGUFs Strata cannot run are named as such, with the --family/--model to use (#444)d6a91e2docs: the Coder is weaker outside code, Chinese/CJK text included; the unpruned sizes for that (#438)d8d4ad3Merge branch 'f-135-eng' into rel-0.1.357b600d5Merge branch 'f-135-small' into rel-0.1.35d9ab843Engine 0.1.35: Windows AMD uses its bundled HIP runtime (#468 #461), the low-RAM resident mode on Windows 32 GB PCs (#467), fixes #460 #459 #446 #447 #457 #448 #444; setup requires it📊 Changes
1 file changed (+8 additions, -2 deletions)
View changed files
📝
src/program/generate.cpp(+8 -2)📄 Description
On a card that holds every expert, a fresh prompt longer than
--short-readanswers!!!!(#871). The batched read lends cache slots to the prompt path (theirhost_resentries become -1),refillgives them back, andres_uploadcopieshost_restod_reswith a plaincudaMemcpyfrom astd::vector. For pageable memory CUDA only promises the data is staged when that call returns, not that the DMA has landed, and the verify windows run on non-blocking streams that are not ordered after it. If the first zero-doorbell window still sees a -1,resident_plan_kernelreturns without writing the plan (skipis null on that path) and the window computes with an old one.res_uploadnow waits for each copy (cudaStreamSynchronize(0)after it). It runs at a lend, a refill, a VRAM resize and an adaptive swap, not per token.Measured on an L40S (49140 MiB, sm_89, the same size as the 48 GB 4090 in the issue), Linux, IQ2_XS,
expert cache 24576 slotswith the zero-doorbell graph, setup's config with--max-context 32768. Five fresh prompts over 64 tokens at temperature 0, plus one short one:!!!!repliesOn Linux the copy lands in time, so main never failed here. The probe (a
cudaLaunchHostFuncthat sleeps 50 ms on stream 0, followed by an async copy of the table) makes the late landing that CUDA allows happen every time. The 41-token prompt was fine in every run, as in the issue. I haven't tested on Windows, where it was reported; my guess is that WDDM batching is what delays the copy there.Side note on #646: on this card the zero-doorbell graph decodes at 216-220 tok/s, against 179 tok/s with
STRATA_VERIFY_ALL_RESIDENT=0(343-token prompts, 31-36 tokens out).Should fix #871.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.