Views
No views yet
| Stage | Time |
|---|---|
| llm prefill ( input_token_num + prompt_token_num 在 [0,128 ] ) | 104 ms |
| llm prefill ( input_token_num + prompt_token_num 在 [128,256 ] ) | 160 ms |
| Decode | 14 token/s |
pip3 install -r scripts/requirements.txtcd scripts
python scripts/cosyvoice3_tokenizer.py --host {your host} --port {your port} run_ax650.sh.run_ax650.sh1root@ax650 ~/CosyVoice3 # bash run_ax650.sh
2rm: cannot remove 'output*.wav': No such file or directory
3[I][ Init][ 108]: LLM init start
4[I][ Init][ 34]: connect http://10.122.86.184:12345 ok
5bos_id: 0, eos_id: 1773
6 7% | ███ | 2 / 27 [3.11s<42.04s, 0.64 count/s] embed_selector init ok[I][ Init][ 138]: attr.axmodel_num:24
7100% | ████████████████████████████████ | 27 / 27 [10.32s<10.32s, 2.62 count/s] init post axmodel ok,remain_cmm(7178 MB)
8[I][ Init][ 216]: max_token_len : 1023
9[I][ Init][ 221]: kv_cache_size : 128, kv_cache_num: 1023
10[I][ Init][ 229]: prefill_token_num : 128
11[I][ Init][ 233]: grp: 1, prefill_max_token_num : 1
12[I][ Init][ 233]: grp: 2, prefill_max_token_num : 128
13[I][ Init][ 233]: grp: 3, prefill_max_token_num : 256
14[I][ Init][ 233]: grp: 4, prefill_max_token_num : 384
15[I][ Init][ 233]: grp: 5, prefill_max_token_num : 512
16[I][ Init][ 237]: prefill_max_token_num : 512
17[I][ Init][ 249]: LLM init ok
18[I][ Init][ 154]: Token2Wav init ok
19[I][ main][ 273]:
20[I][ Run][ 388]: input token num : 142, prefill_split_num : 2
21[I][ Run][ 422]: input_num_token:128
22[I][ Run][ 422]: input_num_token:14
23[I][ Run][ 607]: ttft: 236.90 ms
24[Main/Token2Wav Thread] Processing batch of 28 tokens...
25Successfully saved audio to output_0.wav (32-bit Float PCM).
26[Main/Token2Wav Thread] Processing batch of 53 tokens...
27Successfully saved audio to output_1.wav (32-bit Float PCM).
28[Main/Token2Wav Thread] Processing batch of 78 tokens...
29Successfully saved audio to output_2.wav (32-bit Float PCM).
30[Main/Token2Wav Thread] Processing batch of 78 tokens...
31Successfully saved audio to output_3.wav (32-bit Float PCM).
32[Main/Token2Wav Thread] Processing batch of 78 tokens...
33Successfully saved audio to output_4.wav (32-bit Float PCM).
34[Main/Token2Wav Thread] Processing batch of 78 tokens...
35Successfully saved audio to output_5.wav (32-bit Float PCM).
36[Main/Token2Wav Thread] Processing batch of 78 tokens...
37Successfully saved audio to output_6.wav (32-bit Float PCM).
38[Main/Token2Wav Thread] Processing batch of 78 tokens...
39Successfully saved audio to output_7.wav (32-bit Float PCM).
40[Main/Token2Wav Thread] Processing batch of 78 tokens...
41Successfully saved audio to output_8.wav (32-bit Float PCM).
42[Main/Token2Wav Thread] Processing batch of 78 tokens...
43Successfully saved audio to output_9.wav (32-bit Float PCM).
44[I][ Run][ 723]: hit eos, llm finished
45[I][ Run][ 753]: llm finished
46[Main/Token2Wav Thread] Buffer is empty and LLM finished. Exiting.
47
48
49[I][ Run][ 758]: total decode tokens:271
50[N][ Run][ 759]: hit eos,avg 21.47 token/s
51
52Successfully saved audio to output_10.wav (32-bit Float PCM).
53Successfully saved audio to output.wav (32-bit Float PCM).
54
55Voice generation pipeline completed.
56Type "q" to exit, Ctrl+c to stop current running
57text >> bash run_api_ax650.shpython scripts/gradio_demo.pybash run_axcl_aarch64.shbash run_api_axcl_aarch64.shpython scripts/gradio_demo.pyhttps://{your device ip}:7860bash run_axcl_x86.shbash run_api_axcl_x86.shpython scripts/gradio_demo.pyhttps://{your device ip}:7860
pip3 install modelscope
modelscope download --model pengzhendong/wetext --local_dir pengzhendong/wetextpython3 scripts/process_prompt.py --prompt_text asset/zh_man1.txt --prompt_speech asset/zh_man1.wav --output zh_man1python3 scripts/process_prompt.py -h
usage: process_prompt.py [-h] [--model_dir MODEL_DIR] [--wetext_dir WETEXT_DIR] [--sample_rate SAMPLE_RATE] [--prompt_text PROMPT_TEXT] [--prompt_speech PROMPT_SPEECH]
[--output OUTPUT]
options:
-h, --help show this help message and exit
--model_dir MODEL_DIR
tokenizer configuration directionary
--wetext_dir WETEXT_DIR
path to wetext
--sample_rate SAMPLE_RATE
Sampling rate for prompt audio
--prompt_text PROMPT_TEXT
The text content of the prompt(reference) audio. Text or file path.
--prompt_speech PROMPT_SPEECH
The path to prompt(reference) audio.
--output OUTPUT Output data storage directoryflow_embedding.txt
flow_prompt_speech_token.txt
llm_embedding.txt
llm_prompt_speech_token.txt
prompt_speech_feat.txt
prompt_text.txt