Skip to content

Add option for LRU eviction on memory pressure / load #9375

@Xnyle

Description

@Xnyle

Is your feature request related to a problem? Please describe.
Usecase is that i have limited memory but want to test multiple models while still need to maintain certain smaller models always in memory.

Describe the solution you'd like
New Setting: LRU eviction on model load:

LRU eviction that fires whenever a new model /backend is about to be loaded, Triggers if the to be loaded model would not fit in memory (same calculation as on the model gallery). eviction target(s) are biggest models first, keep smaller ones in memory.

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