[CI] Add Kimi-K3-pruned75-DSpark-TP4 gsm8k eval (#54817)

Signed-off-by: mgoin <mgoin64@gmail.com>
Co-authored-by: OpenAI Codex <noreply@openai.com>
This commit is contained in:
Misha Goin
2026-09-02 10:18:38 -04:00
committed by GitHub
co-authored by OpenAI Codex
parent ba6c60e98f
commit 872084fb77
5 changed files with 64 additions and 30 deletions
+3 -1
View File
@@ -109,9 +109,11 @@ steps:
num_devices: 4 num_devices: 4
optional: true optional: true
source_file_dependencies: source_file_dependencies:
- tests/evals/gsm8k/configs/DeepSeek-V4-Flash-DSpark-confidence-TP4.yaml - tests/evals/gsm8k/configs/DeepSeek-V4-Flash-DSpark-confidence-TEP4.yaml
- tests/evals/gsm8k/configs/Kimi-K3-pruned75-DSpark-TP4.yaml
- tests/evals/gsm8k/configs/models-spec-decode.txt - tests/evals/gsm8k/configs/models-spec-decode.txt
- vllm/models/deepseek_v4/ - vllm/models/deepseek_v4/
- vllm/models/kimi_k3/
- vllm/model_executor/models/qwen3_dspark.py - vllm/model_executor/models/qwen3_dspark.py
- vllm/v1/spec_decode/metrics.py - vllm/v1/spec_decode/metrics.py
- vllm/v1/worker/gpu/spec_decode/adaptive_verification.py - vllm/v1/worker/gpu/spec_decode/adaptive_verification.py
@@ -0,0 +1,26 @@
model_name: "mgoin/Kimi-K3-pruned75"
accuracy_threshold: 0.33
min_acceptance_length: 4.8
num_questions: 1319
num_fewshot: 5
startup_max_wait_seconds: 1800
server_args: >-
--trust-remote-code
--gpu-memory-utilization 0.90
--tensor-parallel-size 4
--load-format fastsafetensors
--no-enable-flashinfer-autotune
--max-model-len 1048576
--max-num-batched-tokens 16384
--max-num-seqs 128
--kv-cache-dtype fp8
--attention-config '{"use_prefill_query_quantization":true,"mla_prefill_backend":"flashinfer"}'
--enable-prefix-caching
--enable-auto-tool-choice
--tool-call-parser kimi_k3
--reasoning-parser kimi_k3
--speculative-config '{"method":"dspark",
"model":"RedHatAI/Kimi-K3-speculator.dspark",
"attention_backend":"FLASH_ATTN","num_speculative_tokens":8,
"draft_sample_method":"probabilistic",
"rejection_sample_method":"block"}'
@@ -1 +1,2 @@
DeepSeek-V4-Flash-DSpark-confidence-TP4.yaml DeepSeek-V4-Flash-DSpark-confidence-TEP4.yaml
Kimi-K3-pruned75-DSpark-TP4.yaml
@@ -7,6 +7,7 @@ from typing import TYPE_CHECKING, ClassVar
import torch import torch
import vllm.envs as envs import vllm.envs as envs
from vllm.utils.gpu_sync_debug import gpu_sync_allowed
from vllm.v1.attention.backends.mla.prefill.base import ( from vllm.v1.attention.backends.mla.prefill.base import (
MLADimensions, MLADimensions,
MLAPrefillBackend, MLAPrefillBackend,
@@ -161,39 +162,43 @@ class FlashInferPrefillBackend(MLAPrefillBackend):
kv_indptr = qo_indptr.clone() kv_indptr = qo_indptr.clone()
assert self._prefill_main is not None assert self._prefill_main is not None
self._prefill_main.plan( # FlashInfer's plan() currently copies GPU indptrs to the CPU.
qo_indptr=qo_indptr, # This will be fixed by https://github.com/vllm-project/vllm/pull/52657.
kv_indptr=kv_indptr, with gpu_sync_allowed():
num_qo_heads=num_qo_heads, self._prefill_main.plan(
num_kv_heads=num_kv_heads, qo_indptr=qo_indptr,
head_dim_qk=head_dim_qk, kv_indptr=kv_indptr,
head_dim_vo=head_dim_vo, num_qo_heads=num_qo_heads,
causal=True, num_kv_heads=num_kv_heads,
sm_scale=global_hyperparameters.sm_scale, head_dim_qk=head_dim_qk,
window_left=global_hyperparameters.window_left, head_dim_vo=head_dim_vo,
logits_soft_cap=global_hyperparameters.logits_soft_cap, causal=True,
q_data_type=prefill_metadata.q_data_type, sm_scale=global_hyperparameters.sm_scale,
o_data_type=prefill_metadata.output_dtype, window_left=global_hyperparameters.window_left,
) logits_soft_cap=global_hyperparameters.logits_soft_cap,
q_data_type=prefill_metadata.q_data_type,
o_data_type=prefill_metadata.output_dtype,
)
if has_context: if has_context:
chunked_context = prefill_metadata.chunked_context chunked_context = prefill_metadata.chunked_context
assert chunked_context is not None assert chunked_context is not None
for chunk in chunked_context.chunks: for chunk in chunked_context.chunks:
self._prefill_chunks[chunk.index].plan( with gpu_sync_allowed():
qo_indptr=chunk.query_start_loc, self._prefill_chunks[chunk.index].plan(
kv_indptr=chunk.cu_seq_lens, qo_indptr=chunk.query_start_loc,
num_qo_heads=num_qo_heads, kv_indptr=chunk.cu_seq_lens,
num_kv_heads=num_kv_heads, num_qo_heads=num_qo_heads,
head_dim_qk=head_dim_qk, num_kv_heads=num_kv_heads,
head_dim_vo=head_dim_vo, head_dim_qk=head_dim_qk,
causal=False, head_dim_vo=head_dim_vo,
sm_scale=global_hyperparameters.sm_scale, causal=False,
window_left=global_hyperparameters.window_left, sm_scale=global_hyperparameters.sm_scale,
logits_soft_cap=global_hyperparameters.logits_soft_cap, window_left=global_hyperparameters.window_left,
q_data_type=prefill_metadata.q_data_type, logits_soft_cap=global_hyperparameters.logits_soft_cap,
o_data_type=prefill_metadata.output_dtype, q_data_type=prefill_metadata.q_data_type,
) o_data_type=prefill_metadata.output_dtype,
)
def supports_out(self) -> bool: def supports_out(self) -> bool:
# Planned with head_dim_vo == v_head_dim, so the output is unpadded. # Planned with head_dim_vo == v_head_dim, so the output is unpadded.