[bugfix] Make --enable-hierarchical-cache and --disable-radix-cache mutually exclusive (#9452)

Signed-off-by: Xuchun Shang <xuchun.shang@linux.alibaba.com>
This commit is contained in:
Xuchun Shang
2025-08-22 17:49:52 +08:00
committed by GitHub
parent 9c0c1e30b2
commit cebf45994b

View File

@@ -715,6 +715,12 @@ class ServerArgs:
"1" if self.disable_outlines_disk_cache else "0"
)
if self.enable_hierarchical_cache and self.disable_radix_cache:
raise ValueError(
"The arguments enable-hierarchical-cache and disable-radix-cache are mutually exclusive "
"and cannot be used at the same time. Please use only one of them."
)
@staticmethod
def add_cli_args(parser: argparse.ArgumentParser):
# Model and tokenizer