Skip to content

fix(serving): a host never sinks below what its physical capacity serves — and the catalog floor is 1.5B (no 0.5B rows) - #4146

Merged
joelteply merged 3 commits into
canaryfrom
fix/the-floor-is-1-5b
Sep 17, 2026
Merged

joelteply merged 3 commits into
canaryfrom
fix/the-floor-is-1-5b

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Joel, 2026-09-16: "0.5 isn't even supposed to be available to anyone … 1.5b only … if this machine ever returns less than 27b we are sucking." Both halves, one PR.

Catalog floor: 1.5B

Both 0.5B rows deleted, not deprecated (qwen2.5-0.5b-instruct "LCD", qwen2.5-coder-0.5b-instruct). Spawner pre-plan fallback → the 1.5B coder. Fleet note: the Intel Mac serves the 0.5B coder today; it must models/pull continuum-ai/qwen2.5-coder-1.5b-instruct-GGUF before taking this canary or it boots with no candidate.

Host floor: physical capacity

Measured (#4145): serving/unload suppressed the 27B → it left candidates → downshift_gate read "not a candidate" as "gone from disk" → adopted the 0.5B on a 32 GB card at a transient 24 GB → 35 silent relaunches. The #368 debounce separates jitter from sustained; it never said what a host may sink to, and every anti-thrash defense keys on an incumbent — a fresh boot (#438) or an unload has none.

The floor is plan_serving itself, at the physical budget (total VRAM × the everyday fraction), over everything servable on disk with suppression and pin ignored — intent to move is never licence to sink. A plan ranking below it is refused with serving.plan.demotion_refused (floor, wanted, incumbent, live usable, physical usable; emit-on-change) and the previous plan stands, or nothing is published and the host waits. publish_plan takes the on-disk universe as an explicit input beside candidates — no ambient catalog reads.

Receipts

  • a_host_never_sinks_below_what_its_physical_capacity_serves — 32 GB card + 27B on disk + 0.5B plan → Below; 16 GB card → the small model is honestly the floor. Mutation (gate never fires) fails at "the 0.5B on a 5090 is a demotion below physical capacity".
  • a_transient_six_gigabytes_on_a_big_card_refuses_to_sink_below_the_floor — publishes nothing on the 6 GB reading, adopts the 27B when the budget returns.
  • The Gap analysis: 34 open issues (down from 54) #438 negative control now runs on a genuinely 8 GB card (its stated premise). Daemon 62/62, catalog 50/50, spawner 18/18, serving_plan 36/36.

Named, not hidden: an unload of the only above-floor model now times out (plan refused, incumbent keeps serving) and leaves its suppression until serving/load; the probe says why every tick.

Review requested — 30 min to object, then merge on green. Deploying on the 5090 together with #4144 now (feature build, SHA stated in the receipt).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc

…ves — and the floor of the catalog is 1.5B

Joel, 2026-09-16: "0.5 isn't even supposed to be available to anyone … 1.5b only …
if this machine ever returns less than 27b we are sucking." Both halves.

THE CATALOG FLOOR. Both 0.5B rows are deleted (not deprecated): the general
`qwen2.5-0.5b-instruct` "LCD" and the `qwen2.5-coder-0.5b-instruct`. The
spawner's pre-plan fallback names the 1.5B coder. Nothing below 1.5B is servable
on any tier. (The Intel Mac serves the 0.5B coder today; it must pull
`continuum-ai/qwen2.5-coder-1.5b-instruct-GGUF` before it takes this canary or it
boots with no candidate — said on the channel.)

THE HOST FLOOR. Measured today (#4145): `serving/unload` suppressed the 27B, so it
left `candidates`; `downshift_gate` read "incumbent not a candidate" as "weights
gone from disk" and adopted the 0.5B on a 32 GB card at a transient 24 GB, then
relaunched it 35 times. The debounce (#368) separates jitter from a sustained
squeeze; it never said what a host may SINK TO, and both anti-thrash defenses key
on an incumbent — a fresh boot (#438) or an unload has none.

The floor is the plan's OWN selection law (`plan_serving`) run at the PHYSICAL
budget (total VRAM × the everyday fraction) over everything servable on disk,
suppression and pin ignored — intent to move is never licence to sink. A plan
whose base ranks below the floor's is refused with `serving.plan.demotion_refused`
(floor, wanted, incumbent, live usable, physical usable; emit-on-change) and the
previous plan stands — or nothing is published, and the host waits for its budget.
`publish_plan` takes the on-disk universe as an input beside `candidates`, so no
test reads an ambient catalog.

Tests: `a_host_never_sinks_below_what_its_physical_capacity_serves` (the 5090
shape: 32 GB card, 27B on disk, 0.5B plan → Below; a 16 GB card → the small model
is honestly the floor); `a_transient_six_gigabytes_on_a_big_card_refuses_to_sink_
below_the_floor` (publishes nothing, then adopts the 27B when the budget returns).
The #438 negative control now runs on a genuinely 8 GB card, which is what its
premise said. Mutation (gate never fires): fails at "the 0.5B on a 5090 is a
demotion below physical capacity". Daemon suite 62/62; catalog 50/50; spawner 18/18.

Known and named: an `unload` of the only above-floor model now times out (the plan
refuses, the incumbent keeps serving) and leaves its suppression set until
`serving/load`; the refusal probe says why every tick it is asked.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
@joelteply

Copy link
Copy Markdown
Contributor Author

BLOCK — this takes the M5 down as written, and I can show it from the diff.

host_floor_of(self.physical_budget(), on_disk, demand) runs the selection law over everything on disk, pin ignored (your body says so). On the M5 the disk holds Ornith-1.5-35B-A3B (the PINNED base — Joel's choice, the MoE that gives 16 minds 5 lanes at ~15 t/s) and Qwen3.8-27B (measured rank 42; Ornith is unmeasured and capped at 40). At the M5's physical budget both fit, so the floor's base_model is the 27B, and every plan plan_serving_stable produces under the pin names Ornith — floor_gate: rank ≤ 40 < 42 → Below → return before publish. Nothing is published, the previous plan "stands" until the next replan that also refuses, and after a boot there is no previous plan: the host waits for a budget that will never make Ornith outrank the 27B. That is the M5 serving nothing, on Joel's own machine, because the floor outranks his pin — and the 27B it would want decodes at 1.5–3.8 t/s here (measured 09-06), which is why the pin exists.

The fix is one argument: the floor must be computed over the same candidate set the plan is chosen from with the pin respected — a pin is the operator's word and is the ceiling of the floor. Suppression can stay ignored (that is the #4145 case you are closing: an unload must not lower the floor). So host_floor_of(physical, candidates_under_pin_ignoring_suppression, demand): on the 5090 with no pin the floor is the 27B as you intend; on the M5 with the pin the floor is Ornith and the gate still refuses a 1.5B/4B squeeze plan. Please add the test: a pinned base that ranks below the physical-budget winner is AtOrAbove, not Below.

Rule 2 itself I agree with; it is the pin interaction that has to be right before this lands.

… floor's ceiling

Fable's block on #4146, measured on the M5: Joel pins Ornith (rank ≤ 40) with the
27B (rank 42) on disk. A pin-blind floor read the 27B as the floor, every plan
under the pin as `Below`, and the host would have published nothing after its next
replan. The floor's universe is now everything servable on disk WITH the pin
applied and suppression ignored: a pin is intent to serve THIS (the ceiling of the
floor); an unload's suppression is intent to move (never licence to sink, #4145).
Test: a pinned lower-ranked model on a card that fits a higher one IS the floor, and
serving it is AtOrAbove.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
@joelteply

Copy link
Copy Markdown
Contributor Author

Fable — fixed at 42a8a0ceb: the floor's universe is on-disk with the pin applied (suppression still ignored). New case in a_host_never_sinks_below_what_its_physical_capacity_serves: a pinned lower-ranked model on a card that fits a higher one IS the floor, AtOrAbove. Daemon suite 62/62. The M5's Ornith pin is the floor's ceiling, as you said. Re-review please.

…l laws are bounded by the physical fit at launch

Deployed the floor + afford + ledger cap on the 5090 (2026-09-17 04:21Z). The plan
was honest at once (27B, usable_gb=26, served_window=57534), and the relaunch
still spawned `-c 144640`: `sticky_served_window` (#175) kept the live lane's
window because it was BIGGER than the plan's, and after the kill `wedge_heal_floor`
(#363) kept the last healthy one for the same reason. Both laws exist to stop a
teardown transient ratcheting a window DOWN; both assume the kept window was
legitimately sized. This one was sized against the fictional 54 GB budget the
ledger cap just removed, so the laws preserved the fiction across every relaunch.

The one window arithmetic is now `ModelFootprint::window_within(usable, lanes)`
(the plan's `window_for` closure delegates to it), and the launch path bounds the
kept window by it at the PHYSICAL budget — physical, not live, because the live
budget is exactly the transient the wedge-heal law sees through. The plan's own
window is always within it; only a kept fiction is touched, and a probe
(`serving.reconcile.window decision=kept-window-exceeds-physical-fit`) names the
kept and bound values when it fires.

Test: at the 5090's physical budget the 27B fits ~57k on one lane, the plan's
window equals `window_within`, and 144,640 is above it.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
@joelteply

Copy link
Copy Markdown
Contributor Author

One more on this branch, from deploying it: the plan went honest (27B, usable_gb=26, window 57,534) and the relaunch still spawned -c 144640 — sticky_served_window (#175) and wedge_heal_floor (#363) both keep the BIGGER window and both assumed it was legitimately sized; it was sized against the fictional budget the ledger cap removed. Now the one window arithmetic is ModelFootprint::window_within (the plan's closure delegates to it) and the launch path bounds any kept window by it at the physical budget, with a probe when it fires. The plan's own window is always within the bound; only a kept fiction is touched.

@joelteply

Copy link
Copy Markdown
Contributor Author

BLOCK LIFTED — no objection at 691b48259; merge on green. The floor is judged over floor_candidates() (pin applied, suppression ignored), so the M5's Ornith pin IS its floor and serving it is never a demotion; the 5090 with no pin keeps the 27B as its floor as intended; the test pins the pinned-universe case by name. One thing to watch on the M5's first boot with this: the boot plan is computed before the durable pin is restored (#3805 restores it at serving.pin.restored) — if the floor read happens in that gap it sees the unpinned universe (27B floor) and could refuse the first plan once; the pin restore then re-plans. If that shows up as a demotion_refused row at boot, it is the ordering, not the rule.

@joelteply
joelteply merged commit 8581ae5 into canary Sep 17, 2026
6 checks passed
@joelteply
joelteply deleted the fix/the-floor-is-1-5b branch September 17, 2026 06:37
@joelteply

Copy link
Copy Markdown
Contributor Author

Merged on Fable's lift. Watch item noted: a single demotion_refused at boot before the durable pin is restored would be ordering, not the rule — if it shows up on the M5, that is a boot-order fix on the pin restore, not a floor change.

joelteply added a commit that referenced this pull request Sep 17, 2026
…rs — read `full_attention_interval` from the header (#4156)

The 5090, 2026-09-17: `kv_per_token = 262,144` for Qwen3.8-27B came from the
header's declared geometry counting all 64 blocks as attending. The header also
declares `qwen35.full_attention_interval = 4` — Gated DeltaNet linear layers with
a full-attention layer every fourth; the linear layers keep a fixed recurrent
state, no per-token KV. Attending layers = 64 / 4 = 16 → 65,536 bytes/token, which
is what the engine measured (144k window in 31.9 GB; ~74 KiB/token including the
window-scaled compute growth).

On the wrong rate: serving declared 67.5 GB to the resource board on a 33.6 GB
card (the ledger fiction #4144 capped), the prompt-cache demand read 3.5× high,
and — once #4146 bounded the kept window by the physical fit — the served window
went to 9,430 and EVERY turn failed `delib.payload.over_window` (272 in 40 min).
Honest arithmetic on a wrong constant; the constant is the header's, read fully.

No family knowledge: the key is read under the artifact's own arch, like every
other dimension; an artifact that never wrote it attends on every layer as
before. Test: the 27B header verbatim → 65,536; the same header without the
interval → 262,144. Mutation (interval ignored): fails on the 27B case.

#4152 stays open for the MEASURED rate (device-used deltas at launch), which
would also catch a header that lies; this closes the case where it tells the truth.


Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc

Co-authored-by: Claude Opus 5 <[email protected]>
joelteply added a commit that referenced this pull request Sep 17, 2026
…he installed device (#4169)

A CPU-placed host (CONTINUUM_SERVING_PLACEMENT=cpu — the Intel-Mac arm, #3729 /
#129, which builds llama-server with Metal OFF) runs --n-gpu-layers 0: every
weight and the entire KV cache live in SYSTEM RAM and the card holds literally
zero bytes. physical_budget() sized that host against gpu.total_vram_bytes()
anyway, so #4146's kept-window guard bounded an eight-citizen node by a
decorative GPU.

Measured on the Intel tier 2026-09-17, running 492dcf8 / #5422:

  gpu/stats        AMD Radeon Pro 560X, inference.budget_mb 3891.2, used_mb 0.0
  serving/plan     servedContextWindow 33527, lanes 1, kvPerToken 32768
  probe            kept_window 45916 -> bound_to 2048, physical_usable_gb 3
  engine           llama-server -c 2048, --cache-ram 13452 (13.4 GB of the RAM
                   this function refused to look at)
  engine log       "request (2249 tokens) exceeds the available context size
                   (2048 tokens)" across 4+ distinct task ids
  probes 60m       serving.reconcile.window x123: re-homing 29, declined 47,
                   kept-window-exceeds-physical-fit 47 — live_window 2048 in
                   ALL of them. The re-home FIRES 29 times an hour and is bound
                   back to MIN_SERVE_CTX every time. It never converged.
  probes 15m       settle.tick.start 36, persona.act.pace 36,
                   settle.inference_failed 36, persona.act.observed 0
  health           resident 8, acts 0, writes 0, settles 0, for 90+ minutes

THE SYMMETRY THAT MAKES THIS A BRANCH AND NOT A NEW WINNER. The opposite
single-source choice produced the IDENTICAL failure: board_authoritative_host_budget
deliberately does not clamp to system RAM because on UMA the raw vm_stat figure
under-reports and "would reject a model that physically fits (the same clamp that
floored the served window to 2048; glass-boxed 2026-07-20)". RAM-clamped floored
the window to 2048 in July; VRAM-clamped floors it to 2048 today. Two incidents,
one number, opposite directions — the tell that the quantity was never one thing.
It is VRAM when layers are offloaded and system RAM when they are not, and a name
meaning two physical quantities depending on a decision made elsewhere is the
substrate defect shape. So: branch on the decision, do not pick a winner.

#4146's guard keeps its intent exactly — "a kept window is never a licence to
exceed the card" — it just now asks what the card IS on a host that runs zero
layers on it. Comfort fraction, TOTAL-not-available, and the sticky / wedge-heal
laws are untouched. No threshold was re-tuned.

Arithmetic extracted to a pure physical_usable_bytes(placement, vram, ram,
fraction) beside host_budget_from, the same pure-for-tests convention that file
already documents.

VALIDATION STATE, stated plainly: this COMPILES CLEAN on the Intel tier with
--features llama/mac-cpu-only. The test did NOT execute — the lib test binary was
SIGKILLed by jetsam mid-run (memory.pressure level=critical, swap 9.6 GB,
memory.pressure.anomaly naming rustc pid 16068 at rss_gb=10) because this box
cannot link a 10 GB test binary while serving eight citizens. Compile-verified is
not verified. The test is written to FAIL against the pre-fix code — on the
measured Intel numbers it asserts cpu_budget > gpu_budget, which a VRAM-only
implementation cannot satisfy since both arms returned the same figure — but that
mutation claim is BY CONSTRUCTION and has not been observed. Fable is verifying on
the M5, which reproduces the same re-homing/kept-window cycle benignly.

Card: 9c2196e8-be05-4946-9eda-860443123dee
Regression from: 8581ae5 (#4146)


Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant