wenet_cpu_runtime_benchmark / start_server.sh
root
update test scripts
a313e10
export GLOG_logtostderr=1
export GLOG_v=2
model_dir=./20211025_conformer_exp_aishell1
# docker run --rm -it -p 10086:10086 wenetorg/wenet:latest
# /home/wenet/runtime/libtorch/build/bin/websocket_server_main \
# --port 10086 \
# --chunk_size -1 \
# --model_path $model_dir/final.zip \
# --unit_path $model_dir/units.txt 2>&1 | tee server.log
# /home/wenet/runtime/libtorch/build/bin/websocket_server_main \
# --port 10086 \
# --chunk_size -1 \
# --model_path $model_dir/final_quant.zip \
# --unit_path $model_dir/units.txt 2>&1 | tee server.log
# git-lfs install
# git clone https://huggingface.co/yuekai/aishell1_tlg_essentials
# cd ./aishell1_tlg_essentials && git-lfs pull
/home/wenet/runtime/libtorch/build/bin/websocket_server_main \
--port 10086 \
--chunk_size -1 \
--blank_skip_thresh 0.98 \
--beam 15.0 --lattice_beam 7.5 --max_active 7000 \
--ctc_weight 0.5 --rescoring_weight 1.0 \
--dict_path ./aishell1_tlg_essentials/output/words.txt \
--fst_path ./aishell1_tlg_essentials/output/TLG.fst \
--model_path $model_dir/final.zip \
--unit_path $model_dir/units.txt 2>&1 | tee server.log
# /home/wenet/runtime/libtorch/build/bin/websocket_server_main \
# --port 10086 \
# --chunk_size -1 \
# --blank_skip_thresh 0.98 \
# --beam 15.0 --lattice_beam 7.5 --max_active 7000 \
# --ctc_weight 0.5 --rescoring_weight 1.0 \
# --dict_path ./aishell1_tlg_essentials/output/words.txt \
# --fst_path ./aishell1_tlg_essentials/output/TLG.fst \
# --model_path $model_dir/final_quant.zip \
# --unit_path $model_dir/units.txt 2>&1 | tee server.log