"example/01_gemm/gemm_xdl_f8.cpp" did not exist on "304802889728707c2a162322ce18686169e732ea"
Commit 11dd2295 authored by Sugon_ldc's avatar Sugon_ldc
Browse files

modify readme

parent d7cad875
This diff is collapsed.
This diff is collapsed.
...@@ -3,10 +3,10 @@ soundfile>=0.12.1 ...@@ -3,10 +3,10 @@ soundfile>=0.12.1
librosa>=0.10.0 librosa>=0.10.0
dataclasses>=0.6 dataclasses>=0.6
transformers>=4.39.3 transformers>=4.39.3
bitsandbytes>=0.41.0 #bitsandbytes>=0.41.0
datasets>=2.11.0 datasets>=2.11.0
evaluate>=0.4.0 evaluate>=0.4.0
ctranslate2>=3.21.0 #ctranslate2>=3.21.0
faster-whisper>=0.10.0 faster-whisper>=0.10.0
jiwer>=2.5.1 jiwer>=2.5.1
peft>=0.6.2 peft>=0.6.2
......
#!/bin/bash
#module load anaconda/2020.11
# module load cuda/12.1
#source activate whisper
# # 激活conda环境
# source activate /data/home/scv7ex2/run/whisper/whisper/whisper_env
# 处理数据集
# python /data/home/scv7ex2/run/whisper/whisper/Whisper-Finetune-master/aishell.py \
# --filepath /data/home/scv7ex2/run/whisper/whisper/data_aishell.tgz
# echo "[`date`] aishell1.py执行完毕"
echo "[`date`] 开始执行finetune.py"
python /data/home/scv7ex2/run/whisper/whisper/Whisper-Finetune-master/finetune.py \
--base_model /data/home/scv7ex2/run/whisper/whisper/whisper-base \
--local_files_only True \
--train_data /data/home/scv7ex2/run/whisper/whisper/dataset/train.json \
--test_data /data/home/scv7ex2/run/whisper/whisper/dataset/test.json \
--output_dir /data/home/scv7ex2/run/whisper/whisper/output/ \
--num_train_epochs 3 \
--fp16 False
echo "[`date`] finetune.py执行完毕"
python /data/home/scv7ex2/run/whisper/whisper/Whisper-Finetune-master/merge_lora.py \
--lora_model /data/home/scv7ex2/run/whisper/whisper/output/whisper-base/checkpoint-best/ \
--local_files_only True \
--output_dir /data/home/scv7ex2/run/whisper/whisper/output/models/ \
echo "[`date`] merge_lora.py执行完毕"
echo "[`date`] 开始执行evaluation.py"
python /data/home/scv7ex2/run/whisper/whisper/Whisper-Finetune-master/evaluation.py \
--model_path /data/home/scv7ex2/run/whisper/whisper/output/models/whisper-base-finetune \
--test_data /data/home/scv7ex2/run/whisper/whisper/dataset/test.json \
--local_files_only True \
--metric cer
echo "[`date`] evaluation.py执行完毕"
#!/bin/bash
module load anaconda/2020.11
# module load cuda/12.1
source activate whisper
# # 激活conda环境
# source activate /data/home/scv7ex2/run/whisper/whisper/whisper_env
# python /data/home/scv7ex2/run/whisper/whisper/Whisper-Finetune-master/aishell.py \
# --filepath /data/home/scv7ex2/run/whisper/whisper/data_aishell.tgz
# echo "[`date`] aishell1.py执行完毕"
echo "[`date`] 开始执行finetune.py"
torchrun --nproc_per_node=4 /data/home/scv7ex2/run/whisper/whisper/Whisper-Finetune-master/finetune.py \
--base_model /data/home/scv7ex2/run/whisper/whisper/whisper-base \
--local_files_only True \
--train_data /data/home/scv7ex2/run/whisper/whisper/dataset/train.json \
--test_data /data/home/scv7ex2/run/whisper/whisper/dataset/test.json \
--output_dir /data/home/scv7ex2/run/whisper/whisper/output_multi/ \
--num_train_epochs 3 \
--fp16 False
echo "[`date`] finetune.py执行完毕"
python /data/home/scv7ex2/run/whisper/whisper/Whisper-Finetune-master/merge_lora.py \
--lora_model /data/home/scv7ex2/run/whisper/whisper/output_multi/whisper-base/checkpoint-best/ \
--local_files_only True \
--output_dir /data/home/scv7ex2/run/whisper/whisper/output_multi/models/ \
echo "[`date`] merge_lora.py执行完毕"
echo "[`date`] 开始执行evaluation.py"
python /data/home/scv7ex2/run/whisper/whisper/Whisper-Finetune-master/evaluation.py \
--model_path /data/home/scv7ex2/run/whisper/whisper/output_multi/models/whisper-base-finetune \
--test_data /data/home/scv7ex2/run/whisper/whisper/dataset/test.json \
--local_files_only True \
--metric cer
echo "[`date`] evaluation.py执行完毕"
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment