Skip to content

llama_tokenize: too many tokens #92

Closed

Description

@ylchin

I was trying to run an alpaca model on a framework with a relatively large context window, and the following message keeps popping up:
llama_tokenize: too many tokens
how could i bypass this, and what is the maximum number of tokens in this case?

Activity

  1. gjmulder commented on May 12, 2023

    @gjmulder
    Contributor

    I believe this may be a limit in llama.cpp. There was a discussion about having to increase some memory buffers to support larger context sizes.

  2. added
    model
    quality
    on May 12, 2023
  3. abetlen commented on May 12, 2023

    @abetlen
    Owner

    @gjmulder @ylchin fixed, you can now tokenize longer prompts, while this doesn't help with processing longer contexts it should help with chunking conversations / documents embeddings.

  4. added a commit that references this issue on May 17, 2023
    0df288e
  5. added a commit that references this issue on Feb 5, 2024
    7a536e8
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

    modelquality

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions