We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb0c540 commit 397d3a5Copy full SHA for 397d3a5
1 file changed
models/qwen.cpp
@@ -3508,7 +3508,8 @@ namespace chatllm::qwen::v3_forcedaligner
3508
auto &w = tok->cleaned_words[i];
3509
if (w.parent_id >= (int)tok->timestamps.size())
3510
{
3511
- CHATLLM_CHECK(w.parent_id == (int)tok->timestamps.size());
+ while (w.parent_id > (int)tok->timestamps.size())
3512
+ tok->timestamps.emplace_back(0.0, 0.0);
3513
tok->timestamps.emplace_back(timestamps[2 * i + 0], timestamps[2 * i + 1]);
3514
}
3515
else
@@ -3518,6 +3519,9 @@ namespace chatllm::qwen::v3_forcedaligner
3518
3519
3520
3521
3522
+ while (tok->timestamps.size() < tok->sentences.size())
3523
3524
+
3525
if (streamer)
3526
3527
auto r = tok->show_timestampes();
0 commit comments