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
wangkx1
torch_inference_resnet50
Commits
1d16c4e8
Commit
1d16c4e8
authored
Oct 30, 2024
by
wangkaixiong
🚴🏼
Browse files
init
parent
dcb5e4e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
migraphx/run.sh
migraphx/run.sh
+19
-0
No files found.
migraphx/run.sh
0 → 100644
View file @
1d16c4e8
# --fp16:使用半精度
# --onnx:模型路径
# --input-dim:模型输入维度
# @unique_ids_raw_output___9:0 1:标志位无需修改
# @segment_ids:0 256 256:第一个数为batch size,默认256;第二个数为序列长度,默认256
# @input_mask:0 256 256:第一个数为batch size,默认256;第二个数为序列长度,默认256
# @input_ids:0 256 256:第一个数为batch size,默认256;第二个数为序列长度,默认256
data
=
$(
date
+
"%Y-%m-%d-%H-%M-%S"
)
logdir
=
/datasets/logs_comomm_model_infer/bert/
${
data
}
if
[
!
-f
${
logdir
}
]
;
then
mkdir
${
logdir
}
-p
fi
HIP_VISIBLE_DEVICES
=
0 /opt/dtk-24.04.1/bin/migraphx-driver perf
-n
20
--fp16
--gpu
--onnx
./weights/bertsquad-10.onnx
\
--input-dim
@unique_ids_raw_output___9:0 1 @segment_ids:0 256 256 @input_mask:0 256 256 @input_ids:0 256 256
\
2>&1 |
tee
${
logdir
}
/pert-bert-bs-256-seqlen-256.log
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