Skip to content

Commit 5b847f4

Browse files
committed
[batch manager][unit test] No functional change intended, remove kv cache block allocation on token addition for cross kv manager
For an encode-decoder model, generation tokens are added only to the decoder and not the encoder. Signed-off-by: eopXD <[email protected]>
1 parent c363626 commit 5b847f4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cpp/tests/unit_tests/batch_manager/capacitySchedulerTest.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,6 @@ int runTest(CapacityScheduler& capacityScheduler,
408408
else
409409
{
410410
kvCacheManager->addToken(llmReq->mRequestId);
411-
if (crossKvCacheManager)
412-
{
413-
crossKvCacheManager->addToken(llmReq->mRequestId);
414-
}
415411
llmReq->addNewTokens({itCount});
416412
}
417413
if (llmReq->getNumTokens(0) == promptLen + llmReq->mMaxNewTokens)

0 commit comments

Comments
 (0)