Skip to content

Commit 41c690e

Browse files
authored
Bugfix: was accessing number of tokens from nil var; getting it from req instead (#177)
* Bugfix: was accessing number of tokens from nil var; getting it from req instead Signed-off-by: Qifan Deng <[email protected]> * Bugfix: get num of prompr tokens from defined var Signed-off-by: Qifan Deng <[email protected]> --------- Signed-off-by: Qifan Deng <[email protected]>
1 parent 08d4613 commit 41c690e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/llm-d-inference-sim/simulator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ func (s *VllmSimulator) reqProcessingWorker(ctx context.Context, id int) {
495495
model: displayModel,
496496
doRemotePrefill: req.IsDoRemotePrefill(),
497497
},
498-
usageDataToSend.PromptTokens, responseTokens, toolCalls, finishReason, usageDataToSend,
498+
usageData.PromptTokens, responseTokens, toolCalls, finishReason, usageDataToSend,
499499
)
500500
} else {
501501
if req.IsDoRemoteDecode() {

0 commit comments

Comments
 (0)