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#3548
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/1590
Author: @nekomario28
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:fix-1576-card-order-vram📝 Commits (1)
da0d271serve: keep the given card order when the reorder starves the last stage (#1576)📊 Changes
2 files changed (+39 additions, -3 deletions)
View changed files
📝
serve/server.py(+29 -3)📝
serve/test_server.py(+10 -0)📄 Description
Fixes #1576.
#1352's auto card order puts the faster card last because the last stage runs the head, the draft layer and the verify. On a VRAM-asymmetric pair the same rule lands the heaviest stage on the card least able to hold it — the reporter's fast 12 GB 4070 Ti got 31 layers + head + verify and a 3.1 GiB expert cache (decode ~58 → ~44 tok/s, the engine's own "card this small" warning).
Change
ordered_gpusskips the reorder when it would place the last stage on a card with less total VRAM than the card the config put there. VRAM comes from NVML (mem_total) or amdgpu sysfs; when any card is unreadable the reorder stays (previous behavior).scores/vramsare injectable for tests.This is deliberately conservative — it only keeps the given order, it does not invent a third arrangement. The reporter's other idea (reorder but let the split compensate) needs engine-side split changes, which this does not touch.
Test plan
serve.test_server.GpuChoice.test_card_orderextended: the reporter's shape (fast+small / slow+big → keep given), faster-and-bigger still reorders, equal VRAM reorders, a card whose VRAM cannot be read reorders, 3-card case keeps.gpu_vram_mib([0], hip=True)→16368MiB.Not tested: a real two-GPU run — no such rig here; the policy is exercised through the injected-table path the existing tests already use.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.