Skip to content

apr serve request path: BPE tokenization, graceful drain, oversize prompts and correct CUDA request batching #5329

Open
0 of 3 issues completed

Description

@noahgift

Scope: The serve request path: GGUF prompts tokenized by greedy longest-match instead of BPE merges, mis-tokenized end-of-turn tokens, no drain on SIGTERM, and 500s instead of a named refusal for prompts over the KV budget.

Why it matters: These change answers between apr run and apr serve, and break clients during restarts and on long prompts.

Done when: apr serve and apr run produce the same token ids for the same prompt, SIGTERM drains in-flight requests, and over-budget prompts get a 4xx with a reason, each covered by a serve test.

Epic: #3994. Folded under triage rule 7b (2026-10-14): each row below was its own issue, closed as not planned and kept here as a sub-ticket. Reopen an issue when its work starts or its PR opens.

Sub-tickets

Merged in (TRIAGE-100, 2026-10-14)

Activity

  1. added this to the 0.71.0 milestone on Oct 14, 2026
  2. added
    bugSomething isn't working
    P1High priority
    on Oct 14, 2026
  3. modified the milestones: 0.71.0, 0.72.0, 0.73.0 on Oct 14, 2026
  4. changed the title [-]apr serve request path: BPE tokenization, graceful drain, no 500 on oversize prompts[/-] [+]apr serve request path: BPE tokenization, graceful drain, oversize prompts and correct CUDA request batching[/+] on Oct 14, 2026
  5. noahgift commented on Oct 15, 2026

    @noahgift
    MemberAuthor

    Folded in (cop batch 10:31Z): #5312 — each is now a checklist row of this master.

  6. noahgift commented on Oct 22, 2026

    @noahgift
    MemberAuthor

    Tracked in #5348 (triage 2026-10-22).

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

    P1High prioritybugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions