Repository navigation
[Misc] mv chat_utils.py to renderers. - #60522
Merged
Merged
Conversation
Contributor
|
Documentation preview: https://vllm--60522.org.readthedocs.build/en/60522/ |
Contributor
|
This pull request has merge conflicts that must be resolved before it can be |
6 tasks done
Contributor
|
Documentation preview: https://vllm--60522.org.readthedocs.build/en/60522/ |
noooop
marked this pull request as ready for review
October 10, 2026 03:50
noooop
requested review from
DarkLight1337,
patrickvonplaten and
ywang96
as code owners
October 10, 2026 03:50
Contributor
Author
|
/ci run |
|
✅ Triggered Buildkite CI #93969 for commit |
DarkLight1337
approved these changes
Oct 10, 2026
DarkLight1337
left a comment
Member
There was a problem hiding this comment.
As discussed offline please split up chat_utils.py in the next PR
DarkLight1337
enabled auto-merge (squash)
October 10, 2026 04:26
Signed-off-by: wang.yuqi <yuqi.wang@daocloud.io>
Contributor
|
Hi @noooop, the pre-commit checks have failed. Please run: uv pip install pre-commit>=4.5.1
pre-commit install
pre-commit run --all-filesThen, commit the changes and push to your branch. For future commits, |
Contributor
Author
|
/ci run |
|
✅ Triggered Buildkite CI #93987 for commit |
6 tasks
pawel-olejniczak
added a commit
to pawel-olejniczak/vllm-gaudi
that referenced
this pull request
Oct 14, 2026
… chat_utils helpers from vllm.renderers.chat_utils Root cause: vllm#60522 (c1692c85f1) moved vllm/entrypoints/chat_utils.py to vllm/renderers/chat_utils.py; two vllm-gaudi imports still use the old path Upstream: vllm-project/vllm#60522 Fix: switch load_chat_template and make_tool_call_id imports to vllm.renderers.chat_utils (both defined at pinned sha) Signed-off-by: Paweł Olejniczak <pawelx.olejniczak@intel.com>
pawel-olejniczak
added a commit
to pawel-olejniczak/vllm-gaudi
that referenced
this pull request
Oct 14, 2026
… chat_utils helpers from vllm.renderers.chat_utils Root cause: vllm#60522 (c1692c85f1) moved vllm/entrypoints/chat_utils.py to vllm/renderers/chat_utils.py; two vllm-gaudi imports still use the old path Upstream: vllm-project/vllm#60522 Fix: switch load_chat_template and make_tool_call_id imports to vllm.renderers.chat_utils (both defined at pinned sha) Signed-off-by: Paweł Olejniczak <pawelx.olejniczak@intel.com>
pawel-olejniczak
added a commit
to pawel-olejniczak/vllm-gaudi
that referenced
this pull request
Oct 15, 2026
… chat_utils helpers from vllm.renderers.chat_utils Root cause: vllm#60522 (c1692c85f1) moved vllm/entrypoints/chat_utils.py to vllm/renderers/chat_utils.py; two vllm-gaudi imports still use the old path Upstream: vllm-project/vllm#60522 Fix: switch load_chat_template and make_tool_call_id imports to vllm.renderers.chat_utils (both defined at pinned sha) Signed-off-by: Paweł Olejniczak <pawelx.olejniczak@intel.com>
pawel-olejniczak
added a commit
to pawel-olejniczak/vllm-gaudi
that referenced
this pull request
Oct 15, 2026
… chat_utils helpers from vllm.renderers.chat_utils Root cause: vllm#60522 (c1692c85f1) moved vllm/entrypoints/chat_utils.py to vllm/renderers/chat_utils.py; two vllm-gaudi imports still use the old path Upstream: vllm-project/vllm#60522 Fix: switch load_chat_template and make_tool_call_id imports to vllm.renderers.chat_utils (both defined at pinned sha) Signed-off-by: Paweł Olejniczak <pawelx.olejniczak@intel.com>
pawel-olejniczak
added a commit
to pawel-olejniczak/vllm-gaudi
that referenced
this pull request
Oct 16, 2026
… chat_utils helpers from vllm.renderers.chat_utils Root cause: vllm#60522 (c1692c85f1) moved vllm/entrypoints/chat_utils.py to vllm/renderers/chat_utils.py; two vllm-gaudi imports still use the old path Upstream: vllm-project/vllm#60522 Fix: switch load_chat_template and make_tool_call_id imports to vllm.renderers.chat_utils (both defined at pinned sha) Signed-off-by: Paweł Olejniczak <pawelx.olejniczak@intel.com>
pawel-olejniczak
added a commit
to pawel-olejniczak/vllm-gaudi
that referenced
this pull request
Oct 16, 2026
… chat_utils helpers from vllm.renderers.chat_utils Root cause: vllm#60522 (c1692c85f1) moved vllm/entrypoints/chat_utils.py to vllm/renderers/chat_utils.py; two vllm-gaudi imports still use the old path Upstream: vllm-project/vllm#60522 Fix: switch load_chat_template and make_tool_call_id imports to vllm.renderers.chat_utils (both defined at pinned sha) Signed-off-by: Paweł Olejniczak <pawelx.olejniczak@intel.com>
iboiko-habana
pushed a commit
to vllm-project/vllm-gaudi
that referenced
this pull request
Oct 19, 2026
… chat_utils helpers, Drop HPU SeedOss (+5 more) (#1880) This PR consolidates 7 hourly-CI fixes against vllm@`8d7b93fec2eb72ce01f2217472ac1f51b9bce600`. ## Bug 1: Import chat_utils helpers from vllm.renderers.chat_utils - **State machine id**: missing_module_vllm_entrypoints_chat_utils - **Commit**: 6607e1b ### Root cause vllm#60522 (c1692c85f1) moved vllm/entrypoints/chat_utils.py to vllm/renderers/chat_utils.py; two vllm-gaudi imports still use the old path ### Culprit Probable culprit: [PR #60522](vllm-project/vllm#60522) - pinned by symbol archaeology, bisect not run. Candidate range: [compare](vllm-project/vllm@ac7f3e1...8d7b93f). ### Fix switch load_chat_template and make_tool_call_id imports to vllm.renderers.chat_utils (both defined at pinned sha) ## Bug 2: Drop HPU SeedOss override and kernel_block_sizes removed upstream - **State machine id**: missing_module_vllm_model_executor_models_seed_oss - **Commit**: d4aece7 ### Root cause vllm#59701 (6e4efafc6e) deleted vllm.model_executor.models.seed_oss, which vllm_gaudi.models.seed_oss subclassed, so register_model() fails; with that fixed, engine init fails because vllm#57169 (02e55d2af3) removed kernel_block_sizes and the KV-to-kernel block split from MultiGroupBlockTable ### Culprit Probable culprit: [PR #59701](vllm-project/vllm#59701) - pinned by symbol archaeology, bisect not run. Candidate range: [compare](vllm-project/vllm@ac7f3e1...8d7b93f). ### Fix delete pass-through HpuSeedOssForCausalLM and its registration (upstream serves SeedOss via the Transformers backend); stop passing kernel_block_sizes, and raise NotImplementedError when a group's kernel block size differs from its KV block size, the split upstream no longer performs ## Bug 3: Stub get_load_source in offloading connector test mock - **State machine id**: hpu_unit_tests - **Commit**: 56ef9c0 ### Root cause vllm#56318 wraps manager.get_load_source() in CacheHitSource(); our MagicMock manager returns a Mock, so ValueError ### Culprit Probable culprit: [PR #56318](vllm-project/vllm#56318) - pinned by symbol archaeology, bisect not run. ### Fix MockOffloadingSpec manager returns CacheHitSource.EXTERNAL_UNSPECIFIED from get_load_source, mirroring upstream utils.py ## Bug 4: Use vLLM LayerNorm in the regional compilation unit test - **State machine id**: hpu_unit_tests_2 - **Commit**: aa162a6 ### Root cause vllm#57172 replaced torch nn.LayerNorm in OPT with vllm's CustomOp LayerNorm, so the test's torch LayerNorm filter matches nothing ### Culprit Regression introduced by [PR #57172](vllm-project/vllm#57172). ### Fix import LayerNorm from vllm.model_executor.layers.layernorm, which OPT now builds its norms from ## Bug 5: Split KV blocks into kernel blocks in an HPU block table - **State machine id**: multigroup_block_table_kernel_block_sizes_removed - **Commit**: 31c5fa1 ### Root cause vllm#57169 dropped kernel_block_sizes and virtual block splitting from MultiGroupBlockTable/BlockTable; HPU InputBatch still passes it ### Culprit Probable culprit: [PR #57169](vllm-project/vllm#57169) - pinned by symbol archaeology, bisect not run. ### Fix add HPUMultiGroupBlockTable: tables built at kernel block size, manager block ids expanded to kernel ids on append/add_row, replacing the NotImplementedError split guard ## Bug 6: Accept list block ids in the HPU block table - **State machine id**: pre_commit - **Commit**: 8abe42f ### Root cause HPUMultiGroupBlockTable typed add_row/append_row block_ids as tuple[list[int], ...] like upstream, but HPU InputBatch passes the request's list[list[int]], which mypy rejects now that the subclass is local ### Culprit Upstream culprit: not identified - no candidate range recovered (see investigation notes). ### Fix type block_ids as Sequence[list[int]] in add_row, append_row and _to_kernel_blocks; runtime is unchanged ## Bug 7: Accept kv_cache_spec in HPU get_supported_kernel_block_sizes - **State machine id**: hpu_pd_tests - **Commit**: c78bc81 ### Root cause vllm#53175 added kv_cache_spec to get_supported_kernel_block_sizes; attention.py passes it positionally, HPU overrides take none ### Culprit Probable culprit: [PR #53175](vllm-project/vllm#53175) - pinned by symbol archaeology, bisect not run. ### Fix add optional kv_cache_spec=None parameter to both HPU backend overrides, matching the upstream base signature --------- Signed-off-by: Paweł Olejniczak <pawelx.olejniczak@intel.com>
michael-gpu
pushed a commit
to practical-inference/vllm-ampere-extended
that referenced
this pull request
Oct 20, 2026
Signed-off-by: wang.yuqi <yuqi.wang@daocloud.io>
3 of 5 tasks
cloudnathan5
added a commit
to cloudnathan5/dynamo
that referenced
this pull request
Nov 2, 2026
vLLM 0.32 moved chat_utils from vllm.entrypoints to vllm.renderers (vllm-project/vllm#60522) with no shim, so --custom-jinja-template on a chat-style embedding request raised ImportError. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cloudnathan5 <83739056+cloudnathan5@users.noreply.github.com>
triangleXIV
pushed a commit
to tokmo-infra/vllm
that referenced
this pull request
Nov 9, 2026
Conflict resolutions and follow-ups for Kimi K3.1: - vllm-project#57169 moved kernel block splitting into AttentionGroup and removed storage_block_size. MergedMLAIndexerSpec drops storage_block_size; FLASHMLA_SPARSE and ROCM_AITER_MLA_SPARSE now report the merged spec's 64-token unit as their kernel block size and align block strides to whole padded units (MultipleOf(64)). MRv2 binds the kernel-block views before splitting the merged MLA / indexer sections. - MergedMLAIndexerSpec.merge carries the new MLAAttentionSpec fields (block_stride_alignment, dcp_sharded, max_tp_shards, topk_buffer_width, cache_role, is_index_group_leader). - Hybrid block size: keep the merged-unit anchor and apply the new backend_block_alignment (lcm with 64) in place of the removed indexer alignment helper. - vllm-project#61455 replaced the trailing-MTP heuristic with draft-layer tags, so the kimi_k31 entry there is dropped. - Mooncake: the hetero-TP fields (kernel block size, kernel blocks per logical block, prefix caching) are sent on every pull, including the layout-less pulls added by vllm-project#59825. - chat_utils moved to vllm/renderers/chat_utils (vllm-project#60522): kimi_k31 added to the tool-call id model types there. - Kimi K3 model: drop the removed DeepSeek-V4 MegaMoE imports and process_weights_after_loading (vllm-project#61538); keep adapt_drafter. - ROCm sparse MLA: init_topk_indices_buffer moved into the base class. - rust multimodal models table: keep upstream's Step3-VL spec and the kimi_k31 alias. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
mv chat_utils.py to renderers.
After this PR, vllm/entrypoints is nice and clean — let's keep it.
Claims
Validation
Details
Pull Request Checklist
I used vLLM's
/pr-checklistskill. (Mandatory for agents, optional for humans).AI assistance was used during the creation of this PR.
Design Fit: Minimizes impact on core components, reuses existing functionality, and justifies added complexity.
Testing and Validation: Validates the change and ensures any added tests are meaningful and reliable, with CI coverage or documented CI resource constraints and validation performed outside CI.
Code Quality and Style: Keeps code and comments clear and concise, and updates relevant documentation and examples.
Pull Request Contents: Includes a brief summary and relevant links, supports claims with evidence, explains root causes and implementation trade-offs, and follows the contributing guide.