Skip to content

Speed up prefill stage #10

Description

@benlebrun

For long prompts, the prefill stage, in which we create a beam state corresponding to an input byte sequence in preparation for conditional generation, can be quite slow.

We should think about faster alternatives which do not involve processing the input byte sequence byte-by-byte, but rather use a modified version of the token healing heuristic to initialize the beam (modified so that it doesn't suffer from the degenerate cases we have identified with this heuristic).

Tagging @chanr0

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