Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
15455dff
Unverified
Commit
15455dff
authored
Apr 14, 2025
by
Ziqi Fan
Committed by
GitHub
Apr 15, 2025
Browse files
fix: set correct parent_hash for each kv block when publish kv events (#671)
parent
02a33f15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
examples/tensorrt_llm/common/base_engine.py
examples/tensorrt_llm/common/base_engine.py
+1
-0
No files found.
examples/tensorrt_llm/common/base_engine.py
View file @
15455dff
...
@@ -315,6 +315,7 @@ class BaseTensorrtLLMEngine:
...
@@ -315,6 +315,7 @@ class BaseTensorrtLLMEngine:
tokens
,
tokens
,
lora_id
,
lora_id
,
)
)
parent_hash
=
block
[
"block_hash"
]
elif
data
[
"type"
]
==
"removed"
:
elif
data
[
"type"
]
==
"removed"
:
for
block_hash
in
data
[
"block_hashes"
]:
for
block_hash
in
data
[
"block_hashes"
]:
self
.
_kv_cache_events_publisher
.
removed_event
(
block_hash
)
self
.
_kv_cache_events_publisher
.
removed_event
(
block_hash
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment