{"record":{"id":"7d6f2c9a6a98046c","repo":"vllm-project/vllm","slug":"all-encoder-cudagraph-token-budgets-must-be-positi","errorCode":null,"errorMessage":"All encoder_cudagraph_token_budgets must be positive, got {self.encoder_cudagraph_token_budgets}","messagePattern":"All encoder_cudagraph_token_budgets must be positive, got (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"vllm/config/compilation.py","lineNumber":1055,"sourceCode":"        ):\n            raise ValueError(\n                \"encoder_cudagraph_max_vision_items_per_batch must be \"\n                \"non-negative (0 = auto-infer)\"\n            )\n        if (\n            self.cudagraph_mm_encoder\n            and self.encoder_cudagraph_max_frames_per_batch is not None\n            and self.encoder_cudagraph_max_frames_per_batch < 0\n        ):\n            raise ValueError(\n                \"encoder_cudagraph_max_frames_per_batch must be \"\n                \"non-negative (None = auto-infer)\"\n            )\n\n        if self.encoder_cudagraph_token_budgets and any(\n            b <= 0 for b in self.encoder_cudagraph_token_budgets\n        ):\n            raise ValueError(\n                f\"All encoder_cudagraph_token_budgets must be positive, \"\n                f\"got {self.encoder_cudagraph_token_budgets}\"\n            )\n\n        if self.backend == \"\":\n            self.backend = current_platform.get_compile_backend()\n\n    def init_backend(\n        self,\n        vllm_config: \"VllmConfig\",\n        prefix: str = \"\",\n        is_encoder: bool = False,\n    ) -> str | Callable:\n        \"\"\"\n        Initialize the backend for the compilation config from a vllm config.\n        Arguments:\n            vllm_config: The vllm config to initialize the backend from.\n            prefix: Cache directory prefix for this compiled module.","sourceCodeStart":1037,"sourceCodeEnd":1073,"githubUrl":"https://github.com/vllm-project/vllm/blob/c794754062d49a8fdb63ab3c5215b488b865030c/vllm/config/compilation.py#L1037-L1073","documentation":"Error \"All encoder_cudagraph_token_budgets must be positive, got {self.encoder_cudagraph_token_budgets}\" thrown in vllm-project/vllm.","triggerScenarios":"Raised at vllm/config/compilation.py:1055 when validation fails: All encoder_cudagraph_token_budgets must be positive. Typically triggered by an incompatible or incomplete vLLM configuration, an unsupported platform/backend combination, or a runtime resource/dependency that is missing.","commonSituations":"Commonly encountered at vllm/config/compilation.py:1055 during vLLM startup/config validation or runtime setup when: (1) conflicting CLI flags or config fields are combined, (2) the current platform (CUDA/ROCm/CPU/XPU) or installed optional packages do not support the requested feature, or (3) a required value is absent or out of range. Resolve by correcting the configuration as described in the message, or by selecting a supported alternative.","solutions":["Make every entry in encoder_cudagraph_token_budgets a positive integer, or omit the option entirely."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c794754062d49a8fdb63ab3c5215b488b865030c","analyzedAt":"2026-08-14T21:17:39.825Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}