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
gaoqiong
MIGraphX
Commits
8edc10eb
Commit
8edc10eb
authored
Nov 17, 2022
by
Alan Turner
Browse files
Set envvar
parent
b56b11f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
tools/tune_models.py
tools/tune_models.py
+3
-1
No files found.
tools/tune_models.py
View file @
8edc10eb
import
os
,
json
,
subprocess
,
tempfile
,
sys
,
argparse
,
contextlib
,
time
import
os
,
subprocess
,
argparse
,
time
import
tune_ck
as
tc
import
tune_ck
as
tc
...
@@ -42,6 +42,8 @@ def tune_models(models, batch_sizes, seq_len, n):
...
@@ -42,6 +42,8 @@ def tune_models(models, batch_sizes, seq_len, n):
shell
=
True
)
shell
=
True
)
tc
.
tune
(
log_file
,
n
,
json_file
)
tc
.
tune
(
log_file
,
n
,
json_file
)
tuning_path
=
os
.
path
.
abspath
(
json_file
)
os
.
environ
[
"MIGRAPHX_CK_TUNING"
]
=
tuning_path
print
(
"
\n
Tuning results have been saved to:
\n
{}
\n
"
.
format
(
json_file
))
print
(
"
\n
Tuning results have been saved to:
\n
{}
\n
"
.
format
(
json_file
))
...
...
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