Skip to content

[feat] Omit padded tokens in generate() of huggingface transformers #17

Description

@XbzOnGit

Currently generate() of huggingface transformers pads all requests in a batch to the same length both in prefill and in decode.
This leads to offloading meaningless padded tokens, which can be a lot if some requests are notably longer than others.

Activity

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