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
text-generation-inference
Commits
8442f1ac
Unverified
Commit
8442f1ac
authored
Nov 15, 2024
by
Daniël de Kok
Committed by
GitHub
Nov 15, 2024
Browse files
benchmark: fix prefill throughput (#2741)
parent
ca4f46dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
benchmark/src/generation.rs
benchmark/src/generation.rs
+1
-1
No files found.
benchmark/src/generation.rs
View file @
8442f1ac
...
@@ -180,7 +180,7 @@ async fn prefill(
...
@@ -180,7 +180,7 @@ async fn prefill(
let
latency
=
start_time
.elapsed
();
let
latency
=
start_time
.elapsed
();
// Compute throughput from latency and batch size
// Compute throughput from latency and batch size
let
throughput
=
batch_size
as
f64
/
latency
.as_secs_f64
();
let
throughput
=
(
batch_size
*
sequence_length
)
as
f64
/
latency
.as_secs_f64
();
// Decode batch cannot be empty
// Decode batch cannot be empty
let
decode_batch
=
decode_batch
.expect
(
"decode_batch is None. This is a bug."
);
let
decode_batch
=
decode_batch
.expect
(
"decode_batch is None. This is a bug."
);
...
...
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