[Feature] Avoid flashinfer autotune each time when vllm source change (#54794)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
+7
-3
@@ -438,7 +438,7 @@ class VllmConfig:
|
||||
remaining requests are aborted once the timeout is reached.
|
||||
"""
|
||||
|
||||
def compute_hash(self) -> str:
|
||||
def compute_hash(self, include_version: bool = True) -> str:
|
||||
"""
|
||||
WARNING: Whenever a new field is added to this config,
|
||||
ensure that it is included in the factors list if
|
||||
@@ -449,14 +449,18 @@ class VllmConfig:
|
||||
graph from input ids/embeddings to the final hidden states,
|
||||
excluding anything before input ids/embeddings and after
|
||||
the final hidden states.
|
||||
|
||||
Args:
|
||||
include_version: Include the vLLM version in the hash.
|
||||
"""
|
||||
factors: list[Any] = []
|
||||
|
||||
# summarize vllm config
|
||||
vllm_factors: list[Any] = []
|
||||
from vllm import __version__
|
||||
if include_version:
|
||||
from vllm import __version__
|
||||
|
||||
vllm_factors.append(__version__)
|
||||
vllm_factors.append(__version__)
|
||||
if self.model_config:
|
||||
vllm_factors.append(self.model_config.compute_hash())
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user