[Mini-VLLM] Cut non-OpenAI surfaces, dead kernels, Mistral stack

- Remove Anthropic, Cohere, SageMaker, decisions, structured-decisions,
  rl, render-launcher and batch entrypoints; keep scale-out token routes
- Drop the Swagger static bundle and the /docs, /redoc routes
- Delete device-keyed tuning configs for fused_moe, quant utils, mamba
  select-state and helion; no sm86 entry ever existed for any of them
- Remove ten unused rope variants plus the fbgemm_fp8 and fp_quant
  quantizers and their config, metrics and loader plumbing
- Cut the CPU device build: csrc/cpu, cpu_extension.cmake, cpu
  requirements and the setup.py cpu target path
- Delete 29 environment variables nothing reads and 14 chat-template
  fallbacks for models this fork no longer registers
- Remove nine dead CUDA ops (deepseek_v4, kimi_k3, minimax, muse_spark,
  dsv3 gemm) with their kernels, bindings, wrappers and CMake entries
- Delete the connector test suites that targeted removed connectors
- Cut the Mistral tokenizer and parser stack, its tests, and the
  mistral_common and ijson dependency pins
- Restore the Qwen4Exp registry rows and nvidia/mtp.py that an earlier
  cut deleted while keeping the model tree

Co-authored-by: Hinata <hinata@idihore.id>
Signed-off-by: MOVZX <movzx@yahoo.com>
This commit is contained in:
2026-10-19 17:10:56 +07:00
co-authored by Hinata
parent bd70a61c20
commit 2066d3143f
1086 changed files with 122 additions and 291919 deletions
+1 -40
View File
@@ -12,11 +12,7 @@ from typing_extensions import TypeVar
from vllm import envs
from vllm.logger import init_logger
from vllm.transformers_utils.config import _maybe_register_hf_config, get_config
from vllm.transformers_utils.repo_utils import (
any_pattern_in_repo_files,
get_non_weight_snapshot_path,
is_mistral_model_repo,
)
from vllm.transformers_utils.repo_utils import get_non_weight_snapshot_path
from vllm.utils.import_utils import resolve_obj_by_qualname
from .hf import CachedHfTokenizer, HfTokenizer
@@ -42,16 +38,7 @@ _MODEL_TYPES_WITH_INCORRECT_TOKENIZER_CLASS: set[str] = {
}
_VLLM_TOKENIZERS = {
# ``cohere`` mode uses the standard cached HF tokenizer; only the
# renderer (template stage) is replaced with a melody-based one.
"cohere": ("hf", "CachedHfTokenizer"),
"hf": ("hf", "CachedHfTokenizer"),
"kimi_k3": ("hf", "CachedHfTokenizer"),
"mistral": ("mistral", "MistralTokenizer"),
# Inkling uses the plain HF tokenizer for token operations; the "inkling"
# mode exists to select the InklingRenderer, which renders chat to
# token ids natively (Inkling has no Jinja chat template).
"inkling": ("hf", "CachedHfTokenizer"),
}
@@ -135,33 +122,11 @@ def resolve_tokenizer_args(
else:
assert_never(runner_type)
# Try to use official Mistral tokenizer if possible
if (
tokenizer_mode == "auto"
and is_mistral_model_repo(
model_name_or_path=str(tokenizer_name),
revision=revision,
token=kwargs.get("token"),
)
and any_pattern_in_repo_files(
model_name_or_path=str(tokenizer_name),
allow_patterns=["tekken.json", "tokenizer.model.v*"],
revision=revision,
token=kwargs.get("token"),
)
):
tokenizer_mode = "mistral"
# Fallback to HF tokenizer
if tokenizer_mode == "auto":
tokenizer_mode = "hf"
if tokenizer_mode == "hf":
if kwargs.pop("mistral_format", False):
raise ValueError(
"mistral_format=True is not supported with tokenizer_mode='hf'"
)
kwargs["mistral_format"] = False
if kwargs.get("code_revision") in (None, revision):
tokenizer_name = get_non_weight_snapshot_path(
str(tokenizer_name),
@@ -170,10 +135,6 @@ def resolve_tokenizer_args(
token=kwargs.get("token"),
)
if tokenizer_mode == "mistral":
# MistralCommonBackend rejects HF-only keyword arguments, even None.
kwargs.pop("code_revision", None)
return tokenizer_mode, tokenizer_name, args, kwargs