Skip to content

Commit

Permalink
Fix offset bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tjake committed Sep 14, 2024
1 parent 50e4296 commit 02300a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public void batchDotProduct(
aOffset,
b.getBlockF().getMemorySegment(),
b.getMemorySegment(),
bOffset,
b.getMemorySegmentOffset(bOffset),
result.getMemorySegment(),
rOffset,
M,
Expand Down Expand Up @@ -210,7 +210,7 @@ public void batchDotProduct(
aOffset,
b.getBlockF().getMemorySegment(),
b.getMemorySegment(),
bOffset,
b.getMemorySegmentOffset(bOffset),
result.getMemorySegment(),
rOffset,
M,
Expand Down Expand Up @@ -347,7 +347,7 @@ public void dotProductBatchChunk(
aOffset,
rc,
rb,
bOffset,
bt.getMemorySegmentOffset(bOffset),
ra,
rOffset,
M,
Expand Down Expand Up @@ -378,7 +378,7 @@ public void dotProductBatchChunk(
aOffset,
rc,
rb,
bOffset,
bt.getMemorySegmentOffset(bOffset),
ra,
rOffset,
M,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Object createChatCompletion(@RequestHeader Map<String, String> headers, @Valid @

emitter.complete();

logger.info("Completed streaming response {} tok/sec", (r.generatedTokens/1000.0f) / r.generatedTokens);
logger.info("Completed streaming response {} tok/sec", r.generatedTokens / (r.generatedTokens / 1000f));
} catch (IOException e) {
emitter.completeWithError(e);
}
Expand Down

0 comments on commit 02300a5

Please sign in to comment.