Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elide logits if the logits pointer parameter is NULL #107

Merged
merged 2 commits into from
Jun 27, 2023

Commits on Jun 27, 2023

  1. Completely skip calculation of logits if nobody cares

    This speeds up sequence mode evaluations by up to 20% if you ingest
    a large prompt and then only retrieve the logits at the very end.
    
    Note that you must pass a NULL pointer to the logits parameter in
    order to take advantage of this optimization.
    LoganDark committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    9d8ddba View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f5d6af9 View commit details
    Browse the repository at this point in the history