Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/models/higgs_audio_tts/generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,11 @@ HiggsGenerationResult HiggsGenerator::generate(const HiggsGenerationRequest & re
engine::debug::timing_log_scalar("higgs_audio_tts.generator.decode_ms",
engine::debug::elapsed_ms(decode_start, Clock::now()));
if (!state.generation_done) {
throw std::runtime_error("Higgs TTS generation reached max_tokens before EOC");
throw std::runtime_error(
"Higgs TTS generation reached max_tokens (" + std::to_string(request.options.max_tokens) +
") before EOC for this text chunk; raise it with --max-tokens on the CLI or "
"the \"max_tokens\" request option on the server, or lower --text-chunk-size / "
"\"text_chunk_size\" so each chunk needs fewer generated frames");
}

result.raw_codes = reverse_higgs_delay_pattern(
Expand Down