config, envs: pass use_replayssm to the breakable-graph fallback; register VLLM_FAIL_ON_PROFILING_KV_LEAK
CompilationConfig.resolve_cudagraph_mode_and_sizes read self.cache_config.use_replayssm, but CompilationConfig has no cache_config, so with VLLM_USE_BREAKABLE_CUDAGRAPH=1 the fallback branch raised AttributeError. Both model runners now pass cache_config.use_replayssm as an argument. The shipped launchers set VLLM_USE_BREAKABLE_CUDAGRAPH=0 and never reach this branch. VLLM_FAIL_ON_PROFILING_KV_LEAK was read with a raw os.getenv, so setting it printed the unknown-variable warning. It is now registered in vllm.envs with the same spellings (unset fails the boot; 0, false or no warn instead), listed as an ignored compile factor and read through vllm.envs. Tests cover both. Co-Authored-By: Hinata <hinata@idihore.id> Signed-off-by: MOVZX <movzx@yahoo.com>
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
import contextlib
|
||||
import gc
|
||||
import itertools
|
||||
import os
|
||||
from collections import defaultdict
|
||||
from collections.abc import Callable, Iterable, Iterator
|
||||
from contextlib import ExitStack
|
||||
@@ -15,6 +14,7 @@ import torch
|
||||
import torch.nn as nn
|
||||
from tqdm import tqdm
|
||||
|
||||
import vllm.envs as envs
|
||||
from vllm.compilation.breakable_cudagraph import (
|
||||
BreakableCUDAGraphWrapper,
|
||||
is_breakable_cudagraph_enabled,
|
||||
@@ -1215,8 +1215,6 @@ def _teardown_profiling_state(runner: "GPUModelRunner") -> None:
|
||||
# Fail boot by default: this memory is absent from the real KV
|
||||
# pool and can invalidate capacity planning. Operators may opt out
|
||||
# temporarily while diagnosing with VLLM_FAIL_ON_PROFILING_KV_LEAK=0.
|
||||
if os.getenv("VLLM_FAIL_ON_PROFILING_KV_LEAK", "1").lower() not in (
|
||||
"0", "false", "no"
|
||||
):
|
||||
if envs.VLLM_FAIL_ON_PROFILING_KV_LEAK:
|
||||
raise RuntimeError(message)
|
||||
logger.warning(message)
|
||||
|
||||
Reference in New Issue
Block a user