mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-08 18:04:39 +08:00
[Benchmark] Fix terminal colors in benchmark_serving_multi_turn (python 3.12) (#22730)
Signed-off-by: daniels <daniels@pliops.com>
This commit is contained in:
parent
3d9d40efde
commit
e5d3d63c42
@ -4,7 +4,7 @@ import logging
|
|||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
|
|
||||||
class Color(str, Enum):
|
class Color(Enum):
|
||||||
RED = "\033[91m"
|
RED = "\033[91m"
|
||||||
GREEN = "\033[92m"
|
GREEN = "\033[92m"
|
||||||
BLUE = "\033[94m"
|
BLUE = "\033[94m"
|
||||||
@ -13,6 +13,9 @@ class Color(str, Enum):
|
|||||||
YELLOW = "\033[93m"
|
YELLOW = "\033[93m"
|
||||||
RESET = "\033[0m"
|
RESET = "\033[0m"
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return self.value
|
||||||
|
|
||||||
|
|
||||||
TEXT_SEPARATOR = "-" * 100
|
TEXT_SEPARATOR = "-" * 100
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user