Repository navigation
fix(inference): validate recipe memory against effective container limits - #14311
Merged
Merged
Conversation
…mits Signed-off-by: Ho Lim <subhoya@gmail.com>
Contributor
Author
Authoring session — openingTask-only interval in a long-lived recovered chat: 2026-11-09T06:10:04Z through 2026-11-09T06:27:30Z, including idle time, resource-throttled compilation, investigation of other v1 paths, and this fix. Earlier and inherited activity is excluded. The parent and both reused sidecar records were inspected and matched to the branch and changed files. Raw records are not published.
|
Signed-off-by: Ho Lim <subhoya@gmail.com>
…ve-memory Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Report the container memory limit that applied, which is 104 GiB when container.memoryLimitGiB is omitted, instead of a second message with a literal default. The value comes from ServiceContainer::resources and therefore DEFAULT_MEMORY_LIMIT_GIB. Check every omission and explicit case in one table test. Signed-off-by: Carlos Villela <cvillela@nvidia.com>
The table already checks preparation against the effective limit, so two host IPC rows replace the separate test; the private shared-memory refusal stays covered by the portable memory limit test. Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Collaborator
|
/ok to test 6022f6b |
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.
Reject a managed vLLM recipe when its declared preparation memory exceeds the container's effective memory limit, including the default limit.
Problem
Model containers retain a 104 GiB memory limit when
container.memoryLimitGiBis omitted.Configuration validation checks recipe preparation memory only when that field is explicit.
A recipe that declares 128 GiB can therefore be admitted with a 104 GiB container limit, either without
containeror with only CPU settings.Recipe preparation runs inside that container.
Resolves #14310; follow-up to #13058.
Change
Use the same resolved container resources for memory validation and process configuration.
Validate the preparation requirement when either optional configuration layer is absent.
Name the effective limit in the refusal, for example
the container limit is 104 GiBwhencontainer.memoryLimitGiBis omitted.Preserve explicit limits, the host-IPC exemption, and the existing shared-memory constraint.
Cover both omission paths, equality with the default, explicit sufficient and insufficient limits, and Host IPC, which exempts shared memory but not preparation.
Do not raise limits or add the host reserve to the container comparison.
Beyond CI
Four temporary regressions each failed the intended behavioral assertion, then were reverted: bypassing preparation validation with a container configuration, removing the Host IPC shared-memory exemption, exempting Host IPC from preparation limits, and rejecting preparation equal to the limit.
No recipe preparation or GPU workload was executed.
The regression covers configuration consistency, not successful recipe execution or measured memory consumption.
Signed-off-by: Ho Lim subhoya@gmail.com