Skip to content

Apply the GGUF's suppress tokens in the WebGPU TTS sampler #210

Closed

Description

@leehack

The WebGPU TTS talker sampler (src/llama_webgpu_tts.cpp ~112–123) builds its chain without the GGUF's tokenizer.ggml.suppress_tokens bias. Upstream common_sampler applies that bias first (common/sampling.cpp 329–342 at llama.cpp v0.9.0 cd959bae). Native fixed the same gap in leehack/llamadart-native#180.

Impact:

Fix: mirror native #180: put llama_sampler_init_logit_bias(n_vocab, {id, -INFINITY}...) built from llama_vocab_get_suppress_tokens first in the chain, and add a unit test that fails without it.

Activity

  1. leehack commented on Nov 7, 2026

    @leehack
    OwnerAuthor

    Triage: bug, P3. Web parity with native #180. Not a release blocker: no shipped web model is known to fail from it. Becomes required before Chatterbox Turbo ships on the web.

  2. added
    bug
    priority:P3
    on Nov 7, 2026
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

    bugpriority:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions