[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:
@@ -715,6 +715,12 @@ class ServerArgs:
|
|||||||
"1" if self.disable_outlines_disk_cache else "0"
|
"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
|
@staticmethod
|
||||||
def add_cli_args(parser: argparse.ArgumentParser):
|
def add_cli_args(parser: argparse.ArgumentParser):
|
||||||
# Model and tokenizer
|
# Model and tokenizer
|
||||||
|
|||||||
Reference in New Issue
Block a user