Skip to content

Commit

Permalink
[BugFix] add more is not None check in VllmConfig.__post_init__ (vl…
Browse files Browse the repository at this point in the history
…lm-project#12138)

Signed-off-by: Chen Zhang <[email protected]>
Signed-off-by: ice-tong <[email protected]>
  • Loading branch information
heheda12345 authored and ice-tong committed Jan 18, 2025
1 parent e1e6b7a commit f912f95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vllm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3174,7 +3174,8 @@ def __post_init__(self):

if self.compilation_config is None:
self.compilation_config = CompilationConfig()
if envs.VLLM_USE_V1 and not self.model_config.enforce_eager:
if envs.VLLM_USE_V1 and self.model_config is not None and \
not self.model_config.enforce_eager:
# NOTE(woosuk): Currently, we use inductor because the piecewise
# CUDA graphs do not work properly with the custom CUDA kernels.
# FIXME(woosuk): Disable inductor to reduce the compilation time
Expand Down

0 comments on commit f912f95

Please sign in to comment.