Demote per-request load-back log to debug
init_load_back logged 'loading back N tokens for node M' at INFO for every request triggering an L2->L1 HiCache load-back (hi_mamba already had it at debug). Demote and switch both to lazy %-formatting so the f-string is not built when debug is off. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -265,7 +265,9 @@ class HiMambaRadixCache(MambaRadixCache):
|
|||||||
loading_values = self.load_back(last_node, mem_quota)
|
loading_values = self.load_back(last_node, mem_quota)
|
||||||
if loading_values is not None:
|
if loading_values is not None:
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f"loading back {len(loading_values)} tokens for node {last_node.id}"
|
"loading back %d tokens for node %d",
|
||||||
|
len(loading_values),
|
||||||
|
last_node.id,
|
||||||
)
|
)
|
||||||
return loading_values, last_node
|
return loading_values, last_node
|
||||||
|
|
||||||
|
|||||||
@@ -3737,8 +3737,10 @@ class HiRadixCache(RadixCache):
|
|||||||
if last_node.evicted:
|
if last_node.evicted:
|
||||||
loading_values = self.load_back(last_node, mem_quota)
|
loading_values = self.load_back(last_node, mem_quota)
|
||||||
if loading_values is not None:
|
if loading_values is not None:
|
||||||
logger.info(
|
logger.debug(
|
||||||
f"loading back {len(loading_values)} tokens for node {last_node.id}"
|
"loading back %d tokens for node %d",
|
||||||
|
len(loading_values),
|
||||||
|
last_node.id,
|
||||||
)
|
)
|
||||||
return loading_values, last_node
|
return loading_values, last_node
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user