Prepare IQ3 dual native-context slots with queued admission

This commit is contained in:
Mikei386 committed 2026-10-13 19:33:22 +02:00
1 parent eda684eb83
commit 6e1c29f3e1
10 files changed
+160 -10

No files matched your search

@@ -2,7 +2,7 @@
User requested IQ2 disabled at the API endpoint, IQ3 262144 retained, and a separate IQ3 524288 profile. User subsequently prohibited restart while using Deck. No production profiles or running workers are changed during preparation.
Prepared app supports one Strata slot up to 524288. Above native 262144, the worker adds `--rope-scaling yarn --rope-scale 2`. Qualified IQ3 hardware tuning remains the measured 3060/5080 layer-16 resident-expert recipe. Same weights and CPU projector; no download needed. Native 262144 receives no scaling arguments. One million and multi-slot profiles remain rejected.
Prepared app supports one Strata slot up to 524288. Above native 262144, the worker adds `--rope-scaling yarn --rope-scale 2`. Qualified IQ3 hardware tuning remains the measured 3060/5080 layer-16 resident-expert recipe. Same weights and CPU projector; no download needed. Native 262144 receives no scaling arguments. One million remains rejected; the later Dual-Slot preparation below also permits two native262K slots.
Proposed profile: `Qwen3.8 Flash-Next Strata IQ3 XXS · 512K`, API ID `flash-next-strata-iq3-512k`. Duplicate current IQ3 parameters except context=524288; slots=1. Existing IQ3 API identity stays unchanged. Disable IQ2's endpoint checkbox; do not delete its weights.
@@ -10,7 +10,7 @@ After explicit maintenance Go: confirm no active requests, use regular installer
**Memory caveat:** full 512K benchmark was run at 45 GiB; production stays 43 GiB. Passing needle test at 45 GiB is not a stability proof at 43 GiB, or with CPU vision/STT simultaneously. Check memory admission and a full-context request separately after activation, before calling this production-qualified.
Official upstream multi-slot support: https://github.com/Niko1221/Strata/blob/main/docs/BATCHING.md . Two 262K slots are independent session states with shared computation; not a split of one 512K chat. Additional GPU/session/KV state and reduced expert-cache capacity can hurt per-chat speed. A dual-slot profile requires Deck concurrency integration and separate simultaneous tests. Not enabled by this change.
Official upstream multi-slot support: https://github.com/Niko1221/Strata/blob/main/docs/BATCHING.md . Two 262K slots are independent session states with shared computation; not a split of one 512K chat. Additional GPU/session/KV state and reduced expert-cache capacity can hurt per-chat speed. A dual-slot profile requires Deck concurrency integration and separate simultaneous tests. Prepared by the later user-authorized change below, not activated.
Validation: five targeted unit tests cover 512K acceptance, rejection of one million/two slots, native/extended scaling, hardware tuning, reserve behavior and server command. No inference tests or service restarts performed during preparation.
@@ -0,0 +1,57 @@
# IQ3 Dual-Slot — prepared, not activated
User requested an additional Dual-Slot profile after discussing parallel agents.
No production restart, unload, profile write, inference or switch during preparation.
Candidate name: Qwen3.8 Flash-Next Strata IQ3 XXS · Dual-Slot · 2 × 262K.
API ID: flash-next-strata-iq3-dual. Duplicate current IQ3 profile, slots2,
context262144 **per slot**. Same weights, GPU order/layer16, resident experts,
CPU projector and sampling. Does not replace single262K or prepared single512K.
Worker config parallel2 delegates native --batch2 to official Strata.
--batch-mtp --batch-groups1 chooses the documented serial two-slot path with
MTP. No YaRN: each conversation stays inside native262144. At readiness,
/v1/status concurrency.serving must confirm at least2; otherwise worker is
stopped and loading fails explicitly instead of claiming dual-slot capacity.
This choice is a test candidate, not a measured optimum on Athena.
Deck scheduler already allows two simultaneous leases for the SAME profile.
A third waits FIFO, up to existing600s admission timeout; queue capacity16.
Other-profile requests wait for current leases to drain before model switch.
No slot reservation per program/client; slots are held for model requests,
not for whole chat/agent lifetimes. A parent agent that releases its request
before running tools/subagents does not keep an inference lease. Clients may
have shorter HTTP timeouts and should limit concurrent subagent requests.
OpenCode and Hermes must select the same dual API ID to actually share it.
Metadata: /v1/models and /props expose262144, slots2, context_scope per_slot
for Strata. llama.cpp shared semantics stay unchanged. Context form labels
per-slot for Strata and allows slots1/2. Two slots above262144 rejected.
Client pending model list includes dual API ID, limit.context262144. Compaction
threshold222822 per conversation; never445644 for the dual profile.
Memory: capacity2x262K is not equal in resource cost to one512K conversation.
Each slot adds GPU state and streaming/pinned KV RAM, reducing expert cache.
Production43GiB unchanged. No claim that two fully filled slots fit or achieve
single-slot throughput until simultaneous inference tested in idle maintenance.
Activation after Go: idle check, normal Deck app update, authenticated profile
save/enable, current IQ2 endpoint disable, client model registration. No private
state-file editing or admin-auth bypass. Use existing installer rollback and
preserve active profile unless user selects dual. Prepared image includes the
previous single512K changes. Neither candidate becomes public before activation.
Native Debian: same pinned runtime a0116b2782a5b82622358c04a06496485d12b2d6,
no new dependencies/downloads. Deploy changed app files, restart in approved
maintenance window; profile and endpoint selection stored in encrypted Deck
state backup. No weights/keys in Git. Full fresh-host restore remains unverified.
Validation: scheduler test admits two, queues third, admits it after release;
profile guards and native scaling checks; actual-capacity fallback rejection;
discovery reports per-slot context without starting a worker; frontend syntax.
No GPU inference or real simultaneous performance test during user activity.
Official pinned source:
https://github.com/Niko1221/Strata/blob/a0116b2782a5b82622358c04a06496485d12b2d6/serve/server.py
Official batching guidance:
https://github.com/Niko1221/Strata/blob/main/docs/BATCHING.md