Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
51a68455
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
大约 1 年 前同步成功
通知
206
Star
8425
Fork
1598
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
245
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DeepSpeech
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
245
Issue
245
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
51a68455
编写于
11月 10, 2021
作者:
H
Hui Zhang
提交者:
GitHub
11月 10, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #985 from Jackwaterveg/benchmark
revise the benchmark
上级
b89cdd21
843ea1c1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
6 addition
and
30 deletion
+6
-30
paddlespeech/s2t/exps/u2/model.py
paddlespeech/s2t/exps/u2/model.py
+3
-2
tests/benchmark/conformer/run.sh
tests/benchmark/conformer/run.sh
+3
-4
tests/benchmark/conformer/run_analysis_mp.sh
tests/benchmark/conformer/run_analysis_mp.sh
+0
-12
tests/benchmark/conformer/run_analysis_sp.sh
tests/benchmark/conformer/run_analysis_sp.sh
+0
-12
未找到文件。
paddlespeech/s2t/exps/u2/model.py
浏览文件 @
51a68455
...
@@ -206,12 +206,13 @@ class U2Trainer(Trainer):
...
@@ -206,12 +206,13 @@ class U2Trainer(Trainer):
observation
[
'batch_cost'
]
=
observation
[
observation
[
'batch_cost'
]
=
observation
[
'reader_cost'
]
+
observation
[
'step_cost'
]
'reader_cost'
]
+
observation
[
'step_cost'
]
observation
[
'samples'
]
=
observation
[
'batch_size'
]
observation
[
'samples'
]
=
observation
[
'batch_size'
]
observation
[
'ips
[sent./sec]
'
]
=
observation
[
observation
[
'ips
,sent./sec
'
]
=
observation
[
'batch_size'
]
/
observation
[
'batch_cost'
]
'batch_size'
]
/
observation
[
'batch_cost'
]
for
k
,
v
in
observation
.
items
():
for
k
,
v
in
observation
.
items
():
msg
+=
f
"
{
k
}
: "
msg
+=
f
"
{
k
.
split
(
','
)[
0
]
}
: "
msg
+=
f
"
{
v
:
>
.
8
f
}
"
if
isinstance
(
v
,
msg
+=
f
"
{
v
:
>
.
8
f
}
"
if
isinstance
(
v
,
float
)
else
f
"
{
v
}
"
float
)
else
f
"
{
v
}
"
msg
+=
f
"
{
k
.
split
(
','
)[
1
]
}
"
if
len
(
k
.
split
(
','
))
==
2
else
f
""
msg
+=
","
msg
+=
","
msg
=
msg
[:
-
1
]
# remove the last ","
msg
=
msg
[:
-
1
]
# remove the last ","
if
(
batch_index
+
1
if
(
batch_index
+
1
...
...
tests/benchmark/conformer/run.sh
浏览文件 @
51a68455
...
@@ -10,8 +10,10 @@ pushd ../../../examples/aishell/s1
...
@@ -10,8 +10,10 @@ pushd ../../../examples/aishell/s1
source
path.sh
source
path.sh
source
${
MAIN_ROOT
}
/utils/parse_options.sh
||
exit
1
;
fp_item_list
=(
fp32
)
fp_item_list
=(
fp32
)
bs_item
=(
16
)
bs_item
=(
16
30
)
config_path
=
conf/conformer.yaml
config_path
=
conf/conformer.yaml
seed
=
0
seed
=
0
output
=
exp/conformer
output
=
exp/conformer
...
@@ -34,7 +36,4 @@ done
...
@@ -34,7 +36,4 @@ done
popd
popd
mkdir
-p
log
bash run_analysis_sp.sh
>
log/log_sp.out
bash run_analysis_mp.sh
>
log/log_mp.out
tests/benchmark/conformer/run_analysis_mp.sh
已删除
100644 → 0
浏览文件 @
b89cdd21
python analysis.py
\
--filename
"recoder_mp_bs16_fp32_ngpu8.txt"
\
--keyword
"ips[sent./sec]:"
\
--base_batch_size
16
\
--model_name
"Conformer"
\
--mission_name
"eight gpu"
\
--run_mode
"mp"
\
--ips_unit
"sent./sec"
\
--gpu_num
8
\
--use_num
480
\
--separator
" "
\
--direction_id
"1"
tests/benchmark/conformer/run_analysis_sp.sh
已删除
100644 → 0
浏览文件 @
b89cdd21
python analysis.py
\
--filename
"recoder_sp_bs16_fp32_ngpu1.txt"
\
--keyword
"ips[sent./sec]:"
\
--base_batch_size
16
\
--model_name
"Conformer"
\
--mission_name
"one gpu"
\
--run_mode
"sp"
\
--ips_unit
"sent./sec"
\
--gpu_num
1
\
--use_num
60
\
--separator
" "
\
--direction_id
"1"
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录