[mypy] Pass type checking for vllm/utils and vllm/v1/pool (#29666)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
@@ -68,11 +68,11 @@ class MemorySnapshot:
|
||||
timestamp: float = 0.0
|
||||
auto_measure: bool = True
|
||||
|
||||
def __post_init__(self):
|
||||
def __post_init__(self) -> None:
|
||||
if self.auto_measure:
|
||||
self.measure()
|
||||
|
||||
def measure(self):
|
||||
def measure(self) -> None:
|
||||
from vllm.platforms import current_platform
|
||||
|
||||
# we measure the torch peak memory usage via allocated_bytes,
|
||||
|
||||
Reference in New Issue
Block a user