Skip to content

DiskGraph rejects next-token samples that exactly fit the token budget #494

Done

Description

@nittin-murthi

A six-token history produces five model inputs because the last token is used only as a target. With the budget set to five, DiskGraph reports that one sample exceeds the limit. Both packed and padded batches should deliver the five inputs with their matching next-token labels.

Failing test · Packed case in CI · Padded case in CI

Activity

  1. added
    bug
    on Nov 23, 2026
  2. added a commit that references this issue on Nov 25, 2026
    a8173e2
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions