Unverified Commit cebf4599 authored by Xuchun Shang's avatar Xuchun Shang Committed by GitHub
Browse files

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


Signed-off-by: default avatarXuchun Shang <xuchun.shang@linux.alibaba.com>
parent 9c0c1e30
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment