[Bugfix] Keep JIT warmup under enforce-eager when fault tolerance is on (#58593)
Signed-off-by: Nick Hill <nickhill123@gmail.com> Co-authored-by: Kimi <noreply@moonshot.cn>
This commit is contained in:
@@ -264,6 +264,21 @@ def test_enforce_eager(vllm_runner, monkeypatch):
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.parametrize("enable_fault_tolerance", [False, True])
|
||||
def test_enforce_eager_jit_warmup(enable_fault_tolerance):
|
||||
"""Enforce-eager disables JIT warmup unless fault tolerance is on.
|
||||
|
||||
FT fault detection runs against deadlines that in-inference Triton
|
||||
compilation latency spikes can blow past, so warmup stays enabled.
|
||||
"""
|
||||
config = VllmConfig(
|
||||
model_config=ModelConfig(model="facebook/opt-125m", enforce_eager=True),
|
||||
parallel_config=ParallelConfig(enable_fault_tolerance=enable_fault_tolerance),
|
||||
)
|
||||
assert config.compilation_config.mode == CompilationMode.NONE
|
||||
assert config.kernel_config.enable_jit_warmup == enable_fault_tolerance
|
||||
|
||||
|
||||
@pytest.mark.forked
|
||||
def test_torch_compile_disable(vllm_runner, monkeypatch):
|
||||
monkeypatch.setenv("VLLM_ENABLE_V1_MULTIPROCESSING", "0")
|
||||
|
||||
Reference in New Issue
Block a user