mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #351] [CLOSED] serve: preserve context across engine restart #2590
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#2590
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/351
Author: @updalla-apshir
Created: 10/1/2026
Status: ❌ Closed
Base:
main← Head:fix/344-context-across-restart📝 Commits (10+)
2575cb1C-3: the prompt path's GDN short conv tiled over tokensdf6980dE-2: prefetch the i-quant expert rows ahead of the AVX-512 decode; an opt-in gather decodecf68b00D-5: the prompt path's expert stream is issued by its own host threadcb91f2aserve: keep image parts in tool/assistant messages456011eLayer split limits: docs/MULTI_GPU.md and bench/results/2026-09-29-layer-split-limitsf0bbe97E-4 (prompt side): the draft layer's pass over a prompt chunk without a host sync per groupefddd74E-6: a verify layer whose routed experts are all in VRAM needs nothing from the host66f4341D-2: the prompt path's GDN recurrence split over value columns, the output norm in its own kernel0abcd5bE-6: the device plan opt-in (STRATA_VERIFY_DEVICE_PLAN=1)57fa1fdserve: routing traces from the live server (--dump-routing under --serve)📊 Changes
2 files changed (+121 additions, -13 deletions)
View changed files
📝
serve/server.py(+21 -13)📝
serve/test_server.py(+100 -0)📄 Description
Summary
During an engine restart,
max_contextand related model metadata temporarily become0while the replacement engine is loading.This causes incorrect values across
/v1/status,/v1/models,/props,/health,/slots, and/metrics.This change preserves the outgoing engine's context and metadata until the replacement engine reports its own values, while keeping readiness detection independent.
Testing
serve.test_server: 68 tests passed0and the fix preserves131072.This change only addresses the context/metadata reporting issue during restart.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.