lihongjie
commited on
Commit
·
44f9606
1
Parent(s):
54779e0
update
Browse files- .gitattributes +1 -0
- README.md +4 -4
- main_axcl_aarch64 +3 -0
- run.sh → run_ax650.sh +0 -0
- run_axcl_aarch64.sh +23 -0
.gitattributes
CHANGED
|
@@ -110,3 +110,4 @@ token2wav-axmodels/hift_p2_58.axmodel filter=lfs diff=lfs merge=lfs -text
|
|
| 110 |
token2wav-axmodels/rand_noise_1_80_300.txt filter=lfs diff=lfs merge=lfs -text
|
| 111 |
token2wav-axmodels/speech_window_2x8x480.txt filter=lfs diff=lfs merge=lfs -text
|
| 112 |
token2wav-axmodels/hift_p1_50_first.mnn filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 110 |
token2wav-axmodels/rand_noise_1_80_300.txt filter=lfs diff=lfs merge=lfs -text
|
| 111 |
token2wav-axmodels/speech_window_2x8x480.txt filter=lfs diff=lfs merge=lfs -text
|
| 112 |
token2wav-axmodels/hift_p1_50_first.mnn filter=lfs diff=lfs merge=lfs -text
|
| 113 |
+
main_axcl_aarch64 filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -59,11 +59,11 @@ python cosyvoice2_tokenizer.py --host {your host} --port {your port}
|
|
| 59 |
```
|
| 60 |
|
| 61 |
#### 3. Run on AX650 Board
|
| 62 |
-
1) Moidfy the HTTP host in `
|
| 63 |
|
| 64 |
-
2) Run `
|
| 65 |
```shell
|
| 66 |
-
root@ax650 ~/Cosyvoice2 # bash
|
| 67 |
rm: cannot remove 'output*.wav': No such file or directory
|
| 68 |
[I][ Init][ 108]: LLM init start
|
| 69 |
[I][ Init][ 34]: connect http://10.122.86.184:12345 ok
|
|
@@ -174,4 +174,4 @@ prompt_speech_feat.txt
|
|
| 174 |
prompt_text.txt
|
| 175 |
```
|
| 176 |
|
| 177 |
-
When you run
|
|
|
|
| 59 |
```
|
| 60 |
|
| 61 |
#### 3. Run on AX650 Board
|
| 62 |
+
1) Moidfy the HTTP host in `run_ax650.sh`.
|
| 63 |
|
| 64 |
+
2) Run `run_ax650.sh`
|
| 65 |
```shell
|
| 66 |
+
root@ax650 ~/Cosyvoice2 # bash run_ax650.sh
|
| 67 |
rm: cannot remove 'output*.wav': No such file or directory
|
| 68 |
[I][ Init][ 108]: LLM init start
|
| 69 |
[I][ Init][ 34]: connect http://10.122.86.184:12345 ok
|
|
|
|
| 174 |
prompt_text.txt
|
| 175 |
```
|
| 176 |
|
| 177 |
+
When you run run_ax650.sh, pass the output path here to the prompt_files parameter of the run_ax650.sh script.
|
main_axcl_aarch64
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c4e2487588e29adc12fdefcddb0dbd18c52b84862736c3960062ecf40baee15
|
| 3 |
+
size 4822152
|
run.sh → run_ax650.sh
RENAMED
|
File without changes
|
run_axcl_aarch64.sh
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
LLM_DIR=CosyVoice-BlankEN-Ax650-prefill_512/
|
| 2 |
+
TOKEN2WAV_DIR=token2wav-axmodels/
|
| 3 |
+
|
| 4 |
+
rm output*.wav
|
| 5 |
+
./main_axcl_aarch64 \
|
| 6 |
+
--template_filename_axmodel "${LLM_DIR}/qwen2_p128_l%d_together.axmodel" \
|
| 7 |
+
--token2wav_axmodel_dir $TOKEN2WAV_DIR \
|
| 8 |
+
--n_timesteps 10 \
|
| 9 |
+
--axmodel_num 24 \
|
| 10 |
+
--bos 0 --eos 0 \
|
| 11 |
+
--filename_tokenizer_model "http://127.0.0.1:12345" \
|
| 12 |
+
--filename_post_axmodel "${LLM_DIR}/qwen2_post.axmodel" \
|
| 13 |
+
--filename_decoder_axmodel "${LLM_DIR}/llm_decoder.axmodel" \
|
| 14 |
+
--filename_tokens_embed "${LLM_DIR}/model.embed_tokens.weight.bfloat16.bin" \
|
| 15 |
+
--filename_llm_embed "${LLM_DIR}/llm.llm_embedding.float16.bin" \
|
| 16 |
+
--filename_speech_embed "${LLM_DIR}/llm.speech_embedding.float16.bin" \
|
| 17 |
+
--continue 0 \
|
| 18 |
+
--devices "0," \
|
| 19 |
+
--prompt_files prompt_files \
|
| 20 |
+
--text "君不见黄河之水天上来,奔流到海不复回。君不见高堂明镜悲白发,朝如青丝暮成雪。"
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
chmod 777 output*.wav
|