PANE

VLLM structured outputs return HTTP 500 errors

10 posts in the last 90 days, all from GitHub.

“Your current environment Inference Framework: vllm ascend 0.24.0 LLM: DeepSeek V4 (Flash & Pro) 🐛 Describe the bug Overview This issue proposes a systematic improvement: add an automated request body validation and normalization module at the very upstream of vLLM's request…”
GitHub
“Your current environment vLLM version: Main branch (built from source) OS: macOS (Darwin 25.4.0) Python version: 3.12.8 PyTorch version: 2.8.0 CUDA available: False Note: collect env.py failed to run locally because my environment is partially unbuilt, but this is a pure Python…”
GitHub
“Your current environment vLLM source: bb23c0a81779ba733923a7dab9b840b4e533f6a5 ; affected files matched current main when checked on 15 November. macOS 26.4.1, arm64; Python 3.12.16. Requests 2.34.2, aiohttp 3.14.5, PyTorch 2.14.1. CPU only helper reproduction with minimal…”
GitHub

Users encounter frequent HTTP 500 Internal Server Errors when using VLLM's structured output features, including reasoning parsers, regex validation, and JSON schema enforcement. These issues range from malformed specifications to unexpected EOS handling.

aibugvllmstructured-outputhttp
FIT
0%
SIGNAL
72%
SOURCES16
FRESHEST POST12D AGO
TRACKED SINCE74D AGO

SOURCES (16)

“Your current environment <details <summary The output of <code python collect env.py</code </summary </details 🐛 Describe the bug Your current environment collect env.py output is not available: the engine runs in a private GKE cluster where we cannot exec into the pod. Here is everything…”

GITHUB12d ago

“Your current environment <details </details 🐛 Describe the bug With kv load failure policy="recompute" , blocks whose synchronous KV load failed (reported through invalid block ids ) stay usable for other requests before the request that owns them has recomputed them. Those other requests attend to KV that was never loaded and produce wrong output. No error is raised and nothing is logged for them. Two places in Scheduler assume that the first affected request rewrites the failed block before a”

GITHUB12d ago

“Your current environment vLLM source: bb23c0a81779ba733923a7dab9b840b4e533f6a5 ; affected files matched current main when checked on 15 November. macOS 26.4.1, arm64; Python 3.12.16. Requests 2.34.2, aiohttp 3.14.5, PyTorch 2.14.1. CPU only helper reproduction with minimal dependencies; no model or compiled vLLM extension required. <details <summary The output of <code python collect env.py</code </summary The collector fails on this macOS checkout at a Linux only assertion. Versions above were”

GITHUB18d ago

“Your current environment <details <summary The output of <code python collect env.py</code </summary </details 🐛 Describe the bug After vLLM creates an npcache for a PyTorch checkpoint, replacing or updating the source .bin files does not invalidate the cache. A newly started process continues loading the old NumPy arrays as long as np/weight names.json exists. The ordinary loader reads the updated checkpoint correctly. The same model directory therefore produces different weights depending on”

GITHUBOct 30

“Your current environment Affected Python source: vLLM main at 7a64fb8fc9239cb65e0df9313fa759594dfb206a . Validation hardware: NVIDIA H200; PyTorch 2.13.0+cu130 . The test environment used these upstream Python sources with existing image binaries from vLLM 81d7293c2 , rather than a full CUDA rebuild of main. Connector: MooncakeStoreConnector , with reads split by the disk offload staging budget. The unloaded prefix retention risk concerns non HMA block level recovery with kv load failure policy=”

GITHUBOct 24

“Your current environment <details <summary The output of <code python collect env.py</code </summary </details 🐛 Describe the bug With mm processor cache type shm , POST /pause?mode=keep (or mode=wait with clear cache=true ), while image requests are waiting to be scheduled, can kill the engine as soon as one of them is scheduled, see log: Every in flight and later request then fails, and /health stops answering 200. /pause?mode=keep is documented to ignore clear cache ("Ignored when mode=keep"”

GITHUBOct 17

“Your current environment <details <summary The output of <code python collect env.py</code </summary </details 🐛 Describe the bug Suppose POST /reset prefix cache?reset running requests=true arrives while a request's prefill step is still in flight (async scheduling, V1 model runner). The request is then preempted, resumed and completed normally, but its prompt logprobs are lost completely : non streamed /v1/completions with prompt logprobs=1 returns HTTP 200 with "prompt logprobs": [null] , on”

GITHUBOct 13

“Your current environment <details <summary The output of <code python collect env.py</code </summary </details 🐛 Describe the bug With reset running requests=true and the OffloadingConnector , a reset that arrives while a request is loading its KV from the CPU tier does not return success=false like the document say it would: it returns HTTP 500 and the server logs The engine survives (it is a utility call); the in flight requests complete normally ( finish reason=length , 64 tokens). The same”

GITHUBOct 8

“Your current environment <details <summary The output of <code python collect env.py, reconstructed from startup</code </summary </details 🐛 Describe the bug 🐛 Bug Sending the same 43k token request repeatedly: first N (fresh prefill) are correct, then once it hits the prefix cache a response comes back with content: null , an incoherent multilingual reasoning field, and finish reason: "stop" — silent, no traceback. Prepending a unique prefix (forces fresh prefill) → 0/50 failures . So the tri”

GITHUBOct 7

“Your current environment <details <summary Environment details</summary </details 🐛 Describe the bug The kv cache memory value that vLLM prints at startup double counts CUDA graph memory whenever VLLM MEMORY PROFILER ESTIMATE CUDAGRAPHS=1 (the default). For models with a large CUDA graph pool the suggested value comes out negative , so it cannot be used and, since 47374, it also silently defeats VLLM ENABLE STARTUP PLAN=1 . Background: what the kv cache memory recommendation is kv cache memory”

GITHUBSep 21

“Your current environment Inference Framework: vllm ascend 0.24.0 LLM: DeepSeek V4 (Flash & Pro) 🐛 Describe the bug Overview This issue proposes a systematic improvement: add an automated request body validation and normalization module at the very upstream of vLLM's request processing pipeline (e.g., API gateway or /v1/chat/completions entry point). This module upgrades the current "soft interception" (relying on system prompts) to a hard interception based on Python hard coded logic, fundament”

GITHUBJul 10

“Your current environment <details <summary The output of <code python collect env.py</code </summary </details 🐛 Describe the bug (APIServer pid=1457091) INFO 07 08 22:47:50 [loggers.py:271] Engine 000: Avg prompt throughput: 0.0 tokens/s, Avg generation throughput: 273.0 tokens/s, Running: 2 reqs, Waiting: 0 reqs, GPU KV cache usage: 0.6%, Prefix cache hit rate: 0.0% (APIServer pid=1457091) INFO: 127.0.0.1:51412 "POST /v1/chat/completions HTTP/1.1" 200 OK (APIServer pid=1457091) INFO 07 08 22:”

GITHUBJul 8

“Your current environment <details <summary The output of <code python collect env.py</code </summary </details 🐛 Describe the bug After vllm serve <any quantized model , the API server (front end) process leaves two <defunct python3 child processes that are never reaped and persist for the entire lifetime of the server. They are spawned at import time by humming kernels , as two fire and forget subprocess.Popen([...]) calls with no .wait() / communicate() : The import is triggered for any quant”

GITHUBJun 8

“Your current environment vLLM version: Main branch (built from source) OS: macOS (Darwin 25.4.0) Python version: 3.12.8 PyTorch version: 2.8.0 CUDA available: False Note: collect env.py failed to run locally because my environment is partially unbuilt, but this is a pure Python logic issue in the v1 core scheduler, so hardware/CUDA specifics are not applicable. 🐛 Describe the bug Bug description What happened? In the v1 engine, when using the default SchedulingPolicy.PRIORITY, preempted request”

GITHUBMay 7

“Your current environment <details <summary The output of <code python collect env.py</code </summary </details 🐛 Describe the bug In vLLM 0.19.0, when testing on Qwen2 VL 2B and Qwen2.5 VL 3B, kv cache dtype="fp8 e5m2" with the default calculate kv scales=False silently produces degenerate or hallucinated output. Failure rate scales with input pixel variance: uniform color images fail frequently, natural images mostly survive. OpenGVLab/InternVL3 1B under the same code path shows 0% failure, so”

GITHUBApr 30

“🚀 The feature, motivation and pitch vLLM has a multiprocess architecture with: API Server EngineCore [N] Workers As a result, clean error message logging is challenging, since the error in the API server that occurs will often not be the root cause error. An example of this is at startup time: The root cause is clear (the kernel does not support the model), but its very hard to see this We need a system for proper error and crash logging. WARNING: this is not a small project. Im not interested”

GITHUBJan 4

SOLUTION LANDSCAPE

Brought to you byTop Sectors

A Player feature.See how many ways this pain can be solved, who's already building, and where the gaps are.

Related panes

/ same corner of the problem

More ideas in AI & LLMs →