mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-05 12:24:28 +01:00
cockpit: the window of a lane whose /server_info leaves it empty is read in its /v1/models
On the reference box updated to v1.62.0, the Now view said "One prompt, at most: about 262K tokens" for the Qwen4 35B-A3B lane, whose engine takes 1,048,576: SGLang leaves context_length empty in /server_info when the unit passes no --context-length and the model's config gives the window, and the page kept its default, 262,144. The engine's /v1/models says it (max_model_len), and is asked only then. ItsWindowWhenServerInfoLeavesItEmpty fails before and passes; read on the box against the engine that serves: 1,048,576. CHANGELOG: v1.62.1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
28b07598f2
commit
8fbc2b2eaf
3 files changed
+71
No files matched your search
@@ -1,5 +1,20 @@
|
||||
# Changelog
|
||||
|
||||
## v1.62.1 (2026-12-04): the cockpit says the Qwen4 lane's whole window, 1,048,576 tokens, where it said 262,144
|
||||
|
||||
- **The window of a lane whose unit sets none.** On the reference box updated to v1.62.0, the Now view said "One prompt,
|
||||
at most: about 262K tokens" for the Qwen4 35B-A3B lane, and its engine panel in Lanes the same, while the engine and the
|
||||
proxy take 1,048,576 (the engine's `/v1/models` says so, `max_model_len`). SGLang leaves `context_length` empty in
|
||||
`/server_info` when the unit passes no `--context-length` and the model's config gives the window, and the page kept its
|
||||
default, 262,144. The cockpit now reads the window in the engine's `/v1/models` then, and only then: a lane whose
|
||||
`/server_info` gives it asks nothing more, and a route that fails leaves it unknown, as before. Nothing else was wrong:
|
||||
the engine, the proxy, which sets no ceiling on this lane, and opencode's limits, fitted on the pool (823,000 tokens in,
|
||||
200,000 out), all took the whole window.
|
||||
- **Tests.** `ItsWindowWhenServerInfoLeavesItEmpty` (`dashboard/tests/test_qwen4_35b_cockpit.py`): the window read in
|
||||
`/v1/models` fails on v1.62.0 and passes; a window `/server_info` gives is kept with nothing more asked; a route that
|
||||
fails leaves it unknown. Read on the reference box against the engine that serves: 1,048,576.
|
||||
- **What an update does**: it restarts the cockpit; the lane that serves goes on serving.
|
||||
|
||||
## v1.62.0 (2026-12-04): Qwen4 35B-A3B on SGLang the day Qwen published it, and documents read on this box, PDFs, scans and photos, in a tab of the cockpit and on Mistral's OCR API, beside the lane that serves when the box holds both
|
||||
|
||||
- **Qwen4 35B-A3B, the day it came out** (decisions 1703, 1704, 1707 and 1709 to 1714). Qwen published its first open Qwen4
|
||||
|
||||
@@ -2115,6 +2115,15 @@ def collect_engine_info():
|
||||
slim = {k: info.get(k) for k in kept}
|
||||
for f in MASKED_FIELDS:
|
||||
slim.pop(f, None)
|
||||
# SGLang leaves context_length empty in /server_info when the unit sets no --context-length and the model's config
|
||||
# gives the window (the Qwen4 35B-A3B lane): its /v1/models says it (max_model_len). Without it the page kept its
|
||||
# default, 262,144, and said "One prompt, at most: about 262K tokens" for a lane that takes 1,048,576 (seen on the
|
||||
# reference box after v1.62.0, 2026-12-04). Asked only then, and a refusal leaves it unknown, as before.
|
||||
if not slim.get("context_length"):
|
||||
try:
|
||||
slim["context_length"] = (http_json(ENGINE_BASE + "/v1/models", timeout=5).get("data") or [{}])[0].get("max_model_len") or None
|
||||
except Exception: # noqa: BLE001 (one route that fails must not darken the panel)
|
||||
pass
|
||||
# Which switch target these weights are: the selector must show what is serving,
|
||||
# not the first option in the list. Derived from the registry pins, so a new pin
|
||||
# is a new target with no extra table to keep in step.
|
||||
|
||||
@@ -188,6 +188,53 @@ class TheTwentySevenBsFactsAreNotItsOwn(Base):
|
||||
|
||||
|
||||
|
||||
class ItsWindowWhenServerInfoLeavesItEmpty(Base):
|
||||
"""After v1.62.0 the reference box's cockpit said "One prompt, at most: about 262K tokens" for the Qwen4 lane, whose
|
||||
engine takes 1,048,576 (2026-12-04): SGLang leaves context_length empty in /server_info when the unit sets no
|
||||
--context-length and the model's config gives the window, and the page kept its default, 262,144. The window is
|
||||
read in the engine's /v1/models then, and only then."""
|
||||
|
||||
def collect(self, info, models):
|
||||
asked = []
|
||||
|
||||
def http_json(url, timeout=4.0):
|
||||
asked.append(url.split("/", 3)[-1])
|
||||
if isinstance(models, Exception):
|
||||
raise models
|
||||
return models
|
||||
names = ("kolibri_serving", "nemotron_serving", "llamacpp_serving", "engine_server_info", "http_json",
|
||||
"proxy_prompt_ceiling")
|
||||
saved = {k: getattr(self.ck, k) for k in names}
|
||||
self.ck.kolibri_serving = self.ck.nemotron_serving = self.ck.llamacpp_serving = lambda *a, **k: False
|
||||
self.ck.engine_server_info = lambda timeout: dict(info)
|
||||
self.ck.http_json = http_json
|
||||
self.ck.proxy_prompt_ceiling = lambda served, window=0: 0
|
||||
try:
|
||||
return self.ck.collect_engine_info(), asked
|
||||
finally:
|
||||
for k, v in saved.items():
|
||||
setattr(self.ck, k, v)
|
||||
|
||||
QWEN4 = {"model_path": PIN["QWEN4_35B_REPO"], "served_model_name": "qwen4-35b-a3b", "context_length": None,
|
||||
"max_total_num_tokens": 1283264}
|
||||
|
||||
def test_its_window_is_read_in_its_models_route(self):
|
||||
out, asked = self.collect(self.QWEN4, {"data": [{"id": "qwen4-35b-a3b", "max_model_len": 1048576}]})
|
||||
self.assertEqual(out["info"]["context_length"], 1048576)
|
||||
self.assertEqual(asked, ["v1/models"])
|
||||
|
||||
def test_a_window_server_info_gives_is_kept_and_nothing_more_is_asked(self):
|
||||
out, asked = self.collect(dict(self.QWEN4, served_model_name="qwen3.8-27b", context_length=262144),
|
||||
{"data": [{"max_model_len": 999}]})
|
||||
self.assertEqual(out["info"]["context_length"], 262144)
|
||||
self.assertEqual(asked, [])
|
||||
|
||||
def test_a_models_route_that_fails_leaves_it_unknown_and_the_panel_up(self):
|
||||
out, asked = self.collect(self.QWEN4, OSError("refused"))
|
||||
self.assertIsNone(out["info"]["context_length"])
|
||||
self.assertEqual(out["info"]["max_total_num_tokens"], 1283264)
|
||||
|
||||
|
||||
class ItsAgentLimitsAfterABoot(Base):
|
||||
"""Past its native window its pool decides its clients' answer at the fit, as Qwen's card asks room for a long answer:
|
||||
the cockpit's automatic fit and the Settings button land on one pair, from the tool's own rule (cap_for gives no
|
||||
|
||||
Reference in new issue
Block a user