Claude c2bca49aa8 fix(serving_chat): shallow copy bug — [[]] * n and [parser] * n share references
When n>=2, all_previous_token_ids entries pointed to the SAME list,
so appending tokens for choice 0 corrupted choice 1's history.
Same for tool_parsers: all choices shared one stateful parser instance.

Changed to list comprehensions that create independent objects.

Found via CCCL result_policy.cuh read: distributed result delivery
requires isolated per-rank state — same principle applies to
per-choice token tracking in vLLM streaming.
2026-08-07 07:11:11 +00:00
2026-07-30 17:03:23 +08:00

project_6

Description
No description provided
Readme 427 MiB
Languages
C++ 41.8%
Cuda 31.6%
Python 22.2%
C 2.1%
CMake 1.1%
Other 1.1%