Skip to content

Revert "[Core] Performance: Use list[np.ndarray] instead of list[list…#28773

Merged
vllm-bot merged 1 commit intomainfrom
revert-breaking-pr
Nov 15, 2025
Merged

Revert "[Core] Performance: Use list[np.ndarray] instead of list[list…#28773
vllm-bot merged 1 commit intomainfrom
revert-breaking-pr

Conversation

@njhill
Copy link
Copy Markdown
Member

@njhill njhill commented Nov 15, 2025

…[int]] for output tokens for GC optimization (#26368)"

This reverts commit 186352b.

…[int]] for output tokens for GC optimization (#26368)"

This reverts commit 186352b.
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request reverts a previous commit that changed the data structure for output tokens from list[list[int]] to list[np.ndarray] for performance reasons. The changes in this PR consistently revert this change across the codebase, including test files and core logic. The modifications involve removing numpy imports, changing type hints back to list[list[int]], and adjusting the code to work with lists instead of numpy arrays (e.g., using len() instead of .shape[0], and .tolist() for conversions). The revert appears to be correct and complete.

@vllm-bot vllm-bot merged commit ac86bff into main Nov 15, 2025
10 of 13 checks passed
@vllm-bot vllm-bot deleted the revert-breaking-pr branch November 15, 2025 04:24
geodavic pushed a commit to geodavic/vllm that referenced this pull request Nov 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants