Skip to content

Feature Request: --live-context-workspace #180

Description

@Almazick

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

Please implement the feature from https://github.com/GenerelSchwerz/llama.cpp

--live-context-workspace, --no-live-context-workspace
for supported attention caches, grow the compute workspace reservation
with the padded live physical KV extent instead of reserving the full
context up front (default: disabled)
(env: LLAMA_ARG_LIVE_CONTEXT_WORKSPACE)

--phase-aware-workspace, --no-phase-aware-workspace
resize compute workspaces between prompt processing and token
generation; later prompt turns regrow the prompt reservation (default:
disabled)
(env: LLAMA_ARG_PHASE_AWARE_WORKSPACE)

Motivation

It speeds up the token generation at lower context size

Possible Implementation

No response

Activity

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions