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
jerrrrry
infinilm
Commits
8b6fb721
Commit
8b6fb721
authored
Jan 23, 2026
by
wangpengcheng
Browse files
issue/199 fix evaluation metric
parent
571e0ba0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/infinilm/infer_engine.py
python/infinilm/infer_engine.py
+2
-2
No files found.
python/infinilm/infer_engine.py
View file @
8b6fb721
...
...
@@ -223,11 +223,11 @@ class InferEngine(_infinilm.InferEngine):
f
" Batchsize=
{
initial_batch_size
}
Per_Batch_Input_Len=
{
initial_seqlen
}
Per_Batch_New_Tokens=
{
len
(
time_measurements
)
}
\n
"
)
print
(
f
" Prefill TTFT:
{
round
(
time_measurements
[
0
],
2
)
}
ms Throughput:
{
round
((
initial_batch_size
*
initial_seqlen
)
/
time_measurements
[
0
],
2
)
}
tok/s
\n
"
,
f
" Prefill TTFT:
{
round
(
time_measurements
[
0
]
*
1000
,
2
)
}
ms Throughput:
{
round
((
initial_batch_size
*
initial_seqlen
)
/
time_measurements
[
0
],
2
)
}
tok/s
\n
"
,
)
if
len
(
time_measurements
)
>
1
:
print
(
f
" Decode Avg ITL:
{
round
(
sum
(
time_measurements
[
1
:])
*
1000
/
(
len
(
time_measurements
)
-
1
),
2
)
}
ms Throughput:
{
round
((
initial_batch_size
*
(
len
(
time_measurements
)
-
1
))
/
sum
(
time_measurements
[
1
:]),
2
)
}
tok/s
\n
"
,
f
" Decode Avg ITL:
{
round
(
sum
(
time_measurements
[
1
:])
*
1000
/
(
len
(
time_measurements
)
-
1
),
2
)
}
ms Throughput:
{
round
((
initial_batch_size
*
(
len
(
time_measurements
)
-
1
))
/
sum
(
time_measurements
[
1
:]),
2
)
}
tok/s
\n
"
,
)
return
output_ids
...
...
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