Repository navigation
GLM-5.3-Flash: a frame past the tower's native 32,000 patches is a 400, not a retried 503 - #2191
Merged
Merged
Conversation
…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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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).
jonathan308
marked this pull request as ready for review
November 16, 2026 22:54
This was referenced Nov 17, 2026
Merged
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.glm5FrameLimitsrefused a larger frame astowerBudgetExceeded, 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 isunsupportedMedia(400, failure codeinvalid_media, messagemultimodal_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) staystowerBudgetExceeded(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_refusalevent; it shows asinvalid_media400s.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 ondev; expected to failaFramePastTheNativeLimitIsTheRequestsFault). 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) → fixea96242bce→ 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) → nits743d57231f(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).