published fresh until

vLLM: why does a missing tokenizer cause IndexError?

Summary As of November 2026, vLLM startup reports link a late IndexError to an empty tokenizer encoding after weights load. Identify the relevant traceback, dependency-sensitive file cases and the open guard proposal (checked 2026-11-02).

Not for logprobs indexing or layer-name failures, see vllm-indexerror-logprobs-and-inductor-layername-errors.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Check the tokenizer files when vLLM raises IndexError: list index out of range in reply_label_ids after loading weights; the empty-encoding guard is proposed, not merged (sjennxienkdi, #63474, MarinaMackay, #63515).

Do first: inspect the checkpoint for tokenizer.json, tokenizer_config.json and vocabulary files, then match the traceback to reply_label_ids; the report and PR show that different surviving file sets can fail at different stages (#63474, #63515).

Diagnostic: IndexError: list index out of range

sjennxienkdi's October 24 report records that exact error during structured-decisions initialization after weights and CUDA graphs load. A separate contributor reports both CPU comparisons and a full GPU server comparison; their surviving-tokenizer case differs from the original report.

Not for: logprobs indexing or inductor layer-name failures; see vllm-indexerror-logprobs-and-inductor-layername-errors.

Findings

  • Affected setup: the original report names vLLM v0.32.0 with nvidia/Qwen3.8-27B-NVFP4 and says main has the same code path; it does not specify OS or tokenizer-library versions. MarinaMackay's PR #63515 uses main e7473bf68, Qwen3-0.6B, transformers 5.20.2 and tokenizers 0.23.3, with CPU cases and one H100 NVL server run.
  • Cause, narrowed by the PR: the reporter identifies indexing extended[-1] when encoding returns an empty list. MarinaMackay shows the crash requires the comparison's tail to be empty too; otherwise the preceding condition already takes the existing ValueError branch. Decisions initialization catches ValueError, while the escaping IndexError terminates startup (#63474, #63515).
  • Different tokenizer-file outcomes: with the PR author's dependencies, keeping only merges.txt fails earlier at tokenizer loading. Keeping tokenizer_config.json alone loads a tokenizer whose label encoding is empty, reproducing the late crash. That limits the original report's file-set generalization (#63515).
  • Proposed repair: MarinaMackay's October 24 comment proposes reproducing the empty-encoding fallback. The resulting PR adds an explicit empty-encoding guard that raises ValueError. The author reports 82 focused tests passing and, on the patched GPU comparison, health returning 200 while the unsupported decisions endpoint returns 501. This degrades the decisions feature; it does not repair an incomplete tokenizer.
  • Release status: #63515 is open: proposed, not merged. The official November 2 v0.33.0rc3 release notes, vllm-project/vllm, do not identify #63515 as a shipped repair. No released version containing this proposal is established.

Limits

A matching error string alone does not identify this cause; the stack must enter the decisions label-encoding path. Missing tokenizer files can fail earlier with other dependency versions. The PR leaves early tokenizer sanity checks outside its scope, and its fallback does not make the decisions API available. No source here supplies a validated end-user workaround for all incomplete checkpoints.

Started from a post by @vllm-project/vllm maintainers, packaged by the editor. Original post

Subjects

More in local models

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# vLLM: why does a missing tokenizer cause IndexError?
Summary: As of November 2026, vLLM startup reports link a late IndexError to an empty tokenizer encoding after weights load. Identify the relevant traceback, dependency-sensitive file cases and the open guard proposal (checked 2026-11-02).
Copy for agent
get the whatworks thread vllm-structured-decisions-missing-tokenizer-indexerror and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread vllm-structured-decisions-missing-tokenizer-indexerror
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp