LocalAI/core/http/views
Ettore Di Giacinto fc5b9ebfcc
feat(loader): enhance single active backend to support LRU eviction (#7535)
* feat(loader): refactor single active backend support to LRU

This changeset introduces LRU management of loaded backends. Users can
set now a maximum number of models to be loaded concurrently, and, when
setting LocalAI in single active backend mode we set LRU to 1 for
backward compatibility.

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* chore: add tests

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* Update docs

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* Fixups

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

---------

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-12-12 12:28:38 +01:00
..
partials fix(ui): navbar ordering and login icon (#7407) 2025-12-01 21:20:11 +01:00
404.html fix(ui): Update few links in web UI from 'browse' to '/browse/' (#7445) 2025-12-06 22:40:26 +01:00
agent-job-details.html chore: refactor css, restyle to be slightly minimalistic (#7397) 2025-11-29 22:11:44 +01:00
agent-jobs.html feat(agent-jobs): add multimedia support (#7398) 2025-11-30 14:09:25 +01:00
agent-task-details.html feat(agent-jobs): add multimedia support (#7398) 2025-11-30 14:09:25 +01:00
backends.html feat(ui): allow to order search results (#7507) 2025-12-11 00:11:33 +01:00
chat.html fix(ui): prevent box overflow in chat view (#7430) 2025-12-04 17:21:17 +01:00
error.html fix(ui): Update few links in web UI from 'browse' to '/browse/' (#7445) 2025-12-06 22:40:26 +01:00
explorer.html chore: refactor css, restyle to be slightly minimalistic (#7397) 2025-11-29 22:11:44 +01:00
index.html chore: refactor css, restyle to be slightly minimalistic (#7397) 2025-11-29 22:11:44 +01:00
login.html fix(ui): navbar ordering and login icon (#7407) 2025-12-01 21:20:11 +01:00
manage.html fix(ui): Update few links in web UI from 'browse' to '/browse/' (#7445) 2025-12-06 22:40:26 +01:00
model-editor.html chore: refactor css, restyle to be slightly minimalistic (#7397) 2025-11-29 22:11:44 +01:00
models.html feat(ui): allow to order search results (#7507) 2025-12-11 00:11:33 +01:00
p2p.html chore: refactor css, restyle to be slightly minimalistic (#7397) 2025-11-29 22:11:44 +01:00
settings.html feat(loader): enhance single active backend to support LRU eviction (#7535) 2025-12-12 12:28:38 +01:00
talk.html chore: refactor css, restyle to be slightly minimalistic (#7397) 2025-11-29 22:11:44 +01:00
text2image.html feat(agent-jobs): add multimedia support (#7398) 2025-11-30 14:09:25 +01:00
tts.html chore: refactor css, restyle to be slightly minimalistic (#7397) 2025-11-29 22:11:44 +01:00