Skip to content

Why llamaCpp only support batchsize=1 in text generation  #283

@neozhang307

Description

@neozhang307

I wonder why there is such a limitation in llamacpp?
if self.config.task == "text-generation":
if input_shapes["batch_size"] != 1:
raise ValueError("Batch size must be 1 for LlamaCpp text generation")

In '/optimum_benchmark/backends/llama_cpp/backend.py'

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