Skip to content

Full-model speaker-tagged dialogue can fail to emit its stop #32

Open

Description

@krunkosaurus

Speaker-tagged requests accepted by #28 can reach the frame cap on the pinned CUDA full-model profile. This tracks the known limitation separately so #28 can merge with it documented, as discussed in its review.

Reproduced on NVIDIA GB10, Ubuntu 24.04.5, driver 580.178.04, CUDA 13.0.88 and Zig 0.17.0, using recipe 9ec2318 and verified checkpoint revisions full e0a9218aa48888270f06ef1ed9ea67622c0e17d2 / NVFP4 494db08481db952f834b2241bce63fb3dfa72554.

Request:

{"model":"fishaudio/drama-3","input":"<|speaker:1|> Is the train here? <|speaker:15|> It arrives at seven fifteen.","voice":"dialogue","response_format":"pcm","seed":1,"temperature":1.0,"top_p":0.9,"top_k":30}

Server: 1024 frames, 8192 context, one request at a time, prompt cache 0, keep-warm 0. Output is mono 44.1 kHz signed 16-bit PCM. The dialogue catalog has matching speaker 1/15 transcripts. Each profile generated its own synthetic references with seeds 42 and 43: “The small boat crossed the lake.” and “A bright bird landed near the window.” The native drama3-generate encoder prepared them with the selected profile's codec.

Five diagnostic seeds (1–5) per case:

Profile / case Natural stop Frame cap Capped seeds
Full, tagged matching catalog (1/15) 2/5 3/5 1, 2, 4
Full, tags removed, same catalog 5/5 0/5 —
Full, tagged built-in voice without references 4/5 1/5 2
Full, both input and references relabeled 0/1 3/5 2/5 3, 5
NVFP4, tagged matching catalog 5/5 0/5 —
NVFP4, tags removed, same catalog 5/5 0/5 —

Expected: these short requests emit their natural stop. The capped replies instead return HTTP 200, X-Finish-Reason: length, and 4,194,304 PCM bytes (47.554 seconds). The main full-model tagged case takes 35.59–35.87 seconds to render those capped replies; its two natural stops are 4.55–5.02 seconds of audio. This is a stopping diagnostic, not a performance or listening-quality claim.

Relabeling to 0/1 and removing the reference catalog do not reliably avoid it. The full profile has no CFG here; NVFP4 uses its recipe defaults, gamma 1.5 with batched guidance. Engine pins, weights and guidance differ, so this does not isolate quantization as the cause. No Metal or Python-reference result is claimed.

The full-model speaker patch changes admission of nonzero tags, not the existing prompt assembly or end-of-speech selection logic. The cause is not isolated. A useful next diagnostic is the prompt rows and selected semantic/end-of-speech tokens for full-model seeds 1, 2 and 4; the fix should address termination without silently stripping speaker roles or treating a capped reply as successful completion.

The per-seed summary and documented limitation are committed in #28 at 6cd48e6. Raw requests, PCM/WAV, reference catalogs and logs are retained privately.

Activity

  1. added a commit that references this issue on Oct 30, 2026
  2. plotarmordev commented on Oct 30, 2026

    @plotarmordev
    Owner

    Measured on TensorFold v1.1.9 (PR #33 diagnostic): tagged dialogue still reaches the frame cap on 3/5 seeds, untagged 0/5, byte-identical to the previous pin with patches 0001–0015. So v1.1.9 doesn't change this; the cause is still open.

  3. plotarmordev commented on Nov 21, 2026

    @plotarmordev
    Owner

    Card 55 traced the same mechanism on the Mac int3 build and fixed it there; the evidence suggests this issue shares the cause.

    Mechanism (per-frame logits traces, results/smaller-builds/stop-decision-20261121.json on branch feat/55-drama-3-the-built-in-voice-stops-when-th): after the speech the model wants to end, one token carries ~96.6 % of the candidate mass with eos rank 1 at 2–22 % — and eos's cumulative probability then exceeds both top_p cutoffs (0.9 request draw, 0.95 RAS redraw), so both truncated draws exclude eos every frame. A stop the model asks for cannot be drawn, and the take runs to the frame cap. Capped full-model tagged-dialogue takes show the same signature: the model wants to stop; the sampler truncates the stop away.

    Fix (Metal patch 0008, same branch): keep the eos candidate slot in every nucleus (one kept-rule term in draw_top, one slot argument, both main-token draws) and fill an unset serve silence guard at −40 dBFS / 3.5 s to end the trailing quiet the same collapse produces. On the smaller-builds protocol this removes every cap: medium-05 ends naturally on both salts, all 44 passing built-in takes and 47 of 48 reference takes stay byte-identical, reference WER unchanged at 1.78 % / 0.97 % with 0 failed.

    The CUDA nvfp4 sampler (this engine's engine/nvfp4/patches line) takes the same two changes; the full-model line needs the same exemption in its sampler. No CUDA window was available for the port in card 55.

  4. plotarmordev commented on Nov 21, 2026

    @plotarmordev
    Owner

    Correction to my earlier comment: the mechanism there (eos excluded from both truncated nuclei under a silence-dominant distribution) is traced and proven on the Mac int3 build, not on the full model — for issue #32's full-model tagged-dialogue caps it is a hypothesis: the symptom is consistent (takes run to the cap while the model wants to stop), but no full-model per-frame trace has been taken. The evidence and the fix live in results/smaller-builds/stop-decision-20261121.json and trace-20261121/ on branch feat/55-drama-3-the-built-in-voice-stops-when-th. If a full-model trace confirms the same eos-exclusion signature, the same two changes (keep the eos slot in every nucleus; fill an unset serve guard) apply to its sampler.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions