Skip to content

Misc. bug: Server often does "selected slot by LRU" despite high level of similarity with earlier prompts #17673

Description

@Nekotekina

Name and Version

version: 7218 (ec18edf)
built with cc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 for x86_64-linux-gnu

Operating systems

Other? (Please let us know in description)

Which llama.cpp modules do you know to be affected?

llama-server

Command line

Problem description & steps to reproduce

When doing consecutive requests to the server, sometimes it selects existing slot by similarity. But sometimes, it does not, it switches to new slot by LRU (least recent) and recomputes the prompt. It doesn't make sense, I couldn't find any clue about how it "chooses" the desired behaviour and undesired one. I used --keep -1, otherwise it doesn't do any similarity check at all?

First Bad Commit

I'll try to debug it myself later, it seems easier than do bisecting.

Relevant log output

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions