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
ModelZoo
LLama_fastertransformer
Commits
d5a0fda9
Commit
d5a0fda9
authored
Nov 01, 2023
by
zhuwenwen
Browse files
remove performence output
parent
fed04a1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
examples/cpp/llama/llama_example.cc
examples/cpp/llama/llama_example.cc
+3
-3
No files found.
examples/cpp/llama/llama_example.cc
View file @
d5a0fda9
...
@@ -505,9 +505,9 @@ void llama_example(const INIReader reader)
...
@@ -505,9 +505,9 @@ void llama_example(const INIReader reader)
vocab_size
,
vocab_size
,
((
end
.
tv_sec
-
start
.
tv_sec
)
*
1000
+
(
end
.
tv_usec
-
start
.
tv_usec
)
*
0.001
)
/
ite
);
((
end
.
tv_sec
-
start
.
tv_sec
)
*
1000
+
(
end
.
tv_usec
-
start
.
tv_usec
)
*
0.001
)
/
ite
);
float
total_time
;
//
float total_time;
total_time
=
((
end
.
tv_sec
-
start
.
tv_sec
)
*
1000
+
(
end
.
tv_usec
-
start
.
tv_usec
)
*
0.001
)
/
ite
/
1000
;
//
total_time = ((end.tv_sec - start.tv_sec) * 1000 + (end.tv_usec - start.tv_usec) * 0.001) / ite / 1000;
printf
(
"[INFO] performance: %.2f tokens/sec
\n
"
,
(
request_batch_size
*
request_output_len
)
/
total_time
);
//
printf("[INFO] performance: %.2f tokens/sec \n", (request_batch_size * request_output_len) / total_time);
ftNcclParamDestroy
(
tensor_para
);
ftNcclParamDestroy
(
tensor_para
);
ftNcclParamDestroy
(
pipeline_para
);
ftNcclParamDestroy
(
pipeline_para
);
...
...
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