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
18a16d33
Commit
18a16d33
authored
Apr 23, 2026
by
yaoht
Browse files
rm prof debug code
parent
098fab15
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
examples/bench.py
examples/bench.py
+1
-9
No files found.
examples/bench.py
View file @
18a16d33
...
...
@@ -360,16 +360,9 @@ class TestModel:
# 自回归生成
# ---------------------------------------------------------------------------- #
input_ids_infini
=
infinicore
.
from_list
(
input_ids_list
)
import
os
import
ctypes
rocm_path
=
os
.
environ
.
get
(
'ROCM_PATH'
)
lib_path
=
os
.
path
.
join
(
rocm_path
,
'hip/lib/libgalaxyhip.so'
)
lib
=
ctypes
.
CDLL
(
lib_path
)
roctracer_stop
=
lib
.
roctracer_stop
roctracer_start
=
lib
.
roctracer_start
t1
=
time
.
time
()
print
(
"=================== start generate ===================="
)
roctracer_start
()
output_ids
=
self
.
model
.
generate
(
input_ids_infini
,
GenerationConfig
(
...
...
@@ -382,7 +375,6 @@ class TestModel:
),
_measure_and_log_time
=
True
,
)
roctracer_stop
()
t2
=
time
.
time
()
numpy_output_ids
=
np
.
array
(
...
...
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