[Misc] Make LayerBlockType a Literal instead of Enum (#27658)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2025-10-28 16:23:35 +00:00
committed by GitHub
parent a8c02fb5bf
commit f5710ef02a
3 changed files with 11 additions and 24 deletions
-6
View File
@@ -1,7 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
import enum
import inspect
import uuid
import warnings
@@ -67,11 +66,6 @@ STR_INVALID_VAL: str = "INVALID"
T = TypeVar("T")
class LayerBlockType(enum.Enum):
attention = "attention"
mamba = "mamba"
def random_uuid() -> str:
return str(uuid.uuid4().hex)