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
"README.md" did not exist on "b5936af65c8aebd53b50b08fd4b28b6272f83dcf"
Commit
18a16d33
authored
Apr 23, 2026
by
yaoht
Browse files
rm prof debug code
parent
098fab15
Changes
1
Hide 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:
...
@@ -360,16 +360,9 @@ class TestModel:
# 自回归生成
# 自回归生成
# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #
input_ids_infini
=
infinicore
.
from_list
(
input_ids_list
)
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
()
t1
=
time
.
time
()
print
(
"=================== start generate ===================="
)
print
(
"=================== start generate ===================="
)
roctracer_start
()
output_ids
=
self
.
model
.
generate
(
output_ids
=
self
.
model
.
generate
(
input_ids_infini
,
input_ids_infini
,
GenerationConfig
(
GenerationConfig
(
...
@@ -382,7 +375,6 @@ class TestModel:
...
@@ -382,7 +375,6 @@ class TestModel:
),
),
_measure_and_log_time
=
True
,
_measure_and_log_time
=
True
,
)
)
roctracer_stop
()
t2
=
time
.
time
()
t2
=
time
.
time
()
numpy_output_ids
=
np
.
array
(
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