Repository navigation
server: separate legacy and experimental parallel jobs runtimes - #715
Conversation
|
Updated the testing procedure in this PR: parallel model validation. It now defines per-backend/task/checkpoint tests at every advertised slot count, original/candidate single-slot references, cold/warm and mixed-request parity, repeated operation, lifecycle recovery, and measured throughput/memory. It also adds the ownership/state-transition scenarios raised by the maintainer: disconnects, queued reconfiguration, partial loading, management/timeout boundaries, cross-model contention and shutdown, with controlled interleavings and applicable sanitizer evidence. The document separates completed coverage from required/pending checks. This commit changes documentation only; it does not claim that the expanded matrix has run or enable additional models. Model implementation and admission continue in #706. |
I don’t have a good suggestion right now. I usually just come up with some random ideas from a quick skim and only think about comprehensive testing once the PR is next in line for review. #706 is still too large for me to review. I’m pretty tight on disk space right now, and testing all the models means I need to constantly delete and redownload things. Some of the fixes and optimizations are unrelated to multi-slot and also benefit normal single-session use. Could you extract those into a separate PR (or two PRs based on whether they are community models) based on main? |
Sure |
|
Simplified the model validation procedure and updated the PR description, session contract, framework report and server README.
Documentation only: no new runtime changes/admission or validation passes are claimed, and historical results are not automatically reclassified. |
|
@mirek190 Thanks for the update! BTW I’m doing some framework refactoring right now, so there may be some back-and-forth on the contracts. You can hold off on splitting the PR until later (maybe tomorrow). |
So you DO ;) |
|
@mirek190 Check out the new things on README. |
The Architecture Atlas is a static architecture guide, not a model test suite. So my testing guide is fine? |
|
Yes, Atlas is a learning resource. I just merged #734. There may be another pass today, and after that I’ll take a look at the testing guide and get back to you. |
|
Sure no a problem. So ... can you merge this PR ? |
|
okay let me test this PR later today. |
waiting ;) |
|
@mirek190 Hold on... I found a family of related issues. I'll let Codex organize the findings into a report instead of relying on my messy notes. |
|
I found five causes of single-slot regressions. The earlier overdue-request rejection issue is fixed, but request ordering, unloading, and cross-model locking still need work. Tested PR head Times below distinguish HTTP response latency from model execution time. Scheduling failure counts are observed results on this machine; exact failing rounds can vary. 1. Management overtakes requests that were already waitingWhat changed from main: The base uses the same execution guard for inference and management. The PR explicitly blocks inference admission whenever management is waiting. A queued request is not bound to the model configuration under which it was accepted. This produces two related failures: Reconfiguration changes the model underneath a queued request.
Base serves both WAVs, then reconfigures. The PR reconfigures first, and the queued speech request fails with HTTP 500: Unload is followed by a reload from older queued work. Warm the model, start inference, queue a second request, then submit unload. Send no further inference requests. Base runs the waiter before unloading in this test; the PR unloads first, then the waiter reloads the model. Both requests and unload return 200, but the PR ends with the model loaded. This reproduced on Piper in 3/3 rounds. A NeuTTS follow-up measured the cost using "Good morning. Your train leaves at nine.", seed 42, default generation settings, and 100 ms between submissions:
The extra latency comes mainly from reloading, not slower inference. Memory is current macOS process physical footprint, including unified-memory allocations. The second unload releases about 1470 MiB on the PR: this is retained model state, not evidence of an unreachable-memory leak. All NeuTTS requests produced complete 3.48-second audio. Warm-control and active-request WAVs match across builds. The PR's queued WAV matches its fresh-session output; base uses an already-warmed session, so that pair has different session histories. Code: request admission predicate. 2. Later requests can delay older waiters enough to cause timeoutsWhat changed from main: Base's mutex wakes one waiter on this platform. The PR broadcasts on release, and awakened callers compete again without an admission queue. Neither implementation promises FIFO; the regression here is measured latency and deadline failures. Reproduce: Warm a model, start a longer request, queue one short request, then submit later short requests 2 ms apart. No management operations are involved.
The first two submission gaps are 25 ms for Piper/Canary and 2 ms for diarization. Successful outputs match. With Piper's wait budget raised to 30 seconds, all requests succeed, but the oldest waiter's mean HTTP latency rises from 228.80 to 299.24 ms (+30.8%). Median model execution stays 56.468 versus 56.453 ms, and WAVs are byte-identical. This is scheduling overhead rather than slower model compute. A related management-only test also changes observed ordering: while Piper runs, queue replacement with Canary, then selection of Piper 25 ms later. Both calls return 200, but the PR ends on Canary in 3/20 rounds versus 0/20 on base. Overlapping management calls have no documented last-submitted-wins guarantee, so this is an ordering caveat, not a separate contract violation or root cause. Code: release wake-up. 3. Bulk unload delays releasing unrelated idle modelsWhat changed from main: Base skips a first load whose session is not yet published. The PR waits for that load in registration order before releasing later models. Reproduce: Register lazy NeuTTS first and Piper second. Warm Piper, start NeuTTS's first load, then call Base releases Piper immediately. The PR leaves Piper loaded behind the roughly 4.75-second NeuTTS load. This repeated in reverse build order; read-only status polling still showed Piper loaded after four seconds. Piper's weight buffer alone is about 59.70 MiB. The base bulk request took 1.01 ms in the confirmation run; the PR took 4768.94 ms. The concern is delayed release of idle Piper, not that waiting for NeuTTS makes bulk completion slower. Code: bulk drain loop. 4. A model being destroyed can cause rejection or unnecessary evictionWhat changed from main: Base stops counting a resident when its session pointer is cleared. The PR counts it until session and model destruction finish. During that interval, the unloading model also holds an exclusive lease, so eviction treats it as busy. Reproduce: Warm NeuTTS and unload it. Submit a request for another model when the existing
For the second case, over three rounds:
The lost warm session explains the 6.48x response latency. Canary transcripts and Piper WAVs match across builds. Scope: The incoming request arrived about 4.3-5.5 ms before unload completed. This proves a narrow overlap case, not its frequency in ordinary traffic. Waiting for the unload response avoids it. Code: resident accounting and eviction, unload sequence. 5. Bulk unload holds the global registry lock while waiting on one modelWhat changed from main: The PR's bulk snapshot holds Reproduce: Load NeuTTS and warm Piper. Reconfigure NeuTTS between offline and streaming modes. At its teardown log, submit bulk unload; after the bulk request's body-ready log plus 10 ms, submit Piper's voice-list query and a short speech request. Repeat without bulk unload as a control. Resident limits and the free-memory guard are disabled.
The voice query performs no inference. In every PR bulk round it stays blocked until NeuTTS releases its metadata lock, then completes within about 0.3 ms of the next load-phase marker. Removing bulk unload removes the delay. Voice-list responses and compared Piper WAVs match. Bulk unload can change Piper's session history between builds, so the inference-free query and no-bulk controls are the stronger evidence. This lock delay occurs in the initial snapshot, before the drain loop in finding 3. Code: bulk snapshot, reconfiguration lock. Previous issue and other checksThe earlier overdue-request rejection issue is fixed: with unload waiting, Canary rejects an overdue request with HTTP 503 in 0.588 ms on the PR versus 0.641 ms on base. Error recovery, invalid-path recovery, streaming disconnect/reuse, native batches, ordinary eviction, and live PCM timeout/recovery were also compared. Five focused framework/server unit tests passed. An active-request shutdown crash reproduced on both revisions and is excluded from the PR findings. Test inputsThe reproduction sequences are described under each finding. Local test clients were used to control request timing; those clients are not included in this report. Model files used:
ASR/diarization inputs were the repository's Issues with the test planThe proposed plan already covers scheduling, queued reconfiguration, eviction, memory reuse, and one-slot compatibility. It needs clearer expected behavior and A/B pass criteria. The items below are recommended additions to the test plan.
The plan describes required tests, not completed validation. The PR should provide results for these shared-server checks before expanding model opt-in; valid output alone would miss most of the findings in this report. Suggested directionMain's original single-slot design is simple and easier to reason about: inference and management share one per-model execution lock. The PR replaces that path with more scheduling rules and lifecycle states, even for users who only need one slot. The results above show why preserving the slot count alone does not preserve behavior. I suggest keeping the existing main execution path untouched and the default path and adding multi-slot execution as a separate, opt-in path. Users should only enter the new scheduler when they explicitly enable multiple slots. Any independently needed correctness fixes to the original path should be reviewed and tested separately, rather than bundled into the scheduling redesign. That separation limits regressions for existing users, but the multi-slot path still needs thorough testing. The causes found here involve request ownership, admission order, unloading, resident accounting, and shared locks. Those mechanisms also apply with multiple slots; extra capacity does not remove the risks. This report measures the single-slot failures, so the corresponding multi-slot outcomes still need validation. Before expanding model support, test these transitions with multiple slots occupied, queued requests, overlapping management operations, and unrelated models active. Check which model handles each request, queue latency and failures, final loaded state, memory release, and unnecessary reloads or evictions. The goal is to establish predictable server behavior under overlap, not just demonstrate that several requests can produce correct output at once. |
Keep omitted slots and explicit slots=1 on the original BusyGuard and direct session path. Require explicit multi-slot opt-in, preserve legacy bulk-unload residency and response behavior, and reject changes between execution paths without unloading the existing model. Add guard regression coverage and update the existing cross-platform CI targets and lifecycle documentation.
|
OK FULLY legacy execution remains the default and slot = 1 Now I will fix problems |
|
Commit: Implemented the fixes for the five causes reported in this review. The earlier legacy-default compatibility change remains: omitted slots / one slot use the original guard and direct session; the new scheduler is explicitly selected with multiple slots.
Deferred streaming and native-batch callbacks retain the same lease used for validation, including disconnect/error cleanup. FIFO is defined by entry into per-model admission, not network arrival timestamps or completion order between concurrent slots. Unload completion still waits for resource destruction; clearing logical residency does not claim physical memory is already free.
Controlled actual-handler cases run at two/four slots, and guard utility cases include one/two/four. The GPU checks include default/explicit one-slot pre-fix parity, two/four-slot parity, unload/reload, queued unload and queued Piper-to-Canary replacement. All configured parallel slots appear in execution traces. Audio bytes, transcripts and meaningful metadata match; timing alone is excluded. The real GPU tests combine this common framework with existing #706 adapters. They do not populate this PR's empty admission tables or certify all models/modes. The supplemental ASan suite includes one unpublished local ownership test; the new actual-handler regression and existing guard tests are in the published Linux ASan/TSan CI jobs. Limits: Metal/Linux runtime and remote sanitizer checks are pending for this revision; the original Metal teardown/timing cases need a platform-specific retest. The full F1-F6/M1-M6 gate is not declared complete. Longer Piper fixtures independently hit its fixed graph arena in both pre-fix one-slot and candidate builds; this diagnostic is retained, and that separate model issue is not changed here. The PR description, session contract and validation procedure now describe FIFO/configuration binding, logical retirement and nonblocking registry snapshots. Evidence and scope. |
|
CI follow-up is now pushed in 77e8c5e and 0e2c6ec.
Confirmed: all 11 CI checks pass on |
Maintainer workload reproduction after the fixes: CUDA and VulkanCompleted 416 recorded test groups comparing clean upstream The checkpoints and ASR/diarization fixtures match the maintainer's report: Piper Lessac medium original, Canary 180M Flash Q8, NeuTTS 2E original and Nemotron 3 diarization Q8; the 3.5/14.2-second LibriSpeech inputs. TTS uses "Good morning. Your train leaves at nine.", seed 42 and default generation settings. Longer Piper requests repeat that sentence twice because the original longer text was not published. Warm model executionMedian milliseconds, nine warm samples per model/revision/backend across three fresh servers. Upstream → fixed PR; this is model execution time, separate from HTTP latency.
Measured warm execution changes range from 2.09% faster to 2.05% slower. These are measurements, not a claim of a statistically established speedup. Scheduling and lifecycle latencyMean HTTP latency in milliseconds. Lifecycle cases use three fresh rounds; the 16-later-request Piper workload uses ten rounds with a 30-second oldest-request budget. Upstream → fixed PR.
Behavior and output checks
The old multi-second scheduling/registry stalls did not reproduce in these Windows runs. Some HTTP means remain higher: CUDA queued Piper replacement is 73.40 → 86.41 ms, with fixed samples of 108.39, 73.92 and 76.92 ms. No-bulk voice-query controls also contain individual ~15.7 ms samples. These outliers are retained; their cause was not profiled, and three-round means should not be interpreted as precise speedup estimates. Scope and reproducibility limitsBulk first-load timing uses matched rounds 1/2/3; initial round zero for both revisions/backends is retained but excluded because checkpoint hashing overlapped the initial CUDA baseline. Correctness records remain available. Both compared source trees were clean and unmodified. |
|
OK .... I think should be ok now. |
|
@mirek190 Thanks for the quick turnaround! I will test the multi slot path later this week (small tests before the weekend, then comprehensive testing over the weekend). |
|
Sure The new code (fixes) is fully compatible backward now so those changes are not affecting a legacy (base) implementation - after ddb8c4d commits. |
|
any progress with merging ;) ? |
|
@mirek190 Not safe. I already found a perf regression in the single slot case caused by json lock. No need to fix this now as there could be simialr issues in the touched shared code. I’m thinking about separating this more cleanly so we no longer need to worry about these risks. |
|
OK ... I suggest to a server The intended behavior would be:
This is a stronger separation than the current approach, where Keeping activation separate from slot count also lets different models use different capacities. CLI would remain unchanged. The tradeoff is maintaining two execution paths and testing both. We should keep the parallel logic isolated to limit duplicated code. Do you agree? Original implementation not touched and a new one triggered by a parameter. Then we can nicely implementing slowly everything not breaking anything from original implementation. If you agree I prepare change to it. |
|
...so @0xShug0 do it as I in the last post or give up? |
Let me make a proposal. |
|
Stage 1: Legacy and Multi-Slot Separation Proposal v1. Let me know if you have any comments, and let’s iterate on this. The opt-in additions that touch shared code are the risky part and need to be handled carefully. The duplication is worth it for separation, especially since audio.cpp was integrated into Unsloth just a few hours ago (where they use a single-model server). We don’t want any surprises on the legacy path. Separate legacy and multi-slot paths from main HEADStarting pointStart from current upstream main HEAD. Every action below describes a change relative to that starting tree. This document defines only the separation boundary: which existing files stay unchanged, which runtime logic is duplicated, and which shared functions require explicit opt-in. “Leave unchanged” means no changes to the entire file related to main. “Modify” lists the additions allowed in that file. “Add” means create a new file. Existing behavior means the behavior of that main HEAD. If main advances during development, incorporate its changes into both runtime copies where applicable. All file-change instructions remain relative to current main, not a fixed historical commit. Required behavior# Existing execution and lifecycle
audiocpp_server --config server.json
# Explicitly enable the new multi-slot implementation
audiocpp_server --config server.json --parallel-jobs
The flag selects the implementation once, before creating the server. Slot count never selects the implementation. One-slot models in an enabled process use the new implementation. The inference CLI retains its existing behavior. The explicit 1. Leave these files unchanged
2. Modify these existing files
The original runtime's execution, ownership, locks, loading, unloading, streaming, batch, eviction and shutdown bodies stay unchanged. The registration rejection is the only permitted addition in 3. Separate the runtime filesDuplicate from main, then develop the copies
Copy the files before adding the legacy registration rejection. Update constructor/destructor names and qualified references in the copies. Keep duplicated translation-unit helpers internal, or give externally linked helpers distinct names. Both classes implement the existing HTTP-handler and frontend-context interfaces. Construct only one server state in a process. Each class owns its registry, model state, locks and background workers. Copy every entry point, including Keep these responsibilities in the copied runtime, so implementing multi-slot behavior does not require editing the original runtime:
Do not call the new lifecycle from the original runtime. Share existing stateless utilities where appropriate; keep ownership and lifecycle decisions in the selected runtime. Keep multi-slot helpers on the parallel side
Reference these helpers from the new runtime. Do not replace the original These are locations for multi-slot logic, not instructions to implement the helpers in this separation change. Shared-weight caching, if introduced separately, must also have an explicit parallel caller. Existing models remain untouched in this separation change. Subsequent model opt-ins must leave their existing construction/execution path intact. Even capacity 1 belongs to the parallel runtime when the flag is enabled; it must not delegate lifecycle operations back to 4. Wire startup and registrationSelect once at startupIn
Pass the existing configuration, request base and UI anchor to the selected class. Reuse the existing listener-startup block and its arguments. The selected state remains alive until serving stops. No model registration or reconfiguration switches the runtime. Use a local generic lambda accepting Parse slots only when enabledPreserve In default mode, reject the presence of a slots field before applying defaults. Read the field only in the parallel-aware parser. Add a default-1 capacity field to Keep the selected parser mode consistent for startup configuration and dynamic registration. Legacy UI payloads and saved configurations must not gain synthetic slots fields. Reject slots in legacy dynamic registrationIn if (body.find("slots") != nullptr) {
return error_response(400,
"slots requires --parallel-jobs at server startup",
"invalid_request_error");
}This is the only addition to the original The parallel registration handler uses the parallel-aware parser instead of this rejection. 5. Opt into tensor-source synchronizationNo separate tensor-source implementation file is needed. Add a construction option: struct TensorSourceOptions {
bool synchronized_access = false;
};Add options-taking overloads for:
Preserve existing overloads and their behavior. Store the selected policy immutably in each GGUF/Safetensors source before publication. Use this policy to gate new synchronization in storage-owning methods such as Include the policy in the bundle's source-cache identity. A request for synchronized storage must not receive an unsynchronized cached source. Prefix/folded views retain the underlying source and its lock; they do not create independent synchronization around shared storage. Apply the policy to both caches: the resource-ID cache and canonical-path cache. Add an options overload for Any new synchronization of Each model opt-in must explicitly pass the option before sharing assets among sessions. Adding factory overloads alone does not enable synchronization. Existing model loaders and the inference CLI keep their existing calls. 6. Opt into JSON synchronizationPreserve the parser behavior of the starting main HEAD. Introduce synchronization only for the enabled server process. Add When enabled, Audit direct cJSON parsing callers too. All concurrent callers sharing the same cJSON globals must follow the enabled policy. A mutex around only selected requests is insufficient. The enabled parser policy applies to the whole process, including model loaders. Activate it only in parallel startup. Default startup and the inference CLI leave it disabled. The default server and inference CLI do not enable this policy. This avoids adding global parser-lock contention to them. If main already contains a parser correctness fix, preserve that fix; do not replace it with an older implementation. 7. Final file boundaryRelative to current main, files listed as unchanged have no diff. Modified files contain only the stated startup selection, slots rejection and opt-in additions. Parallel execution and lifecycle changes belong in the new files. Future fixes to shared main behavior must be carried into both copies without routing the legacy runtime through parallel helpers. |
|
Done |
|
@mirek190 Thanks for the update. The separation looks good. I'll test multi-slot support. Please also do a self-audit, focusing on state transitions, ownership, and lock scope, e.g., what happens when an operation fails partway through, where requests can wait, and whether work on one model can block another. Keep any fixes scoped to the new path if you spot any issues. |
|
fixes in 366e7520, focusing on failure transitions, ownership and lock scope. Production fixes apply only to
The new listener starts from the legacy framing implementation in a separate translation unit to preserve the separation boundary. Both listeners run the same framing checks. One stale fixture assertion was updated to expect the complete non-live chunked payload that upstream already buffers; assertion failures now report the error and drain the test listener. Local validation on the tree committed as
Controlled real-handler tests cover 1, 2 and 4 slots: load/null-session/partial-clone failures, preparation/inference failure, replacement failure/retry, same-ID registration, dropped deferred callbacks, reversed/duplicate bulk selections, atomic barrier publication, metadata contention and unrelated warm-model progress during guarded cold loading. Loopback tests cover shutdown during active handlers/deferred callbacks, stalled headers/live ingest and a non-reading response client. The GPU checkpoint pass uses Piper TTS, Canary ASR and Nemotron diarization, with cold, two warm requests and unload/reload on CUDA and Vulkan. It validates representative capacity-one integration; it is not catalogue multi-slot admission or a performance benchmark. Installer-constructor allocation failure was source-audited, not fault-injected. Intentional waits remain: memory/residency guards serialize cold loads, and the flagged JSON parser mutex briefly serializes parsing. Unrelated warm models remain runnable. Busy timeout is an admission policy, not an end-to-end cancellation deadline; an in-flight or hung GPU call cannot be forcibly preempted and can delay shutdown. Custom frontend listeners must drain their own workers before returning. The workflow now includes the two new transport regressions in cross-platform lifecycle and Linux ASan/TSan jobs. Remote CI is running/queued on this commit, separately from the local results above. Admission tables remain empty; model adapters/admission stay in #706. Detailed self-audit: transitions, ownership and wait locations. |
|
Added some fixes |
|
Thanks @mirek190. Could you add one Parallel Server Behavior Contract document? It should define the expected behavior for a given case. The current expectations are spread across several docs and comments. Please derive the cases systematically:
We should have clearly defined behavior matrices in the doc. One example:
For each cell, briefly state what runs or waits, the response, and the resulting model state. Add a linked test. The other matrices should cover failure recovery, timeout, disconnect, shutdown etc. This should be the single authoritative document. Over all I think this is becoming a rabbit hole, and we're partly reinventing the wheel with scheduling and lifecycle management. I'd suggest focusing on testing one or two aspects in this PR, perhaps just the happy paths. And mark this feature as experimental. When the user launches the server with this feature enabled, show a clear warning stating which behaviors have been tested and which haven't. I expect some users will try this feature, so it’s important to set the right expectations. The behavior contract doc should document validation by area: concurrent inference, cold loading, reconfiguration, unloading/eviction, disconnects, and shutdown. Label each tested, partially tested, or untested, with the tested scope. Known issues should be listed explicitly. We can expand the supported workflows incrementally. BTW one issue found in the current PR: unsupported capacity destroys working registration. For example, changing to unsupported slots=5 unloads the model, retains five slots, and subsequent inference fails. |
|
Addressed the latest feedback in c28d3715. One authoritative behavior document: Parallel Server Behavior Contract. It defines the six lifecycle states and distinguishes queued requests, admitted requests waiting for initialization, executing requests and active streams/deferred batches. The matrices cover operations against states, the requested two-model situations, both arrival orders, spare/full capacity, same/different models and overlapping bulk selections. Separate matrices cover failure recovery, timeout, disconnect and shutdown. Cells link to regressions where available and explicitly distinguish direct coverage, partial coverage and untested cases; a nearby test is not presented as proof of an untested combination. Documentation consolidation:
The adapter guide shrank from 1,650 to 979 words (41% shorter) and from 213 to 137 lines. The total documentation is larger because the requested state/operation matrices are new; the consolidation removes competing descriptions of server behavior and keeps each document's purpose distinct. The model quality requirements are unchanged, and shared tests are collected once per relevant scope rather than repeated for every model. Experimental scope: startup with The unsupported-capacity bug is fixed: changing a working registration to unsupported
The checkpoint follow-up uses Piper TTS, Canary ASR and Nemotron diarization on CUDA/Vulkan, each on legacy and flagged capacity-one servers. After rejection, status is unchanged and the next warm output/meaningful metadata matches exactly after excluding only execution timing. This does not establish higher-slot model admission or graceful process shutdown. All 11 remote checks passed on the previous audit revision Better now? ;) |
|
@mirek190 Thanks! PR merged 🎉 . Stage 2 can proceed in two directions, depending on what you want to work on:
For model opt-ins, the general order should be:
You can submit the models in (1) together. For (2), submitting one model per PR is preferred. Any existing correctness fixes should also be separated from the changes required to enable multi-slot support. |
This PR adds an experimental server runtime selected only by
--parallel-jobs, keeping the original server and CLI path separate. Following the maintainer's latest feedback, the current focus is startup isolation and normal inference/cold initialization. Lifecycle expectations are specified, while incomplete coverage is explicitly reported.ServerStateand HTTP listenerParallelServerState, capacity oneSlot count does not select or switch the implementation. Flagged capacity one uses the new pool/FIFO lifecycle. Admission tables remain empty: catalogue model adapters and admission remain in #706. Controlled 1/2/4-slot fixtures do not enable real checkpoints at those counts.
One authoritative behavior contract
Parallel Server Behavior Contract is the single authority for expected behavior, validation scope and known limits. It includes:
The adapter guide now links to the contract instead of duplicating server lifecycle rules. Historical reports are labelled as revision-scoped evidence. The validation procedure references contract cells and preserves M1-M6/output-quality requirements; shared coverage is collected once rather than repeated for every model.
Unsupported-capacity fix and startup warning
Follow-up
c28d3715fixes the maintainer'sslots=5regression on the opt-in path. An unsupported replacement returns HTTP 400 while retaining the working pool, configuration, count and residency. The manager lease releases, subsequent inference works, and valid resizing still succeeds.For unchanged session inputs, validate against the live pool's advertised capacity without creating another session. Changed task/options/checkpoint require a private primary capability probe before teardown, reusing immutable loaded assets where possible. A failed probe preserves old state. A changed checkpoint may require temporary duplicate weights and an additional primary construction; GPU staging-memory coverage remains unverified. No eviction is performed merely to probe replacement capacity. A load/clone failure after successful validation and configuration commit still leaves the complete new registration unloaded for retry.
Startup warning explicitly identifies the experimental path, controlled CPU/representative CUDA/Vulkan capacity-one coverage, incomplete lifecycle coverage, unvalidated catalogue multi-slot/real concurrent stream/batch/Metal execution, and the absence of backend cancellation. Default startup prints no parallel warning.
Separation and ownership
Against recorded upstream
2892ed3e, protected original runtime headers, busy guard, HTTP/frontend files, session interface, CLI, existing model implementations and ggml have no diff. Originalruntime.cppadds only explicit-slots rejection for dynamic registration. No CUDA/Vulkan kernel or model change is included.The parallel runtime owns its registry/pools/leases; the default parallel listener owns, reaps and joins HTTP workers before runtime destruction. JSON parser synchronization is startup-only opt-in. Tensor-source and resource-cache synchronization require explicit options; no existing model loader is opted in implicitly. Custom listeners retain the existing interface and must independently drain before returning.
Previous audit
366e7520added stable first-registration publication, metadata-safe policy reads, atomic publication of overlapping bulk barriers, null-primary rejection, staged UI folder replacement and owned HTTP workers. Its results remain historical evidence, not complete catalogue admission.Validation
Follow-up local Windows/MSVC checks on
c28d3715, RTX 3090, CUDA 12.4 / Vulkan SDK 1.4.350.0:Real checkpoint follow-up uses Piper TTS, Canary ASR and Nemotron diarization. Each runs cold/warm, rejects slots=5, retains exact status, and returns an identical subsequent warm output/meaningful metadata after removing only top-level execution timing. This checks rejection/reuse at capacity one; it is not a multi-slot, performance or graceful-process-shutdown benchmark.
On parent
366e7520, all 11 remote checks completed successfully, including Linux/macOS/Windows builds/lifecycle and Linux ASan/TSan. Its local record includes 96 matched upstream/legacy/flagged checkpoint responses and 40 repeated lifecycle/HTTP ownership executions. CI on this new follow-up revision is tracked separately and remains pending until completed.Known limits: busy timeout bounds admission, not backend execution; queued disconnects are not immediately canceled; shutdown waits for finite workers and can hang on backend/init/management waits; bulk unload is snapshot-based/non-atomic; logical unloaded status is not proof that physical allocations are freed; cold-load guards intentionally serialize guarded loads; independent sessions do not guarantee GPU overlap. Allocation/thread-construction fault paths are source-audited where no injection exists. New failed/unsupported registrations can remain unloaded until corrected; the preservation fix protects existing working registrations.
Adapter guide ? Future model validation procedure ? Historical self-audit.