Unverified Commit ff1f6825 authored by Faradawn Yang's avatar Faradawn Yang Committed by GitHub
Browse files

[fix] Set Radix tree root node hash to None - Nvidia Dynamo Integration (#9030)


Co-authored-by: default avatargemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
parent 9f78f391
...@@ -495,7 +495,7 @@ class RadixCache(BasePrefixCache): ...@@ -495,7 +495,7 @@ class RadixCache(BasePrefixCache):
# One BlockStored per ``page_size`` chunk. # One BlockStored per ``page_size`` chunk.
if self.enable_kv_cache_events: if self.enable_kv_cache_events:
# First chunk links to the last page of the parent node (if any). # First chunk links to the last page of the parent node (if any).
if node.parent is None: if node.parent is None or node != self.root_node:
parent_block_hash = None parent_block_hash = None
else: else:
last_page_start = ( last_page_start = (
......
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