Skip to content

Feature Request: Add --no-kv-offload support for batched-bench #9302

Description

@rajesh-s

Prerequisites

  • I am running the latest code. Mention the version if possible as well.
  • I carefully followed the README.md.
  • I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
  • I reviewed the Discussions, and have a new and useful enhancement to share.

Feature Description

The KV buffers are always allocated on the GPU by default (even when there are no layers offloaded i.e. -ngl 0). This can be disabled with the --no-kv-offload option as discussed here, but this option is currently not implemented in batched-bench.cpp. Doing so would help profile without the use of the GPU side buffers.

Motivation

llama-bench already supports this feature. Keeping it consistent with llama-batched-bench would improve the utility of batched-bench on heterogeneous systems.

Possible Implementation

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions