Skip to content

Batched Inference to Improve GPU Utilisation #493

Open
@lachlancahill

Description

@lachlancahill

Is your feature request related to a problem? Please describe.
When using this library in a loop, I am getting poor GPU Utilisation running zephyr-7b.

Describe the solution you'd like
It would be fantastic to be able to pass a list of prompts to a function of the Transformers class, and define a batch size like you can for a huggingface pipeline. This significantly improves speed and GPU utilisation.

Additional context
GPU utilisation for reference:
image

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