Repository navigation
Admit concurrent Liquid requests within a full-context RAM budget - #16
Merged
Merged
Conversation
4 tasks done
araysuter
marked this pull request as ready for review
November 19, 2026 01:26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Liquid requests can share one qualified native engine, up to eight users, while the gateway reserves each admitted user's remaining full-window growth and leaves an 8 GiB host reserve. RAM refusals return 503/insufficient_memory; an occupied slot ceiling returns 429/concurrency_limit. Cancelling one stateless request closes only its native connection. Existing Swift/Arete snapshot profiles retain serialized requests, model switching and the four-context global LRU. The listener backlog now accepts eight-client bursts without the old five-socket connection resets.
Checks on this head
Receipt
Checklist
Production deployment
Merged and deployed from main d0435f8. Public API qualification passed: all three model IDs, invalid-key rejection, prose token equality to the previous DSpark reference, streaming/non-streaming required tool calls, tool-result continuation and Swift → Arete → Liquid switches. Swift/Arete remain at 131072 total tokens and one active request; Liquid advertises 96000 total tokens and max_concurrent=8. Health ended idle with one Liquid process loaded. Swap was unchanged during deployment (2560.88 MiB before and after; the earlier failed host-stress increase remains explicitly documented). Private rollback config/launcher copies are retained outside the repository.