Skip to content

vllm_model: two vLLM 0.29 refusal bodies the context-overflow classifier misreads #4703

Open

Description

@alexandery-nvidia

Two vLLM 0.29 refusal bodies that the vllm_model context-overflow classifier (_is_context_length_error and context_overflow_error_fields, from #3978) reads differently from what happened, noted by @yaoyu-33 in the re-review of #3980 (#3980 (review)). Both predate #3980, but #3980 makes the truncation verdict of a captured rollout depend on the classification, so they matter more now.

  1. A prompt that exactly fills the window is refused without a code. vLLM 0.29 answers such a request with max_tokens must be at least 1, got 0. The body names only the output-token parameter, so the envelope carries no context_length_exceeded code, and under token capture the refusal is recorded with code=None: it resolves the call intent but sets no incomplete verdict, although the conversation did reach the window.

  2. The maximum model length marker also matches the encoder-cache refusal for an oversized image. vLLM uses the same phrase when a multimodal input exceeds the encoder cache, so an image that is too large is reported as a context-window overflow, and under token capture it would mark the rollout incomplete with reason max_output_tokens.

A fix needs the exact vLLM 0.29 bodies for both cases to decide which markers to add and which to narrow; the propagate branch and the refusal record should then follow the corrected classification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions