@@ -1,4 +1,4 @@
-from abc import ABC, abstractmethod, abstractproperty
+from abc import ABC, abstractmethod
from contextlib import contextmanager
from typing import Any, Dict, List, Literal, Optional, Set, Type, Union
@@ -40,7 +40,8 @@ class AbstractWorkerLoRAManager(ABC):
yield
self._cached_dummy_lora = False
- @abstractproperty
+ @property
+ @abstractmethod
def is_enabled(self) -> bool:
...
@@ -1,5 +1,5 @@
import enum
from typing import OrderedDict
from aphrodite.common.block import PhysicalTokenBlock
@@ -44,7 +44,8 @@ class Evictor(ABC):
"""
pass
def num_blocks(self) -> int:
from typing import OrderedDict, Tuple
@@ -46,7 +46,8 @@ class Evictor(ABC):
"""Remove a given block id from the cache."""