Repository navigation
server : allow model downloads at model limit fix issue #26809 - #28530
Merged
Merged
Conversation
|
Hi @chenmiaoming, thanks for your contribution! Per our contribution guidelines, the automated PR checker found the following issue(s) that need your attention:
Please note that maintainers reserve the right to make final decisions on PRs. If you believe there is a mistake, please comment below. |
chenmiaoming
marked this pull request as ready for review
September 7, 2026 04:19
Collaborator
|
/bot review |
|
❌ Code review failed. |
chenmiaoming
force-pushed
the
bugfix-26809
branch
from
September 10, 2026 08:49
77d7b23 to
f89ba36
Compare
ngxson
approved these changes
Sep 12, 2026
ServeurpersoCom
approved these changes
Sep 12, 2026
pl752
pushed a commit
to pl752/llama.cpp
that referenced
this pull request
Sep 15, 2026
fencerJP
pushed a commit
to fencerJP/llama-apu
that referenced
this pull request
Sep 16, 2026
quimmedes
pushed a commit
to quimmedes/cafe-llama.cpp
that referenced
this pull request
Sep 16, 2026
zsogitbe
pushed a commit
to zsogitbe/llama.cpp
that referenced
this pull request
Sep 17, 2026
frostyautumnleaf
pushed a commit
to frostyautumnleaf/llama.cpp
that referenced
this pull request
Oct 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
--models-maxis already at capacity,POST /modelsfails with"model limit reached, try again later"(see Misc. bug: Downloading a new model should be possible even if it would exceed models-max #26809).load(), intended to prevent concurrent overcommit, also rejects the download child process.SERVER_CHILD_MODE_NORMAL.DOWNLOADINGstate, whileis_running()only countsLOADED,LOADING, andSLEEPINGinstances (tools/server/server-models.h). Therefore, downloads do not consume model slots, and the child instance is cleaned up after the download exits.models_max=1and preloadMODEL_Bto occupy the only slot, then start a model download. Verify that the download succeeds andMODEL_Bremains loaded.Additional information
see #26809
Requirements