Skip to content

Prompt token count (3784) exceeds batch capacity (2048) #89

@hg0428

Description

@hg0428

[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Generation error: LlamaException: Prompt token count (3784) exceeds batch capacity (2048)

Why is it doing this? The context size is sufficiently high. Batch size just determines how much should be in each batch. If there are more, it should run multiple batches. In the Llama.cpp CLI it usually works fine, right?
Does this mean we need to set the batch size to the max context length to even get it to work?
What's going on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions