Skip to content

The agent that grows with you

fix(local-runtime): catalog rows advertise the overhead-priced window

emozilla83224e70307b
diff --git a/hermes_cli/web_routers/local_models.py b/hermes_cli/web_routers/local_models.py
index 74b02fc8653..612b4bc58a7 100644
--- a/hermes_cli/web_routers/local_models.py
+++ b/hermes_cli/web_routers/local_models.py
@@ -447,7 +447,10 @@ async def local_models_catalog():
the 64K floor; else the smallest that works, spilled and priced). No
entry is hidden; unaffordable models show WHY."""
from hermes_cli.local_runtime.catalog import CATALOG, select_variant
- from hermes_cli.local_runtime.context_policy import initial_window
+ from hermes_cli.local_runtime.context_policy import (
+ RUNTIME_OVERHEAD_BYTES,
+ initial_window,
+ )
from hermes_cli.local_runtime.estimator import PhysicsRefusal
from hermes_cli.local_runtime.hardware import probe_budget
@@ -492,7 +495,13 @@ async def local_models_catalog():
variant = choice.variant
profile = entry.profile(variant)
- decision = initial_window(profile, budget)
+ # Same overhead the launch decision prices (runtime buffers +
+ # vision projector): the row must advertise the window the model
+ # will actually get, not a paper number the server's own fit then
+ # shaves down.
+ overhead = RUNTIME_OVERHEAD_BYTES + (
+ entry.mmproj.size_bytes if entry.mmproj else 0)
+ decision = initial_window(profile, budget, overhead_bytes=overhead)
download_total = entry.download_bytes(variant)
row.update({
"fits": True,