mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1034] vram_elastic / POST /v1/vram: response schema and failure semantics (Windows 11, RTX 4090) #450
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#450
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 @oliver-prog-0705 on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1034
Hi, and thanks for vram_elastic (#533) and for the detailed release notes.
We are evaluating v0.1.39 and have not installed it yet. The setup is Windows 11 (WDDM) with an RTX 4090 24 GB. We want to keep one Strata server running, yield VRAM to another GPU workload for a while, and then take it back.
We understand that vram_elastic shrinks the expert cache in segments and does not necessarily free all VRAM. For us, safe behaviour on failure matters more than speed. Could you clarify the points below? Pointers to the code or docs are fine as answers.
Response schema. What does
POST /v1/vramreturn on success, on partial success (if that exists), and on failure? Which fields and which HTTP status codes?reserve_mib semantics. If the requested amount cannot actually be made free, does the call fail, shrink partway, clamp, or report the amount actually freed?
Reacquisition. When reducing the reserve again (for example
reserve_mib: nullto return toward the startup reserve, orreserve_mib: 0to reclaim as much as possible), what happens if another process is still holding the VRAM Strata wants back? Does Strata remain at its current smaller expert-cache size, partially regrow, retry, block, return an error, or risk OOM?Resident allocations. At maximum shrink, what stays in VRAM on purpose: dense weights, KV cache, CUDA context, anything else? Is there an expected minimum residual footprint?
Crash and restart. If Strata or the process that sent the request dies during or after a resize, is any elastic state persisted? On restart, does Strata simply rebuild from its configured startup state?
Observability. Does any API or status field report the current elastic state, the effective reserve, the expert-cache size, or the amount released? If not, is external VRAM monitoring the intended way to verify a resize?
Windows/WDDM. Is vram_elastic tested or supported on Windows 11 with NVIDIA/WDDM? Are there known TDR or stall concerns around shrink or regrow? We noticed #961 (a WDDM driver wedge during the verify window), and we are only asking whether you consider it relevant here, not suggesting vram_elastic causes it.
Synchronization and idempotency. Does the call return only after the resize has finished? Is repeating the same
reserve_mibvalue safe?Thank you for your time.
@ladno64 commented on GitHub (Oct 6, 2026):
I'm joining the question. I use Elastic all the time, but mostly based on trial and error. The documentation for this command is insufficient, or maybe I'm looking in the wrong place.
@oliver-prog-0705 commented on GitHub (Oct 6, 2026):
Thanks for confirming this — it’s helpful to know I’m not the only one finding the Elastic behavior unclear.
I opened this issue mainly because I’d like to understand the exact response/failure semantics before relying on /v1/vram in an automated GPU handoff/recovery workflow. Trial and error is fine for manual use, but for automation I need to know when a resize actually succeeded, partially succeeded, or failed.
Hopefully the maintainer can clarify the intended behavior and we can get it documented here.
@Niko1221 commented on GitHub (Oct 7, 2026):
Fixed in 0.1.40.2 (docs): docs/VRAM_ELASTIC.md now describes POST /v1/vram from the code: the request, the answers for success, partial success (a 200 where vram_free_mib is below your reserve), failure, busy and unloaded, how the reserve is re-applied after a reload, and what to do after a failed resize. It also lists what the call cannot give back (weights, KV, context). Please read it and tell us what is still missing for your hand-off.
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.