Skip to content

fix(inference): validate recipe memory against effective container limits - #14311

Merged
cv merged 5 commits into
NVIDIA:v1from
HOYALIM:codex/v1-recipe-effective-memory
Nov 16, 2026
Merged

cv merged 5 commits into
NVIDIA:v1from
HOYALIM:codex/v1-recipe-effective-memory

Conversation

@HOYALIM

@HOYALIM HOYALIM commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

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.memoryLimitGiB is 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 container or 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 GiB when container.memoryLimitGiB is 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

…mits

Signed-off-by: Ho Lim <subhoya@gmail.com>
@copy-pr-bot

copy-pr-bot Bot commented Nov 9, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@HOYALIM

HOYALIM commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author
Authoring session — opening

Task-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.

Field Status Value Evidence or limit
Harness partial Codex Desktop Creation metadata identifies the app and continuity-recovery provenance, not the app version at each resume.
Skills partial test-driven-development; write-tests Complete reads appear in the task interval. Earlier inherited PR-loop and publication guidance reads are excluded.
Instruction files partial AGENTS.md; WRITING.md; pull-request template; session-report template Complete task-interval reads, including the sidecar's untruncated AGENTS.md output. Earlier inherited instructions and excerpted references are not a complete instruction inventory.
Tool calls partial Parent: 69 exec wrappers; executor: 10; reviewer: 9 Attempted outer calls through the fixed cutoff, including failures. Nested operations and wrapper counts are not added together; exact nested invocation totals are not asserted.
Session window recorded 2026-11-09T06:10:04Z–06:27:30Z; 17 min 26 s Task interval including build waits and unrelated candidate investigation, not exclusive active editing time. Later validation and publication are excluded.
Compactions partial 0 observed in the task interval No compaction event in the inspected interval; continuity-recovery metadata does not establish earlier history.
Models partial Sidecars: gpt-6.1-sol Sidecar turn contexts through the cutoff; no parent model context appears within the task interval.
Reasoning levels partial Sidecars: low Sidecar turn contexts through the cutoff; parent reasoning metadata is absent from the task interval.

Signed-off-by: Ho Lim <subhoya@gmail.com>
@wscurran wscurran added area: local-models Local model providers, downloads, launch, or connectivity area: providers Inference provider integrations and provider behavior provider: vllm vLLM local or hosted provider behavior v1 NemoClaw v1 branch labels Nov 12, 2026
cv added 3 commits November 15, 2026 23:55
…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>
@cv

cv commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

/ok to test 6022f6b

@cv
cv marked this pull request as ready for review November 16, 2026 07:20
@cv
cv merged commit 3e90ae0 into NVIDIA:v1 Nov 16, 2026
66 of 67 checks passed
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: local-models Local model providers, downloads, launch, or connectivity area: providers Inference provider integrations and provider behavior provider: vllm vLLM local or hosted provider behavior v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants