From 45d9ccafef8d5feade0665d52ba5a32ea62b938d Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期二, 20 二月 2024 17:48:53 +0800
Subject: [PATCH] train finetune

---
 examples/aishell/conformer/run.sh |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/examples/aishell/conformer/run.sh b/examples/aishell/conformer/run.sh
index 28e6f90..ff99f9e 100755
--- a/examples/aishell/conformer/run.sh
+++ b/examples/aishell/conformer/run.sh
@@ -105,10 +105,11 @@
   echo "stage 4: ASR Training"
 
   mkdir -p ${exp_dir}/exp/${model_dir}
-  log_file="${exp_dir}/exp/${model_dir}/train.log.txt"
+  current_time=$(date "+%Y-%m-%d_%H-%M")
+  log_file="${exp_dir}/exp/${model_dir}/train.log.txt.${current_time}"
   echo "log_file: ${log_file}"
 
-  gpu_num=$(echo CUDA_VISIBLE_DEVICES | awk -F "," '{print NF}')
+  gpu_num=$(echo $CUDA_VISIBLE_DEVICES | awk -F "," '{print NF}')
   torchrun \
   --nnodes 1 \
   --nproc_per_node ${gpu_num} \

--
Gitblit v1.9.1