134 lines
8.5 KiB
Plaintext
134 lines
8.5 KiB
Plaintext
[Qwen] qwentts.cpp 199a658 (2026-05-31)
|
|
ggml_cuda_init: found 1 CUDA devices (Total VRAM: 97247 MiB):
|
|
Device 0: NVIDIA RTX PRO 6000 Blackwell Workstation Edition, compute capability 12.0, VMM: yes, VRAM: 97247 MiB
|
|
load_backend: loaded CUDA backend from /mnt/workspace/qwentts.cpp/build/libggml-cuda.so
|
|
ggml_vulkan: Found 1 Vulkan devices:
|
|
ggml_vulkan: 0 = NVIDIA RTX PRO 6000 Blackwell Workstation Edition (NVIDIA) | uma: 0 | fp16: 1 | bf16: 0 | warp size: 32 | shared memory: 49152 | int dot: 1 | matrix cores: NV_coopmat2
|
|
load_backend: loaded Vulkan backend from /mnt/workspace/qwentts.cpp/build/libggml-vulkan.so
|
|
load_backend: loaded CPU backend from /mnt/workspace/qwentts.cpp/build/libggml-cpu-zen4.so
|
|
[Load] Talker backend: CUDA0 (CPU threads: 16)
|
|
[GGUF] ../models/qwen-talker-1.7b-customvoice-Q4_K_M.gguf: 404 tensors, data at offset 5949824
|
|
[WeightCtx] Loaded 316 tensors, 1012.7 MB into backend
|
|
[Talker] Loaded: 28 layers, hidden 2048, heads 16/8, head_dim 128, FFN 6144, RoPE theta 1000000, mrope sections [24,20,20] interleaved=0
|
|
[WeightCtx] Loaded 88 tensors, 109.5 MB into backend
|
|
[CodePredictor] Loaded: 5 layers, hidden 1024, heads 16/8, head_dim 128, FFN 3072, RoPE theta 1000000, 15 acoustic codebooks (vocab 2048 each), mtp_proj linear
|
|
[GGUF] ../models/qwen-tokenizer-12hz-Q4_K_M.gguf: 398 tensors, data at offset 29760
|
|
[WeightCtx] Loaded 18 tensors, 33.0 MB into backend
|
|
[Quantizer] Loaded: 16 codebooks (1 semantic + 15 acoustic), 2048 entries x 256 dim, hidden 512
|
|
[WeightCtx] Loaded 93 tensors, 16.4 MB into backend
|
|
[Transformer] Loaded: 8 layers, hidden 512, heads 16/16, head_dim 64, FFN 1024, RoPE theta 10000, sliding window 72
|
|
[WeightCtx] Loaded 22 tensors, 25.1 MB into backend
|
|
[Upsample] Loaded: 2 blocks (2x ratio per block), channels 1024, dwconv kernel 7
|
|
[WeightCtx] Loaded 118 tensors, 142.9 MB into backend
|
|
[DAC] Loaded: 4 blocks (strides 8/5/4/3), 24 kHz mono out, weights 142.9 MB
|
|
[WeightCtx] Loaded 2 tensors, 3.0 MB into backend
|
|
[WeightCtx] Loaded 28 tensors, 24.1 MB into backend
|
|
[SEANet] Loaded: 4 stages (ratios 4/5/6/8), 64 -> 512 channels, weights 24.1 MB
|
|
[WeightCtx] Loaded 96 tensors, 13.6 MB into backend
|
|
[EncTransformer] Loaded: 8 layers, hidden 512, heads 8/8, head_dim 64, FFN 2048, RoPE theta 10000
|
|
[WeightCtx] Loaded 1 tensors, 2.0 MB into backend
|
|
[EncDownsample] Loaded: k=4 stride=2, 512 -> 512 channels, weights 2.0 MB
|
|
[WeightCtx] Loaded 20 tensors, 34.0 MB into backend
|
|
[EncQuantizer] Loaded: 16 codebooks (1 semantic + 15 acoustic), 2048 entries x 256 dim, hidden 512, weights 34.0 MB
|
|
[Pipeline] Ready: hop 1920 samples @ 24000 Hz mono, 16 codebooks @ 12.5 Hz
|
|
[KVCache] Allocated: 28 layers, 8 KV heads, head_dim 128, max_seq_len 4096 -> 896 MB
|
|
[KVCache] Allocated: 5 layers, 8 KV heads, head_dim 128, max_seq_len 16 -> 0 MB
|
|
[Pipeline] Loaded: arch=1b7 variant=custom_voice tokenizer=qwen3_tts_tokenizer_12hz codebooks=16 speaker_encoder=absent speakers=9 fa=on clamp_fp16=off
|
|
[BPE] Loaded from GGUF: 151676 vocab, 151291 merges, eos_id=151643
|
|
[BPE] Registered 5 arch special tokens (total specials=6)
|
|
[Prompt] Built: 38 ids, N_text=30, N_instruct=0, T_ctx=41, hidden=2048, lang=english (id=2050), speaker=vivian (id=3065) ref_spk_emb=no icl=no
|
|
[Debug] prompt-ids: [38] first4: 151644.000000 77091.000000 198.000000 80.000000
|
|
[Debug] talker-input-embed: [41, 2048] first4: 0.020289 -0.009997 0.006191 -0.021695
|
|
[Debug] trailing-text-hidden: [1, 2048] first4: -0.003912 0.008341 -0.004548 -0.000740
|
|
[Debug] tts-pad-embed: [2048] first4: -0.003912 0.008341 -0.004548 -0.000740
|
|
[Debug] talker-hidden-prefill-l0: [41, 2048] first4: -0.355011 -0.050283 -0.043141 -0.003944
|
|
[Debug] talker-hidden-prefill-l7: [41, 2048] first4: 8.645360 -0.409176 6.265828 14.740660
|
|
[Debug] talker-hidden-prefill-l14: [41, 2048] first4: 8.633706 -0.117144 6.429363 14.546964
|
|
[Debug] talker-hidden-prefill-l21: [41, 2048] first4: 8.566828 0.177386 6.694110 14.135141
|
|
[Debug] talker-hidden-prefill-l27: [41, 2048] first4: 10.430892 -28.939522 -0.966624 39.405346
|
|
[Debug] talker-hidden-prefill-final: [41, 2048] first4: 0.320810 -0.929439 -0.027625 1.104689
|
|
[Debug] talker-logits-prefill: [3072] first4: -0.739150 -8.110693 -1.857955 -5.541620
|
|
[Sample] step=0 c0=1995 u=-1.0000000000 subseq=0
|
|
[Sample-CP] g=0 c=1159 u=-1.0000000000 subseq=1
|
|
[Sample-CP] g=1 c=355 u=-1.0000000000 subseq=2
|
|
[Sample-CP] g=2 c=22 u=-1.0000000000 subseq=3
|
|
[Sample-CP] g=3 c=1174 u=-1.0000000000 subseq=4
|
|
[Sample-CP] g=4 c=1093 u=-1.0000000000 subseq=5
|
|
[Sample-CP] g=5 c=625 u=-1.0000000000 subseq=6
|
|
[Sample-CP] g=6 c=1814 u=-1.0000000000 subseq=7
|
|
[Sample-CP] g=7 c=1058 u=-1.0000000000 subseq=8
|
|
[Sample-CP] g=8 c=905 u=-1.0000000000 subseq=9
|
|
[Sample-CP] g=9 c=1846 u=-1.0000000000 subseq=10
|
|
[Sample-CP] g=10 c=1247 u=-1.0000000000 subseq=11
|
|
[Sample-CP] g=11 c=1677 u=-1.0000000000 subseq=12
|
|
[Sample-CP] g=12 c=889 u=-1.0000000000 subseq=13
|
|
[Sample-CP] g=13 c=812 u=-1.0000000000 subseq=14
|
|
[Sample-CP] g=14 c=901 u=-1.0000000000 subseq=15
|
|
[Debug] codes-step0: [16] first4: 1995.000000 1159.000000 355.000000 22.000000
|
|
[Debug] next-emb-step0: [2048] first4: -0.041074 -0.031176 0.000198 0.179347
|
|
[Debug] talker-hidden-step1: [2048] first4: 2.373294 -1.774304 2.979298 -1.468646
|
|
[Sample] step=1 c0=259 u=-1.0000000000 subseq=16
|
|
[Sample-CP] g=0 c=1650 u=-1.0000000000 subseq=17
|
|
[Sample-CP] g=1 c=1160 u=-1.0000000000 subseq=18
|
|
[Sample-CP] g=2 c=1605 u=-1.0000000000 subseq=19
|
|
[Sample-CP] g=3 c=656 u=-1.0000000000 subseq=20
|
|
[Sample-CP] g=4 c=462 u=-1.0000000000 subseq=21
|
|
[Sample-CP] g=5 c=1614 u=-1.0000000000 subseq=22
|
|
[Sample-CP] g=6 c=1518 u=-1.0000000000 subseq=23
|
|
[Sample-CP] g=7 c=186 u=-1.0000000000 subseq=24
|
|
[Sample-CP] g=8 c=298 u=-1.0000000000 subseq=25
|
|
[Sample-CP] g=9 c=1047 u=-1.0000000000 subseq=26
|
|
[Sample-CP] g=10 c=126 u=-1.0000000000 subseq=27
|
|
[Sample-CP] g=11 c=284 u=-1.0000000000 subseq=28
|
|
[Sample-CP] g=12 c=1632 u=-1.0000000000 subseq=29
|
|
[Sample-CP] g=13 c=1051 u=-1.0000000000 subseq=30
|
|
[Sample-CP] g=14 c=577 u=-1.0000000000 subseq=31
|
|
[Pipeline] Generated 8 frames
|
|
[Pipeline] Generated 16 frames
|
|
[Pipeline] Generated 24 frames
|
|
[Pipeline] Generated 32 frames
|
|
[Pipeline] Generated 40 frames
|
|
[Pipeline] Generated 48 frames
|
|
[Pipeline] Generated 56 frames
|
|
[Pipeline] Generated 64 frames
|
|
[Pipeline] Generation done : 64 frames
|
|
[Debug] codes-full: [64, 16] first4: 1995.000000 1159.000000 355.000000 22.000000
|
|
[Debug] output-audio: [122880] first4: 0.000014 0.000015 0.000012 0.000016
|
|
[Perf] PromptBuild 58.0 ms
|
|
[Perf] Prefill 9.7 ms (T_ctx prefill)
|
|
[Perf] TTFA 76.7 ms (first frame codes)
|
|
[Perf] TalkerDecode 180.6 ms (64 frames, 2.82 ms/frame)
|
|
[Perf] CodePredictor 450.7 ms (7.04 ms/frame)
|
|
[Perf] HostCompose 2.0 ms (c0 sample + next emb)
|
|
[Perf] CodecDecode 55.1 ms
|
|
[Perf] Total 757.0 ms (64 frames, 9.90 ms/frame AR, audio 5.12 s, RTF 0.148)
|
|
[WAV] Wrote cpp/customvoice/customvoice-cpp.wav: 122880 samples, 24000 Hz, mono S16
|
|
[Pipeline] Wrote 122880 samples (5.12 s) -> cpp/customvoice/customvoice-cpp.wav
|
|
[Input] Prompt: 100 chars: qwentts.cpp is a minimal C++17 and GGML port of Qwen3-TTS fo...
|
|
[Input] Speaker: vivian
|
|
[Input] Lang: english Seed: 42 MaxNewTokens: 64
|
|
[Input] Mode: greedy
|
|
[Python] Device: cuda
|
|
[Python] InputIds shape: (1, 38)
|
|
[Python] Codes shape: (63, 16) (T_frames, num_code_groups)
|
|
[Python] Audio: 120960 samples 24000 Hz 5.04s -> python/customvoice/customvoice-python.wav
|
|
[Quant] Q4_K_M -> ../models/qwen-talker-1.7b-customvoice-Q4_K_M.gguf + ../models/qwen-tokenizer-12hz-Q4_K_M.gguf
|
|
[GGML] Cmd: ../build/qwen-tts --model ../models/qwen-talker-1.7b-customvoice-Q4_K_M.gguf --codec ../models/qwen-tokenizer-12hz-Q4_K_M.gguf --seed 42 --speaker vivian --lang english --max-new 64 --dump cpp/customvoice -o cpp/customvoice/customvoice-cpp.wav --greedy
|
|
[GGML] Audio: 122880 samples 24000 Hz 5.12s -> cpp/customvoice/customvoice-cpp.wav
|
|
[Cossim] PromptIDs exact: 100.00% (38 values)
|
|
[Cossim] Embed cos: 0.999688 max: 1.6592e-01 mean: 1.0461e-03
|
|
[Cossim] TrailingText cos: 0.999970 max: 1.3497e-03 mean: 2.2447e-04
|
|
[Cossim] TTSPadEmbed cos: 0.999970 max: 1.3497e-03 mean: 2.2447e-04
|
|
[Cossim] L0 cos: 0.999260 max: 4.5659e-01 mean: 6.4688e-03
|
|
[Cossim] L7 cos: 0.997565 max: 7.8803e+01 mean: 5.9680e-01
|
|
[Cossim] L14 cos: 0.997546 max: 7.8470e+01 mean: 7.1914e-01
|
|
[Cossim] L21 cos: 0.997070 max: 8.2114e+01 mean: 1.3285e+00
|
|
[Cossim] L27 cos: 0.985133 max: 8.7350e+02 mean: 5.5949e+00
|
|
[Cossim] Final cos: 0.903518 max: 7.3380e+01 mean: 4.2497e-01
|
|
[Cossim] Logits cos: 0.989764 max: 3.2861e+00 mean: 4.6385e-01
|
|
[Cossim] NextEmbStep0 cos: 0.999915 max: 3.1787e-03 mean: 7.7489e-04
|
|
[Cossim] TalkerHiddenStep1 cos: 0.956822 max: 2.7100e+00 mean: 5.1082e-01
|
|
[Cossim] CodesFull exact: 2.98% (1008 values)
|
|
[Cossim] Audio cos: 0.005839
|
|
[Cossim] WAV stft_cos: 0.049973 samples: 120960
|