Skip to content

[Higgs TTS] Fixed-seed no-reference Chinese inputs reach 2048 tokens before EOC (v0.9.2, CUDA, Q8_0) #1007

Closed as not planned

Description

@MoyouDE

Description

With the unmodified audio.cpp v0.9.2 Windows CUDA release, a short Chinese plea addressed to a classmate fails to finish without a reference voice. The server returns HTTP 500 with "generation reached max_tokens (2048) before EOC".

Both the plain input and its <|emotion:relief|> version failed in all three fresh-process trials at the documented default limit of 2048, with a fixed seed. Each was also tested once at 512 and failed. A normal sentence succeeds in the same environment.

The plain input contains no control tags. I would like to understand whether this is a limitation of no-reference generation or an implementation issue affecting stopping behavior.

These results are from the original audio.cpp release executable and its bundled libraries, without local inference patches or an ONNX frontend. I have not tested the complete Boson/SGLang-Omni implementation, so I cannot yet attribute this to the model, quantization, sampling, or an audio.cpp implementation detail.

Environment

  • audio.cpp v0.9.2, commit 0097d36
  • Release archive: audio-v0.9.2-bin-windows-x64-cuda12.4.zip
  • Windows 11 Pro, version 10.0.26200
  • NVIDIA RTX 4070 SUPER, 12 GB VRAM
  • NVIDIA driver 616.92 (recorded when preparing this report)
  • CUDA runtime dependencies resolved from the installed CUDA 12.6 bin directory; the release's own DLLs were not replaced
  • Model: higgs-audio-v3-tts-4b-q8_0.gguf
  • Backend: CUDA; device 0; threads 8; offline/non-streaming
  • No reference WAV, transcript, acoustic tokens, voice preset, or default voice preset

Model SHA-256:
79746822045b5bf8f9ab2bda87b16cd3f8ea3d9e319cbcf887a87aa1b537a74a

Release archive SHA-256:
099bd43b74a5175fd9e03ac95c9fabe8b97718826d547890a03950483e81b168

Reproduction

  1. Extract the original Windows CUDA release and make its CUDA runtime dependencies available.
  2. Create an empty voice directory. Configure a single offline Higgs model, with no voice presets:
{
  "host": "127.0.0.1",
  "port": 8087,
  "backend": "cuda",
  "device": 0,
  "threads": 8,
  "lazy_load": true,
  "voice_dir": "E:/higgs-repro/empty-voices",
  "models": [{
    "id": "higgs-tts-3-q8",
    "family": "higgs_audio_tts",
    "path": "E:/models/higgs-audio-v3-tts-4b-q8_0.gguf",
    "task": "tts",
    "mode": "offline"
  }]
}
  1. Adjust the two filesystem paths and start audiocpp_server.exe --config server.json.
  2. Save the following as UTF-8 request.json, then send it as the first synthesis request after startup:
{
  "model": "higgs-tts-3-q8",
  "input": "呜呜呜…求求同学把我放出去吧…哈啊…",
  "options": {
    "seed": 148741174,
    "max_tokens": 2048,
    "temperature": 0.8,
    "top_k": 30,
    "top_p": 0.8
  }
}
curl.exe -i http://127.0.0.1:8087/v1/audio/speech -H "Content-Type: application/json" --data-binary "@request.json"

No reference fields are sent. The ellipsis characters are U+2026. Repeat as the first synthesis request in three fresh server processes. To test the second case, prepend <|emotion:relief|> to exactly the same input; keep all other parameters unchanged.

Expected and actual behavior

Expected: this short utterance should finish normally within the default generation budget. If this pattern is outside the supported behavior of no-reference generation, guidance would help.

Actual at 2048: HTTP 500, with this error:

Higgs TTS generation reached max_tokens (2048) 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

All cases below use temperature 0.8, top_k 30, and top_p 0.8.

Input Seed max_tokens=512 max_tokens=2048
呜呜呜…求求同学把我放出去吧…哈啊… 148741174 1/1 EOC-limit failure 3/3 EOC-limit failures
<|emotion:relief|>呜呜呜…求求同学把我放出去吧…哈啊… 148741174 1/1 EOC-limit failure 3/3 EOC-limit failures

Every trial in this table was the first synthesis request in a separate, freshly started server process. There were no previous synthesis requests, reference-voice caches, automatic retries, or seed changes. Only the input's optional relief prefix and the explicitly listed budget differed.

Additional everyday-text controls, using seed 148741174 and a 2048-token budget, each as the first synthesis request in a fresh process:

Input Result
夜深了,书房里只剩下翻书的声音。 WAV returned, 3.56 s
呜呜呜…我的钥匙找不到了…怎么办呢… WAV returned, 5.00 s
唉…我的钥匙找不到了…怎么办呢… WAV returned, 3.32 s
嗯…今天的天气不错…我们出去走走吧… WAV returned, 4.64 s
哈哈哈…原来钥匙在这里…终于找到了… WAV returned, 4.20 s

These are successful controls, not additional failure reproductions. The ellipsis characters are U+2026.

The normal sentence was also checked after completing this reproduction suite. Its WAV matched the earlier normal controls byte for byte. The fresh-process failures show that this reproduction does not require previous requests or a populated reference-voice cache; they do not prove that all internal cache/attention calculations are correct.

Could you investigate these fixed-seed requests and advise whether the failure is expected without a reference voice? In particular, both the untagged and relief-tagged inputs reach the default 2048-token limit before EOC, while the ordinary controls finish. I have retained all per-request payloads, responses, and server logs locally.

Activity

  1. 0xShug0 commented on Oct 20, 2026

    @0xShug0
    Owner

    @MoyouDE This is relevent to some known issues in Higgs TTS. The difference is that the Python official implementation hides the EOC failure and returns a WAV that appears valid. E.g., Python hit the 2,048-token limit on just 123 Unicode codepoints of Arabic, including vowel marks, producing 81.64 seconds of audio. Usually, if the output is much longer than expected, the generation has followed a bad sampling trajectory for that seed. This can also happen with the official implementation, producing long stretches of silence or noise.

    Recent: boson-ai/higgs-audio#188
    Also in their HF repo: https://huggingface.co/bosonai/higgs-tts-3-4b/discussions/18
    This one is probbaly about the old version of Higgs Audio TTS boson-ai/higgs-audio#163

    Tuning seeds and temperature may help. For your failed test case, with temperature 0.7, top-p 0.95, top-k 50 and three different seeds:

    Case Successful WAVs Durations
    Plain, 2048 3/3 4.88, 6.80, 4.12 s
    Relief-tagged, 2048 1/3 5.60 s
    Normal control, 2048 3/3 3.40, 3.64, 3.36 s
    Plain, 512 3/3 4.88, 6.80, 4.12 s

    plain-seed-148741175-max512.wav
    plain-seed-148741175-max2048.wav
    plain-seed-148741176-max512.wav
    plain-seed-148741176-max2048.wav
    plain-seed-148741177-max512.wav
    plain-seed-148741177-max2048.wav
    relief-tagged-seed-148741176-max2048.wav

  2. 0xShug0 commented on Oct 20, 2026

    @0xShug0
    Owner

    @MoyouDE BTW the failed python output. It produced a wav but just noises

    python-relief-tagged-seed-148741176-max2048-bf16.wav

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions