[Mini-VLLM] Remove LoRA, plugins, speech-to-text and scale-out surfaces

Production runs one static model behind the OpenAI-compatible API. Every
adapter path and non-OpenAI HTTP surface is unreachable there.

- Delete the LoRA stack: vllm/lora, LoRARequest on the engine wire, the
  scheduler, worker, cudagraph and MoE plumbing, LoRA metrics, the lora
  CLI group, and the LoRA tests.
- Drop the plugin loader in vllm/plugins. Platform resolution is now
  CUDA-only and the general/stat-logger plugin hooks are gone.
- Delete the speech-to-text and realtime entrypoints, the scale-out
  render routes, and vllm/config/speech_to_text.py. GenerationTask is
  generate-only.
- Cut DecodeBenchConnector and the disagg-prefill doc and image. The
  Multi, Offloading and Example connectors stay; production uses the
  CPU KV offload tier.
- Delete the ROCm-only fused KDA chunk kernel (2346 lines) with its CMake
  arch gate, declarations and op registrations. The CUDA build never
  defined the guard and no Python caller existed.
- Delete the orphan Mistral and Pixtral chat fixtures and examples/.
- Fix _check_model: removing the LoRA early return made every request
  fail with "The model ... does not exist. Valid aliases: ...".

Verified on an RTX 3090: import sweep reports 1242 modules with 7 known
optional-dependency failures; a live server answers chat, completions,
responses, tokenize and detokenize with zero log errors and 404 for the
removed surfaces; collection yields 8558 tests with the 3 pre-existing
errors; ruff adds no new finding; the incremental _C build succeeds.

Co-authored-by: Hinata <hinata@idihore.id>
Signed-off-by: MOVZX <movzx@yahoo.com>
This commit is contained in:
2026-10-19 21:06:19 +07:00
co-authored by Hinata
parent 5f3c7bd8ab
commit 5aa2ac64f8
269 changed files with 417 additions and 29932 deletions
-11
View File
@@ -49,7 +49,6 @@ def sync_cudagraph_and_dp_padding(
dp_size: int,
dp_rank: int,
max_query_len: int | None = None,
num_active_loras: int = 0,
parallel_config: ParallelConfig | None = None,
allow_ubatching: bool = False,
uniform_decode: bool = False,
@@ -121,7 +120,6 @@ def sync_cudagraph_and_dp_padding(
num_reqs,
ubatch_num_tokens,
synced_uniform_token_count,
num_active_loras=num_active_loras,
num_ubatches=num_ubatches,
)
if 2 * int(num_tokens_across_dp.min()) < ubatch_desc.num_tokens:
@@ -159,7 +157,6 @@ def sync_cudagraph_and_dp_padding(
cg_mode=CUDAGraphMode.NONE,
num_tokens=num_tokens,
num_reqs=num_reqs,
num_active_loras=desired_batch_desc.num_active_loras,
),
DPSyncState(
num_tokens_across_dp=num_tokens_across_dp,
@@ -183,12 +180,10 @@ def sync_cudagraph_and_dp_padding(
# Dispatch for the final synced values, use num_reqs instead of synced_num_reqs
# so we don't perform request padding for PIECEWISE graphs.
# num_active_loras is per-rank and doesn't need cross-rank agreement.
synced_desc = cudagraph_manager.dispatch(
num_reqs,
synced_num_tokens,
synced_uniform_token_count,
num_active_loras=num_active_loras,
max_query_len=synced_max_query_len,
)
@@ -217,7 +212,6 @@ def dispatch_cg_and_sync_dp(
dp_rank: int,
max_query_len: int | None = None,
need_eager: bool = False,
num_active_loras: int = 0,
parallel_config: ParallelConfig | None = None,
allow_ubatching: bool = False,
uniform_decode: bool = False,
@@ -244,8 +238,6 @@ def dispatch_cg_and_sync_dp(
varlen decode graphs. None, as for a batch with a prefill, keeps
the batch out of graphs that constrain it.
need_eager: Force `CUDAGraphMode.NONE` instead of dispatching.
num_active_loras: Active LoRA count for this rank. Does not need
cross-rank agreement; it never changes a bucket's token count.
parallel_config: Only needed to decide whether to microbatch, so
callers that never do (`allow_ubatching=False`) can leave it out.
allow_ubatching: Whether this rank's batch may be split into
@@ -270,7 +262,6 @@ def dispatch_cg_and_sync_dp(
cg_mode=CUDAGraphMode.NONE,
num_tokens=num_tokens,
num_reqs=num_reqs,
num_active_loras=num_active_loras,
)
else:
assert cudagraph_manager is not None, (
@@ -281,7 +272,6 @@ def dispatch_cg_and_sync_dp(
num_reqs,
num_tokens,
dp_sync_state.uniform_token_count if dp_sync_state else uniform_token_count,
num_active_loras=num_active_loras,
max_query_len=max_query_len,
)
@@ -316,7 +306,6 @@ def dispatch_cg_and_sync_dp(
dp_size,
dp_rank,
max_query_len=max_query_len,
num_active_loras=num_active_loras,
parallel_config=parallel_config,
allow_ubatching=allow_ubatching,
uniform_decode=uniform_decode,