Skip to content

GLM-5.3-Flash: a frame past the tower's native 32,000 patches is a 400, not a retried 503 - #2191

Merged
jonathan308 merged 3 commits into
devfrom
fix/glm-4k-frame-400
Nov 16, 2026
Merged

jonathan308 merged 3 commits into
devfrom
fix/glm-4k-frame-400

Conversation

@jonathan308

@jonathan308 jonathan308 commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

GLM-5.3-Flash: a frame past the tower's native 32,000 patches is a 400, not a retried 503

Problem. GLM's vision tower takes at most 32,000 patches a frame pair on every Mac (GLM5NextVisionBudget.maximumFramePatches). VisionTowerBudget.glm5FrameLimits refused a larger frame as towerBudgetExceeded, which the scheduler answers with the retriable construction refusal (503), so the coordinator re-sent the request to other GLM Macs, which refused it identically. Affected: a 4K clip of three pairs or fewer (about 3 s): 2 frames render 156 × 276 = 43,056 patches; and, since #2176's long-video fit, 6 frames shrunk to the prepared cap render 3 pairs of 146 × 260 = 37,960 (before #2176 that clip was a 400 "prepared pixels"; review M1 of #2176).

Fix (provider only, 1 guard). In glm5FrameLimits, past the native limit the refusal is unsupportedMedia (400, failure code invalid_media, message multimodal_rejected: GLM frame exceeds the tower's 32000-patch limit; lower the video's resolution; EngineV2VisionPrefill.clientFault), before any tower work. The same function guards the single-Mac path (buildGLM5NextSubmission) and a pair's leader (DistributedGLMMediaIngress), so both answer 400. An operator's lower limit (DARKBLOOM_VISION_MAX_TOWER_PATCHES) stays towerBudgetExceeded (retriable): another Mac can serve the frame. No request that was served changes; only the status of a refusal that already happened on every Mac. Images can't reach it (8,000 tokens = 32,000 patches).

No kill switch: the change only re-labels a refusal every GLM Mac already makes (503 → 400); nothing served before is refused now. Telemetry: like every client fault, this class no longer emits the ERROR engine_v2_vision_refusal event; it shows as invalid_media 400s.

Tests (GLM5NextFrameLimitTests): the 2-frame and the fitted 6-frame 4K plans pass 32,000 patches a pair and their refusal is a client fault (400); a 32,320-patch frame too; a 20,000-patch frame under a 16,000 operator limit stays retriable; frames within both limits (20,000; exactly 32,000) plan. Red first: 5f4dae15eb, red control #2190 (the test alone on dev; expected to fail aFramePastTheNativeLimitIsTheRequestsFault). Mac A's build gate was closed (GLM-MTP's GLM run), so red and green are shown on CI.

Gates: red 5f4dae15eb (red control #2190) → fix ea96242bce → independent review APPROVE WITH NITS (earnings/review-media14c.md: the limit is a constant on every layer incl. the pair wire, every caller maps to 400, tests read and 4K numbers re-derived) → nits 743d57231f (detail interpolates the constant + "lower the video's resolution"; the test helper names each outcome; wording). Follow-up (pre-existing, out of scope): the "GLM aggregate patch limit" (960,000) is also a constant labelled retriable, unreachable with today's caps.

Release note: changelog.d/glm-4k-frame-400.md. Docs: docs/architecture/inference.md (GLM media refusals).

…st's fault (red)

A 4K clip of one or a few frame pairs (2 frames: 156 x 276 patches; 6
frames shrunk to the prepared cap: 3 pairs of 146 x 260) passes GLM's
native per-pair tower limit on every Mac, but glm5FrameLimits refuses it as
towerBudgetExceeded, a retriable 503 the coordinator retries on other GLM
Macs. An operator's lower limit stays retriable.
…etried 503

glm5FrameLimits refused a frame pair past GLM's native per-pair tower limit
as towerBudgetExceeded, the retriable construction refusal, so the
coordinator retried a 4K clip of a few pairs on other GLM Macs, which all
refused it the same way. Since the long-video fit, a 3-second 4K clip shrunk
to the prepared cap lands there too. Past the native limit the refusal is
now unsupportedMedia (400 multimodal_rejected), before any tower work, on a
Mac and on a pair's leader; an operator's lower limit
(DARKBLOOM_VISION_MAX_TOWER_PATCHES) stays retriable. Docs and release note.
@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference-landing Ready Ready Preview Nov 16, 2026 10:33pm UTC
darkbloom-status Ready Ready Preview Nov 16, 2026 10:33pm UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 16, 2026 10:33pm UTC

Request Review

The refusal's detail interpolates maximumFramePatches and tells the client to
lower the video's resolution; the test helper names each outcome (plans,
400 unsupportedMedia, 503 towerBudgetExceeded) instead of folding every other
throw into the retriable case; changelog/doc wording (the failure code is
invalid_media; frames of about 6.3 MP and up, not only 4K).

This branch was successfully deployed

3 active deployments
Preview – eigen-homepages-darkbloom — 743d5723 Deployed Nov 16, 2026 by vercel[bot]
Preview – d-inference-landing — 743d5723 Deployed Nov 16, 2026 by vercel[bot]
Preview – darkbloom-status — 743d5723 Deployed Nov 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant