Skip to content

fix(distributed): reload changed model context - #11567

Open
localai-org-maint-bot wants to merge 1 commit into
masterfrom
cron/fix-11566-distributed-context-20260817
Open

fix(distributed): reload changed model context#11567
localai-org-maint-bot wants to merge 1 commit into
masterfrom
cron/fix-11566-distributed-context-20260817

Conversation

@localai-org-maint-bot

Copy link
Copy Markdown
Collaborator

Description

This PR fixes #11566.

Distributed routing reused a warm worker by model ID even when the model context changed. An idle replica now compares its persisted load context with the current model options. When they differ, the router retires that exact replica and uses the existing cold-load path to recreate it with the configured context.

Busy replicas and legacy registry rows without stored options remain untouched.

Notes for Reviewers

Focused verification:

go test -race ./core/services/nodes -ginkgo.focus="Route \\(mock-based\\)" -count=1

The full go test ./core/services/nodes -count=1 run reached 255 passing specs, but 217 database-backed specs could not start because this cron environment has no rootless Docker/Postgres provider.

Signed commits

  • Yes, I signed my commits.
  • Documentation updated (docs/content/) for user-facing changes, or not applicable

Distributed routing reused a warm worker by model ID even when the
model context changed. The worker kept its original context and truncated
requests at that old limit.

Retire an idle replica when its stored context differs. The existing
cold-load path then starts that replica with the current model options.

Assisted-by: Codex:gpt-5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remote workers in Distributed Nodes, do not update Context/Token size limit for LLMs.

1 participant