未验证 提交 2dadfba1 编写于 作者: H Hui Zhang 提交者: GitHub

Merge pull request #828 from PaddlePaddle/seed

do not set seed since break model covergence, aishell s0 seed 10086 test ok
......@@ -19,6 +19,7 @@ fi
mkdir -p exp
# seed may break model convergence
seed=10086
if [ ${seed} != 0 ]; then
export FLAGS_cudnn_deterministic=True
......
......@@ -19,8 +19,9 @@ echo "using ${device}..."
mkdir -p exp
seed=10086
if [ ${seed} != 0]; then
# seed may break model convergence
seed=0
if [ ${seed} != 0 ]; then
export FLAGS_cudnn_deterministic=True
fi
......
......@@ -19,8 +19,9 @@ echo "using ${device}..."
mkdir -p exp
seed=10086
if [ ${seed} != 0]; then
# seed may break model convergence
seed=0
if [ ${seed} != 0 ]; then
export FLAGS_cudnn_deterministic=True
fi
......
......@@ -20,7 +20,8 @@ echo "using ${device}..."
mkdir -p exp
seed=10086
# seed may break model convergence
seed=0
if [ ${seed} != 0 ]; then
export FLAGS_cudnn_deterministic=True
fi
......
......@@ -19,7 +19,8 @@ echo "using ${device}..."
mkdir -p exp
seed=10086
# seed may break model convergence
seed=0
if [ ${seed} != 0 ]; then
export FLAGS_cudnn_deterministic=True
fi
......@@ -31,7 +32,7 @@ python3 -u ${BIN_DIR}/train.py \
--output exp/${ckpt_name} \
--seed ${seed}
if [ ${seed} != 0]; then
if [ ${seed} != 0 ]; then
unset FLAGS_cudnn_deterministic
fi
......
......@@ -19,7 +19,8 @@ echo "using ${device}..."
mkdir -p exp
seed=10086
# seed may break model convergence
seed=0
if [ ${seed} != 0 ]; then
export FLAGS_cudnn_deterministic=True
fi
......
......@@ -19,7 +19,8 @@ echo "using ${device}..."
mkdir -p exp
seed=10086
# seed may break model convergence
seed=0
if [ ${seed} != 0 ]; then
export FLAGS_cudnn_deterministic=True
fi
......@@ -31,7 +32,7 @@ python3 -u ${BIN_DIR}/train.py \
--output exp/${ckpt_name} \
--seed ${seed}
if [ ${seed} != 0 ]; then
if [ ${seed} != 0 ]; then
unset FLAGS_cudnn_deterministic
fi
......
......@@ -19,7 +19,8 @@ echo "using ${device}..."
mkdir -p exp
seed=10086
# seed may break model convergence
seed=0
if [ ${seed} != 0 ]; then
export FLAGS_cudnn_deterministic=True
fi
......
......@@ -19,7 +19,8 @@ fi
mkdir -p exp
seed=10086
# seed may break model convergence
seed=0
if [ ${seed} != 0 ]; then
export FLAGS_cudnn_deterministic=True
fi
......
#!/bin/bash
if [ $# != 1 ];then
echo "usage: tune ckpt_path"
exit 1
fi
# grid-search for hyper-parameters in language model
python3 -u ${BIN_DIR}/tune.py \
--device 'gpu' \
--nproc 1 \
--config conf/deepspeech2.yaml \
--num_batches=-1 \
--batch_size=128 \
--beam_size=500 \
--num_proc_bsearch=12 \
--num_alphas=45 \
--num_betas=8 \
--alpha_from=1.0 \
--alpha_to=3.2 \
--beta_from=0.1 \
--beta_to=0.45 \
--cutoff_prob=1.0 \
--cutoff_top_n=40 \
--checkpoint_path ${1}
if [ $? -ne 0 ]; then
echo "Failed in tuning!"
exit 1
fi
exit 0
......@@ -18,7 +18,8 @@ fi
mkdir -p exp
seed=10086
# seed may break model convergence
seed=0
if [ ${seed} != 0 ]; then
export FLAGS_cudnn_deterministic=True
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册