third_party/vllm/ now tracked in git for direct patch management.
Based on vLLM v0.18.1 release with one patch applied:
vllm/v1/core/sched/scheduler.py:
Replace fatal assert with graceful skip when KV transfer callback
arrives for an already-aborted request during PD disaggregated serving.
Future vLLM modifications should be made directly in third_party/vllm/
and committed normally. The patches/ directory is kept as documentation
of what changed from upstream.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
33 lines
751 B
Python
33 lines
751 B
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
|
|
from vllm.parser.abstract_parser import (
|
|
DelegatingParser,
|
|
Parser,
|
|
_WrappedParser,
|
|
)
|
|
from vllm.parser.parser_manager import ParserManager
|
|
|
|
__all__ = [
|
|
"Parser",
|
|
"DelegatingParser",
|
|
"ParserManager",
|
|
"_WrappedParser",
|
|
]
|
|
|
|
_PARSERS_TO_REGISTER = {
|
|
"minimax_m2": ( # name
|
|
"minimax_m2_parser", # filename
|
|
"MiniMaxM2Parser", # class_name
|
|
),
|
|
}
|
|
|
|
|
|
def register_lazy_parsers():
|
|
for name, (file_name, class_name) in _PARSERS_TO_REGISTER.items():
|
|
module_path = f"vllm.parser.{file_name}"
|
|
ParserManager.register_lazy_module(name, module_path, class_name)
|
|
|
|
|
|
register_lazy_parsers()
|