Repository navigation
chore: OPS-8654 bump trtllm to v1.3.0rc27 - #15060
Conversation
Signed-off-by: dynamo-ops <[email protected]>
The OpenEngine servicer ships from release 1.3.0rc27; `container/context.yaml` pinned 1.3.0rc26, so the sidecar e2e test on main could not run this branch's launcher at all. #15060 moves that pin, with the two-arch compliance baseline re-captured in the same commit -- which is why the bump is its own PR rather than a commit here: the baseline can only come from a capture on a runner with the headroom, and the licenses stage subtracts it from NOTICES. With the bump underneath, `tests/serve/test_sidecar.py`'s TensorRT-LLM case runs rather than skips. The capability probe stays, but it now guards the off-container and downgraded-image paths instead of the pin itself, and its reason says so: seeing that skip in CI means the pin moved backwards. Signed-off-by: tanmayv25 <[email protected]>
|
/ok to test 7202889 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (8)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. WalkthroughThe change updates TensorRT-LLM references from earlier release candidates to ChangesTensorRT-LLM rc27 alignment
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to The updated runtime, dependency, SBOM, and documentation references are internally aligned. No actionable defect is established from the available CI information. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
Comment |
…tllm 1.3.0rc27 Signed-off-by: Dmitry Tokarev <[email protected]>
18b004f to
a3bda42
Compare
|
/ok to test a3bda42 |
dmitry-tokarev-nv
left a comment
There was a problem hiding this comment.
First review round: trtllm 1.3.0rc27
One P1 and one P2. I hold on the P1: the shipped TensorRT-LLM images cannot build until a package the new base image adds gets an entry in the override list.
The bump itself is sound. I checked the parts that have gone wrong on earlier release-candidate bumps and found no new problem in them.
What I checked, and what each check returned
Reviewed at head a3bda421d6fe9ec0371725133eeebcfb5dce4c53. I also merged the current main tip 81fa669fcb into the head in a scratch tree and re-ran every check there. main touched none of the nine files, and every result below held.
The version numbers all agree with the registry. I asked nvcr.io for the manifest-list digest of each tag:
| tag | digest from the registry | in manifest.json |
|---|---|---|
1.3.0rc27 |
sha256:2af290225a38d163b26af3be48581a722db98a594e839ff1e3675cc2c69f1df8 |
yes, and the stem release@2af29022 matches |
1.3.0rc25 |
sha256:2366e4b4bdb385fcb38642a4555cbd091c4f8b1a27ff567a47acbe815dd49e86 |
this is the file the PR replaces |
That also shows what this PR fixes. On main the baseline SBOM was captured from 1.3.0rc25 while context.yaml pointed at 1.3.0rc26, which is a third, never-captured image (sha256:3251f8ad...). The PR closes that gap.
The pin is installable. pypi.nvidia.com lists the same three wheel filenames for rc25, rc26 and rc27: cp310 and cp312 for manylinux_2_28_x86_64, and cp312 for manylinux_2_39_aarch64. A search for a made-up version returned nothing, so the search itself discriminates.
The generated files are not stale. python3 docs/fern/scripts/gen_llms_tables.py --check reports every page unchanged, and .github/scripts/dep_upgrade/check_bump_dependency.py passes. Of the nine files, six are generated and three are hand-written. The two .cdx.json files and manifest.json come from the SBOM capture, compatibility.mdx and releases-machine-readable.mdx are spliced by gen_llms_tables.py, and releases.data.ts is rewritten by bump_dependency.py. context.yaml, pyproject.toml and trtllm_runtime.Dockerfile are the hand-written three, and the Dockerfile is the only one a person edited here.
The known traps from earlier bumps. No shared-library name collision is introduced: the DALI copy keeps its hash in the filename and the PyNvVideoCodec copy does not, in the outgoing and the incoming SBOM alike, so the set of names does not change. The DALI version does match what rc27 ships, which is the subject of the P2. No dependency marker changes. DALI stays an exact pin and PyNvVideoCodec stays a floor, each matching the note that explains it. No ARG is added or moved across a FROM.
Nothing else in the tree still says rc26. I searched the whole tree. lib/sidecar/trtllm/deploy/agg.yaml:48 still names 1.3.0rc25, but it was already behind before this PR and the bump script does not list it as a target, so it is out of scope here.
The base image moved more than the TensorRT-LLM version. Comparing the two SBOMs, the CUDA packages go from cuda-*-13-2 to cuda-*-13-4, and two dpkg packages appear that were not there before. One of those is the P1.
Where I stopped. I did not build the multi-arch image, so everything about the image contents comes from the two SBOMs, the CI logs, and the registry. The compliance audit and the container test stages never ran on this head, so I cannot report a result for them.
|
The
rc26's base shipped DALI 2.1.0, so I re-measured, which Same posture the pin produced, so the stock 2.2.0 satisfies the policy on its own. Deleting the RUN is step one of four — the other three are coupled to it:
Nothing else about the bump looks wrong: Happy to push the patch if you'd rather review than write it. |
`dpkg-query -W` lists a package that dpkg removed but did not purge, the
`config-files` state, exactly like an installed one. syft, which captures the
baseline SBOMs under container/compliance/base_sboms/, catalogs installed
packages only. So a leftover entry in a base image survives baseline
subtraction, has no /usr/share/doc/<pkg>/copyright to read, and reaches the
policy gate as UNKNOWN.
The TensorRT-LLM base images carry two such entries. Through 1.3.0rc26 they are
`doca-sdk-common` and `mlnx-dpdk`, and both already have a license_overrides.yaml
entry, so the gate passed. 1.3.0rc27 renames the second one to `dpdk-community`,
which no entry matches, and both shipped images stop at the licenses stage:
[dpkg] [email protected]: license is UNKNOWN and
policy.licenses.unknown = 'deny' (SPDX: 'UNKNOWN')
`dpkg-query -L dpdk-community` in that base image returns one conffile,
/etc/ld.so.conf.d/dpdk-x86_64-linux-gnu.conf, and no library or binary. An
override states a license for software the image does not carry, and writes it
into NOTICES-Apt.txt, so read the install state instead.
Read ${db:Status-Status} and skip `not-installed` and `config-files`. Every
other state leaves the unpacked files in place, so those stay in the inventory.
dpkg-query prints an empty value for a field it does not know and still exits 0,
so an empty status keeps the package rather than emptying the inventory.
Measured in nvcr.io/nvidia/tensorrt-llm/release:1.3.0rc27 with the same
generator and validate commands the licenses stage runs. Before: 511 collected,
2 left after subtraction, `License validation failed: 1 violation(s)` on
dpdk-community. After: 509 collected, 0 left, `License validation passed`.
Control on a full built trtllm-runtime image against the rc26 baseline: 38 rows
before, 36 after, passing both ways, and the two dropped rows are
doca-sdk-common and mlnx-dpdk. Built sglang-runtime and vllm-runtime images hold
no entry in either state, so their inventories do not move.
The overrides stay in place. Whether the dev images or cuda-dl-base install
those packages for real is a separate question.
Verified on amd64 only. The arm64 leg of the failing job never reached the
licenses stage, and the new test skips where dpkg-query is absent, such as macOS.
Co-Authored-By: Claude Opus 5 <[email protected]>
Signed-off-by: Dmitry Tokarev <[email protected]>
…hing 1.3.0rc27 ships DALI 2.2.0 in the base image, and commit a3bda42 moved the pin to match, so three statements in the note above the block stopped describing the code under them. The install is now a no-op: DALI in base image: 2.2.0 Requirement already satisfied: nvidia-dali-cuda130==2.2.0 in /usr/local/lib/python3.12/dist-packages (2.2.0) DALI version: 2.2.0 registers: 440 decoders, 0 encoders VERDICT: none of the excluded decoders are registered That leaves the block holding two checks, the version tripwire and the decoder enumeration, and the second one had a hole. It finds the library to enumerate with `find ... -name 'libavcodec*.so*'` and loops over the result, so an empty match checks nothing and exits 0. A release that links the codec into a differently named library, which is what PyNvVideoCodec 2.2.0 does three blocks below, passes this guard while shipping decoders. Fail on an empty match instead, in the runtime_full block and in the post-overlay guard that repeats it. Verified by extracting each RUN body from this file, joining the continuations the way Docker does, and running it under /bin/sh. In nvcr.io/nvidia/tensorrt-llm/release:1.3.0rc27 the first block exits 0 and prints the verdict above; with the glob pointed at an empty directory it exits 1 with the new message. Same two runs for the post-overlay guard on a built trtllm-runtime image: exit 0 as it stands, exit 1 on an empty glob. The note now also states what the tripwire does and does not catch. It fires when a base image moves DALI past 2.2.0. A base that moves it back below 2.2.0 passes the tripwire, and the install puts the measured version back. Co-Authored-By: Claude Opus 5 <[email protected]> Signed-off-by: Dmitry Tokarev <[email protected]>
|
Superseded: this comment named a SHA that does not exist on this branch. The head is |
|
/ok to test eed1472 |
The DALI waiver in codec_policy.yaml ends with "Re-measure when the vendored version moves." It moved: the 1.3.0rc27 base image carries DALI 2.2.0, where rc25 and rc26 carried 2.1.0. Record the measurement, taken with the repository's own enumerate_bundled_decoders.py against nvcr.io/nvidia/tensorrt-llm/release:1.3.0rc27: 440 decoders, with h264, hevc, aac, aac_fixed and aac_latm absent and vp8, vp9, mjpeg and av1 present. Same posture the 2.1.1 pin produced. Two statements in the same note needed the same pass. It said the Dockerfile pins `nvidia-dali-cuda130>=2.1.1`, where the pin is exact and now reads `==2.2.0`, which the base already carries. It said one guard runs "after the upgrade", where that install is now a no-op. It also did not say that both guards fail on an empty glob, which they do as of the previous commit. Text only. No glob, owner or deny rule changes. Co-Authored-By: Claude Opus 5 <[email protected]> Signed-off-by: Dmitry Tokarev <[email protected]>
|
Thank you, and your measurement matches mine: 440 decoders, the five absent, vp8, vp9, mjpeg and av1 present, taken with The head now moves the pin to 2.2.0 instead of deleting the RUN. Commit Why keep the block. With the pin at the base version the install is a no-op, which the build log on this head confirms: What it still buys is its two checks. The tripwire stops the next base image that moves DALI past 2.2.0 and asks for a re-measurement, which is what the waiver in Your point 3, and a hole in that enumeration. It picks the library with Your point 1, the whiteout. Keeping the install keeps it coherent, and the note now says what it is: inert while the install is a no-op, load-bearing again the moment a base image ships an older DALI. Your point 2, the waiver. Corrected in If you prefer the deletion path, say so and I will switch. It is your call, and your four coupled edits are the right list. Deletion also needs an answer for what covers the content check between base bumps, since the post-COPY guard alone cannot see a One correction to the scope. That run had a second failure, not only the DALI guard. |
|
/ok to test 24344f2 |
A skipped entry leaves its conffiles under /etc, so the NOTICES file and the CSV
it drops out of are the only record that the package was ever there. The count
alone gives whoever reads the next OSRB diff no way to explain the removal.
Log the name, version and dpkg state of each skipped entry at INFO. On
nvcr.io/nvidia/tensorrt-llm/release:1.3.0rc27 that reads:
Skipped dpkg entries: [email protected] (config-files),
[email protected] (config-files)
Co-Authored-By: Claude Opus 5 <[email protected]>
Signed-off-by: Dmitry Tokarev <[email protected]>
7a57fd6 changed the expected tensor from `_create_tensor_on_gpu().cpu()` to a CPU `torch.arange(..., dtype=torch.float16)`. The producer builds its tensor on the GPU. Past 2048, float16 cannot hold every whole number, and CUDA and the CPU round the arange differently. So the assertion fails whenever the IPC transfer works. Measured on an amd64 GPU host: the two tensors differ in 9719 of 204800 elements, in the rc27 image (torch 2.14) and in the rc26 main image (torch 2.12). Element 29266 is 29264.0 from CUDA and 29280.0 from the CPU. Run alone in the rc27 image with the Open MPI fix, the 7a57fd6 version fails at `assert torch.equal(result, expected)` and this version passes. The rest of 7a57fd6 stays as it is. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Dmitry Tokarev <[email protected]>
|
/ok to test d8b48f5 |
|
Two commits on top of
The commit applies the base image's two edits to the selected Open MPI and fails the build if either setting survives.
At CI's 2 concurrent slots on the same host, the 1-GPU suite passed with both commits (14 passed, 1 skipped). The image as shipped also passed there, but the IPC test's children waited 4.8-6.8 s for a CPU, against 0.0 s with the fix. So the host does not reproduce the CI timeout, and the CI run on |
container/dev/50-framework-paths.sh reset OPAL_PREFIX, PATH and LD_LIBRARY_PATH to /opt/hpcx/ompi in every login shell. In the TRT-LLM 1.3.0rc27 images, /opt/hpcx/ompi is Open MPI 5, but the image selects Open MPI 4 on amd64 through /opt/dynamo/mpi. dev.Dockerfile runs its later RUN steps in a login shell, and SSH and `bash -l` sessions read the same file. So all of those switched back to Open MPI 5. The profile now prefers /opt/dynamo/mpi when it exists. Otherwise it uses /opt/hpcx/ompi, as before. Measured with the profile sourced by `bash -l` in the CI test image for 1ff5387, on an amd64 GPU host: - Before: OPAL_PREFIX=/opt/hpcx/ompi, mpirun from /opt/hpcx/ompi5, and mpi4py maps /opt/hpcx/ompi5/lib/libmpi.so.40.40.7 (Open MPI 5.0.10rc2). - After: OPAL_PREFIX=/opt/dynamo/mpi, mpirun is /opt/hpcx/ompi4's orterun, and mpi4py maps /opt/hpcx/ompi4/lib/libmpi.so.40.30.8 (Open MPI 4.1.9a1). Three controls give the same result with both versions: the rc27 base image and the rc26 main image, which have no /opt/dynamo/mpi, and a host with neither directory. The helper variable does not leak, and both versions pass `dash -n`. Not verified: the dev and local-dev images themselves. The check sourced the changed file in the runtime test image, because the AWS session that pulls the CI dev images had expired. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Dmitry Tokarev <[email protected]>
a95a226 skipped every dpkg entry in the `config-files` state as if it had no files. That state means removed but not purged: dpkg deletes the package's files and keeps its conffiles, and those still ship. Both such entries leave files, in the TensorRT-LLM 1.3.0rc27 base image and in the built image: - doca-sdk-common: /etc/ld.so.conf.d/doca-runtime-x86_64-linux-gnu.conf and /etc/profile.d/doca-runtime.sh, each with an NVIDIA proprietary header. - dpdk-community: /etc/ld.so.conf.d/dpdk-x86_64-linux-gnu.conf. The generator now skips a `config-files` entry only when dpkg lists its conffiles and none of them is on disk. When the list is empty or the query fails, the package stays. The log names each kept package with its surviving conffiles. A kept dpdk-community needs a license. The package ships no copyright file: dpdk-community_26.03.0.5-1_amd64.deb from the public DOCA 3.5.0 repository has none, and its only SPDX tags are seven BSD-3-Clause tags. Its conffile is byte-identical to the one in the image. A BSD-3-Clause override matches the existing mlnx-dpdk entry. doca-sdk-common already has an override. Measured with the licenses stage's own generator and policy commands, in the CI test image for 1ff5387 (amd64, baseline release@2af29022): - Before: 526 collected, 2 skipped, 501 subtracted, 25 left, passed. The numbers match the licenses stage in CI build job 107010723999. - After: 528 collected, 0 skipped, 501 subtracted, 27 left, passed. doca-sdk-common is LicenseRef-NVIDIA-Proprietary and dpdk-community is BSD-3-Clause. - Control, after but without the new override: "License validation failed: 1 violation(s)", with dpdk-community UNKNOWN. The tests pin both directions. Against the previous generator, the three tests that keep a removed package fail. Against main's generator, the test that skips a package with no conffile left fails. All 8 pass in the image, including the two that run the real dpkg-query. Not verified locally: arm64. CI builds and checks both architectures. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Dmitry Tokarev <[email protected]>
The affinity test pinned only the settings edit. A change that pointed /opt/dynamo/mpi at Open MPI 5 on amd64 would still pass it, because Open MPI 5's settings file already has the edit. tests/dependencies/test_trtllm_mpi.py replaces it. It checks the built image for five things: - /opt/dynamo/mpi resolves to /opt/hpcx/ompi4 on x86_64 and to /opt/hpcx/ompi5 on aarch64, and mpirun on PATH comes from that tree. - mpi4py loads libmpi from that tree. - MPI.COMM_SELF.Spawn reaches its child. TRT-LLM's MpiPoolSession starts its workers this way. - Two ranks connect under `mpirun --mca pml ob1`, which the operator's multi-node launch uses. - MPI_Init keeps the CPU affinity. This is the old test, unchanged. Measured on an amd64 GPU host, with the host network, as the image's uid 1000: - CI test image for 1ff5387, as shipped: the ob1 and affinity tests fail. - The same image with the settings edit: 5 passed in 6.9 s. It also passes as uid 1001, which is CI's user, and as root. - The same with /opt/dynamo/mpi pointed at ompi5: the selection and spawn tests fail. The spawn check depends on the network. With the ompi5 link, spawn fails while the host's interfaces are visible (UCX tries 10.42.0.0), and passes in a bridge network or with OMPI_MCA_pml=ob1. The selection check does not depend on the network, so it is the one that pins the amd64 choice everywhere. The Dockerfile note records this for whoever removes the workaround. Not verified: arm64. CI's arm64 TRT-LLM job runs only GPU-free tests (255 passed, 23 skipped at d8b48f5), so no serving test starts a worker on arm64 there. These tests run there on Open MPI 5. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Dmitry Tokarev <[email protected]>
|
/ok to test 2111e3f |
The spawn test from 2111e3f failed on CI's arm64 runner every time: MPI.COMM_SELF.Spawn raised MPI_ERR_UNKNOWN. arm64 must run Open MPI 5, because its libtorch needs ompi_mpi_short_float, and TRT-LLM starts its workers with that call. The cause is the hostname. Open MPI 5.0.10rc2 cannot spawn from a singleton when the hostname length plus the digits of the process ID exceeds 37. The prte daemon that the singleton starts closes the connection during the handshake. Measured with the rc27 base image as uid 1000: - On arm64 with a 2-digit pid, a 35-character hostname spawns and a 36-character one fails. With a 5-digit pid, 32 spawns and 33 fails. - CI's arm64 pod name has 46 characters and fails every time. A short hostname passes in the same image. - On amd64, ompi5 also fails with CI's 50-character pod name, while ompi4 spawns with it. That alone is enough to explain the amd64 serving failures that led to selecting ompi4 there. PMIx honors PMIX_HOSTNAME. Where the image selects Open MPI 5, a .pth line now imports _dynamo_pmix_hostname when Python starts. It sets PMIX_HOSTNAME to "pmix-" plus the CRC-32 of the hostname, but only in a process that no MPI launcher started (no PMIX_NAMESPACE, no PMIX_HOSTNAME yet), on a host whose name is longer than 30 characters. Processes that mpirun or prte start get PMIX_HOSTNAME from the launcher and keep their real hostname. Measured on arm64 with CI's hostname, in an image built from the rendered step: - Without the hook, the spawn test fails with MPI_ERR_UNKNOWN, and so does an MPIPoolExecutor pool, which TRT-LLM's MpiPoolSession uses. - With the hook, all 11 MPI tests pass and the pool runs its tasks. Its workers report the real hostname through MPI.Get_processor_name. - Ranks from mpirun -n 2 report the real hostname with and without the hook. With an inherited short PMIX_HOSTNAME, mpirun -H <real hostname>:2 still runs both ranks locally. - Python startup takes 6 ms without the hook and 7 ms with it on a long hostname. On amd64 the step selects ompi4 and installs no hook. The MPI tests pass there with a short hostname and with CI's 50-character one (6 passed, 5 skipped). Not verified: a real multi-node launch. A Python process that runs a multi-node mpirun itself would pass the short name on to it. The operator's multi-node launch starts mpirun from /bin/sh, so the hook does not run there. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Dmitry Tokarev <[email protected]>
|
/ok to test fc14cb3 |
rmccorm4
left a comment
There was a problem hiding this comment.
Approving docs changes for @ai-dynamo/dynamo-docs-codeowners
Comment-only change. It describes the PMIX_HOSTNAME hook from fc14cb3 and names the condition for removing each part of the workaround. - The cause, in one line: Open MPI passes the singleton's name, "singleton.<hostname>.<pid>.0", to prte through a 50-byte print buffer, so a longer name is cut short and prte registers the wrong one. - The limitation: a PMIX_HOSTNAME that is already set is left alone, even a long one. NVBug 6722913's own measurements show that a 63-character PMIX_HOSTNAME fails even on a short host. - Removing the hook: the fix is open-mpi/ompi#14398 (v5.0.x backport: open-mpi/ompi#14409), and Mellanox/ompi's v5.0.x_hpcx branch has it since Mellanox/ompi#61. Open MPI 5.0.11 does not have it, and TRT-LLM 1.3.0rc27 and 1.3.0rc28 ship HPC-X v2.50 with Open MPI 5.0.10rc2, which fail the same spawn. Delete the hook, its install step and its tests once a spawn with a 46-character hostname passes in a base image without the hook. Tracked in NVIDIA/TensorRT-LLM#19607. - Removing the amd64 ompi4 selection needs more: ompi5 must spawn on amd64 without the hook, both in CI and on a host with extra interfaces. Evidence that nothing else changed: the Python ASTs of both modules are identical with docstrings removed, the Dockerfile diff touches only comment lines, and all TRT-LLM targets still render. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Dmitry Tokarev <[email protected]>
|
/ok to test 7b05507 |
dmitry-tokarev-nv
left a comment
There was a problem hiding this comment.
Approving at 7b05507e66.
- CI run
35920618126passed atfc14cb3447with no failed job, on both architectures. That includes the arm64 test job, which now spawns under a 46-character pod name, the 2-GPU disaggregated test and the sidecar end-to-end tests. 7b05507e66changes comments only. Both Python modules have identical ASTs with docstrings removed, and the Dockerfile diff touches only comment lines. CI is running on it.- All 10 review threads are resolved, and tanmayv25, GuanLuo and rmccorm4 have approved.
- The Open MPI 5 hostname workaround is documented, with a removal condition for each part. It is tracked in NVIDIA/TensorRT-LLM#19607.
The OpenEngine servicer ships from release 1.3.0rc27; `container/context.yaml` pinned 1.3.0rc26, so the sidecar e2e test on main could not run this branch's launcher at all. #15060 moves that pin, with the two-arch compliance baseline re-captured in the same commit -- which is why the bump is its own PR rather than a commit here: the baseline can only come from a capture on a runner with the headroom, and the licenses stage subtracts it from NOTICES. With the bump underneath, `tests/serve/test_sidecar.py`'s TensorRT-LLM case runs rather than skips. The capability probe stays, but it now guards the off-container and downgraded-image paths instead of the pin itself, and its reason says so: seeing that skip in CI means the pin moved backwards. Signed-off-by: tanmayv25 <[email protected]>
The OpenEngine servicer ships from release 1.3.0rc27; `container/context.yaml` pinned 1.3.0rc26, so the sidecar e2e test on main could not run this branch's launcher at all. #15060 moves that pin, with the two-arch compliance baseline re-captured in the same commit -- which is why the bump is its own PR rather than a commit here: the baseline can only come from a capture on a runner with the headroom, and the licenses stage subtracts it from NOTICES. With the bump underneath, `tests/serve/test_sidecar.py`'s TensorRT-LLM case runs rather than skips. The capability probe stays, but it now guards the off-container and downgraded-image paths instead of the pin itself, and its reason says so: seeing that skip in CI means the pin moved backwards. Signed-off-by: tanmayv25 <[email protected]>
The OpenEngine servicer ships from release 1.3.0rc27; `container/context.yaml` pinned 1.3.0rc26, so the sidecar e2e test on main could not run this branch's launcher at all. #15060 moves that pin, with the two-arch compliance baseline re-captured in the same commit -- which is why the bump is its own PR rather than a commit here: the baseline can only come from a capture on a runner with the headroom, and the licenses stage subtracts it from NOTICES. With the bump underneath, `tests/serve/test_sidecar.py`'s TensorRT-LLM case runs rather than skips. The capability probe stays, but it now guards the off-container and downgraded-image paths instead of the pin itself, and its reason says so: seeing that skip in CI means the pin moved backwards. Signed-off-by: tanmayv25 <[email protected]>
The OpenEngine servicer ships from release 1.3.0rc27; `container/context.yaml` pinned 1.3.0rc26, so the sidecar e2e test on main could not run this branch's launcher at all. #15060 moves that pin, with the two-arch compliance baseline re-captured in the same commit -- which is why the bump is its own PR rather than a commit here: the baseline can only come from a capture on a runner with the headroom, and the licenses stage subtracts it from NOTICES. With the bump underneath, `tests/serve/test_sidecar.py`'s TensorRT-LLM case runs rather than skips. The capability probe stays, but it now guards the off-container and downgraded-image paths instead of the pin itself, and its reason says so: seeing that skip in CI means the pin moved backwards. Signed-off-by: tanmayv25 <[email protected]>
Linear: OPS-8654
Overview:
Automated dependency upgrade to TensorRT-LLM
1.3.0rc27, plus the changes the upgrade turned out to need: a fix in the dpkg license generator, a correction to the DALI block and its note, an ignore list for new deprecation warnings, and a per-architecture Open MPI selection with its settings and login-profile fixes, a hostname workaround so Open MPI 5 can start workers on arm64, and tests that guard the MPI setup.Details:
The upgrade (
72028898,a3bda421)container/context.yamlruntime tag, thepyproject.tomlpin, both per-arch baseline SBOMs re-captured against1.3.0rc27, the DALI pin moved from 2.1.1 to 2.2.0 to match the base image, and the release and compatibility pages. The manifest also closes a gap onmain, where the baseline SBOM recorded1.3.0rc25whilecontainer/context.yamlrecorded1.3.0rc26.The licenses stage (
a95a2263,c4e8e573,a9c56d28)trtllm-runtimeandtrtllm-runtime-efaboth stopped at:The rc27 base image installs
dpdk-communityanddoca-sdk-commonwhile it is built, and removes them again without purging them. dpkg keeps both entries in theconfig-filesstate: it deleted the packages' files and kept their conffiles, and those still ship.doca-sdk-commonleaves/etc/ld.so.conf.d/doca-runtime-<arch>-linux-gnu.confand/etc/profile.d/doca-runtime.sh, anddpdk-communityleaves/etc/ld.so.conf.d/dpdk-<arch>-linux-gnu.conf. syft, which captures the baseline SBOMs, catalogs installed packages only, so both entries survive baseline subtraction and reach the policy gate. rc25 and rc26 carried the same pair asdoca-sdk-commonandmlnx-dpdk, and both have alicense_overrides.yamlentry, which is why the gate passed until upstream renamed the DPDK package.dpdk-communityhas no license the generator can read: the package ships no copyright file at all. Thedpdk-community_26.03.0.5-1_amd64.debfrom the public DOCA 3.5.0 repository has none, and its only SPDX tags are sevenBSD-3-Clausetags.a9c56d28adds aBSD-3-Clauseoverride, like the existingmlnx-dpdkentry.The generator now reads each entry's dpkg state (
${db:Status-Status}). It skips aconfig-filesentry only when dpkg lists its conffiles and none of them is on disk, and it logs every kept entry with its surviving conffiles. An earlier version on this branch (a95a2263) skipped everyconfig-filesentry. Review showed that their conffiles ship, soa9c56d28narrowed the skip.The DALI block (
eed14723)rc27 ships DALI 2.2.0 in the base image, so the pinned install is a no-op and three statements in the note above the block described the old base. The note is corrected, and one hole in the code is closed: the decoder enumeration finds its library with
find ... -name 'libavcodec*.so*'and loops over the result, so an empty match checked nothing and exited 0. A release that links the codec into a differently named library, which is what PyNvVideoCodec 2.2.0 does three blocks below, passed that guard while shipping decoders. Both theruntime_fullblock and the post-overlay guard now fail on an empty match.The codec waiver (
24344f20)Text only. The DALI waiver in
container/compliance/policy/codec_policy.yamlends with "Re-measure when the vendored version moves." It moved, so the rc27 measurement is recorded there. Two statements in the same note needed the same pass: it said the Dockerfile pinsnvidia-dali-cuda130>=2.1.1, where the pin is exact and now reads==2.2.0, and it said one guard runs "after the upgrade", where that install is a no-op.The rc27 deprecations (
04cdba0b)Three trtllm tests failed at import time, not on an assertion:
cutlass.utils.LayoutEnum is deprecated. The rc27 base ships nvidia-cutlass-dsl4.8.0.dev0where rc26 shipped4.6.2, and it moves names out ofcutlass.utilsandcutlass.archbehind a module__getattr__that warns. flashinfer is0.6.18in both images and still reads the old locations, some in class-body annotations that run at import time, as does TensorRT-LLM's owncute_dsl_kernels. Underfilterwarnings = ["error", ...]the import raises. Two ignore entries cover all four warnings the import gains between the two images.The fourth glob loop (
f502244d)This file has four loops that enumerate a vendored FFmpeg library. The DALI commit above closed three. This closes the post-overlay PyNvVideoCodec one, with the counter its own sibling in
runtime_fullalready uses.The MPI path (
1ff5387a,f04ff8d1,69d62c63,2111e3f2,fc14cb34,7b05507e)rc27 repointed
/opt/hpcx/ompiand/usr/local/mpifromompi4toompi5, so the image defaults to Open MPI5.0.10rc2where rc26 defaulted to4.1.9a1. TensorRT-LLM spawns its executor ranks withMPI.COMM_SELF.Spawn. On amd64 that spawn fails onompi5withucp_ep_create(proc=0) failed: Destination is unreachable, the worker never binds its gRPC port, and the serving tests wait out their deadlines. On arm64ompi4is not an option: the base image'slibtorch_cpu.soneedsompi_mpi_short_float, which onlyompi5defines.1ff5387alinks/opt/dynamo/mpitoompi4on amd64 and toompi5on arm64. ThePATH,LD_LIBRARY_PATHandOPAL_PREFIXentries name that link, inruntime_fulland inpre_runtime, which the shipped image builds on. Transitional: delete the link and the entries when upstream'sompi5can spawn.f04ff8d1completes the switch toompi4. The base image editsetc/openmpi-mca-params.confonly in the Open MPI it selects itself, soompi4kepthwloc_base_binding_policy = coreandbtl = self. Withcore,import tensorrt_llmpins the process and every child to CPUs 0-1. Withbtl = self,mpirun --mca pml ob1, which the operator's multi-node launch uses, cannot connect two ranks. The commit applies the base image's two edits to the selected MPI and fails the build if either setting survives.69d62c63makes the dev images' login profile,container/dev/50-framework-paths.sh, prefer/opt/dynamo/mpi. It used to reset login shells, SSH sessions and later dev-image RUN steps to/opt/hpcx/ompi, which is ompi5 in rc27.2111e3f2replaces the affinity test withtests/dependencies/test_trtllm_mpi.py, which checks the whole selection in the built image: the link's target per architecture, the library mpi4py loads, aMPI.COMM_SELF.Spawn, a two-rankob1launch, and the CPU affinity.fc14cb34fixes what that spawn check found on arm64. Open MPI 5 cannot spawn from a singleton when the hostname length plus the digits of its pid exceeds 37, and TRT-LLM starts its workers that way. CI's pod names are 46 (arm64) and 50 (amd64) characters long. amd64 avoids the defect by running ompi4, which is likely the real reason the serving tests failed on ompi5 there. arm64 cannot, so where the image selects ompi5, a.pthline imports_dynamo_pmix_hostnamewhen Python starts. It setsPMIX_HOSTNAMEto a short name only in processes that no MPI launcher started, on hosts whose names are longer than 30 characters. Ranks that mpirun or prte start getPMIX_HOSTNAMEfrom the launcher and keep the real hostname. A real multi-node launch is not verified: a Python process that runs a multi-nodempirunitself would pass the short name on to it. The operator's multi-node launch startsmpirunfrom/bin/sh, so the hook does not run there.The cause is in Open MPI itself: it passes the singleton's name to
prtethrough a 50-byte print buffer, so a long name is cut short andprteregisters the wrong one. It is fixed upstream in open-mpi/ompi#14398 (v5.0.x backport: open-mpi/ompi#14409), and Mellanox/ompi'sv5.0.x_hpcxbranch has had the fix since Mellanox/ompi#61. No release has it yet: Open MPI 5.0.11 does not, and TRT-LLM 1.3.0rc28 still ships HPC-X v2.50 with Open MPI 5.0.10rc2 and fails the same spawn.7b05507erecords when to remove each part of the workaround. Delete the hook once a base image's HPC-X passes a spawn with a 46-character hostname without it. Delete the amd64 Open MPI 4 selection only when Open MPI 5 also spawns on amd64 without the hook, in CI and on a host with extra network interfaces. Tracked in NVIDIA/TensorRT-LLM#19607.The CUDA IPC test (
7a57fd6a,d8b48f54)7a57fd6apasses the consumer's result through the queue as a numpy array, reports child errors, and always cleans up its processes. It also built the expected tensor with a CPU float16arange. Past 2048 that rounds differently from the producer's CUDAarange, so the assertion failed whenever the transfer worked.d8b48f54buildsexpectedon the GPU again.The LD_PRELOAD order (
d4bfa7d9)The ENV block named
/opt/dynamo/libstdc++.so.6inLD_PRELOADbefore the RUN that creates it. Every command in between printedERROR: ld.so: object '/opt/dynamo/libstdc++.so.6' from LD_PRELOAD cannot be preloaded. The RUN now comes first.The merge of main
main cut v1.5.0, which rewrote the three release tables this branch touches.
docs/fern/components/releases.data.tsis the source of truth and merged cleanly with both sides. The two conflicted pages are generated from it, so they were taken from main and regenerated rather than hand-resolved, andgen_llms_tables.py --checkreports every marker-spliced page unchanged.Where should the reviewer start?
container/compliance/generators/dpkg.py, and the newcontainer/compliance/tests/test_dpkg_generator.pybeside it. Thencontainer/templates/trtllm_runtime.Dockerfilearound/opt/dynamo/mpi, for the MPI selection and its settings edit. The rest of the diff is the version bump and comments.Validation
dpdk-community, and stops failing105736243907before, CI build job107383547938atfc14cb34after, steplicenseson both architecture legsLicense validation failed: 1 violation(s) across 1063 packagesLicense validation passed: 1064 packages, no violationsonlinux/amd64andlinux/arm64, each naming the two kept packages and their conffilesdpkg-query -W -f='${Conffiles}'andlsin the rc27 base image and in the built imageconfig-filesfordpdk-communityanddoca-sdk-commondoca-runtime.shand oneld.so.conf.dfile carry an NVIDIA proprietary headerlicensesstage's generator and policy commands, in the CI test image for1ff5387a, amd64, baselinerelease@2af29022License validation failed: 1 violation(s),dpdk-communityUNKNOWNLicense validation passeddpkg-queryon builtsglang-runtimeandvllm-runtimeimagesinstalleddpkg-queryon the same imageg++/gitwithout versionsdpkg-queryimport tensorrt_llm._torch.modelsunderwarnings.catch_warningsin each image, then the repository's own filterwarnings list applied the way pytest applies it/bin/shagainst real and emptied paths105736243907, step 13/16, and the greentrtllm-devjob on both archesRequirement already satisfied: nvidia-dali-cuda130==2.2.0/bin/shin the rc27 base image and in a builttrtllm-runtimeimageenumerate_bundled_decoders.pyon the rc27 base image35920618126atfc14cb34test_deployment[disaggregated-2]failed on all four attempts atf502244dandd4bfa7d9107387203795; sidecartrtllm_aggregated-2passed, job107391157697107383547938, and the arm64 test jobimport torchfailed onompi_mpi_short_floatatf3fe60feMPI for amd64: /opt/hpcx/ompi4,MPI for arm64: /opt/hpcx/ompi5; arm64 job107387203915passedompi4no longer pins processes or blocks ob11ff5387a, against a layer built from the rendered RUN steps, on a 32-CPU amd64 GPU hostimport tensorrt_llmnarrows 32 CPUs to[0, 1];mpirun --mca pml ob1 -n 2fails in MPI_INITtests/dependencies/test_trtllm_mpi.pyon an amd64 GPU host, then in CI1ff5387aas shipped fails theob1and affinity tests; with/opt/dynamo/mpipointed at ompi5, the selection and spawn tests fail107387203863passes 6 and skips 5 hook tests, arm64 job107387203915passes all 11arangein the rc27 and rc26 images; the test alone in the rc27 image7a57fd6aversion fails attorch.equal107013586094PYTEST_XDIST_AUTO_NUM_WORKERS=2on the amd64 GPU hostcannot be preloadedline counted in CI build logsc188664b107010723999container/dev/50-framework-paths.shsourced bybash -lin the CI test image for1ff5387a/opt/hpcx/ompi5/lib/libmpi.so.40.40.7(5.0.10rc2)/opt/hpcx/ompi4/lib/libmpi.so.40.30.8(4.1.9a1); unchanged in images without/opt/dynamo/mpidocker run --hostname <CI pod name>with the rc27 base (arm64, on a Mac) and the CI test image (amd64, GPU host)MPI.COMM_SELF.Spawnand anMPIPoolExecutorpool fail withMPI_ERR_UNKNOWN(arm64: 46 characters, amd64: 50); ompi4 spawns107387203915passesMPI.Get_processor_name; with an inherited shortPMIX_HOSTNAME,mpirun -H <real hostname>:2still runs both ranks locallyThe
licensesstage runs and passes on both architecture legs in CI (build job107383547938):linux/arm64reports 521 collected, 0 skipped, 494 subtracted, andlinux/amd64reports 528, 0, 501, both ending atLicense validation passed: 1064 packages, no violations. The amd64 numbers match the local reproduction exactly. Everything measured by hand in an image was measured on amd64, and no multi-arch image was built locally. The DALI glob is confirmed on both arches from the greentrtllm-devjob on this head, which printsregisters: 440 decodersforlinux/amd64andlinux/arm64.container/compliance/tests/runs locally and in no CI lane: the pytest action runs inside the built image, which does not carrycontainer/, and the five test files already there have the same gap. So the new test pins the fix for anyone running it, and CI does not.container/compliance/helpers/dpkg_helper.pyreads dpkg a second way and runs on every pull request, through.github/workflows/pr.yamltoshared-compliance.ymlto thecompliance-scanaction tocontainer/compliance/Dockerfile.extract, which runs it with--root. That mode parses/var/lib/dpkg/statusand keeps a package only when itsStatusline containsinstalled, so it still drops the two leftovers. This change leaves that file alone. One edge worth knowing if anyone touches it: the substring test also keeps anot-installedstanza, because that string containsinstalled. No image here has one.The GPU host did not reproduce the IPC test's CI timeout at CI concurrency. The image as shipped passed there, but the test's child processes waited 4.8 to 6.8 s for a CPU, against 0.0 s with the fix. The CI run at
d8b48f54is the evidence that the timeout is gone. The host has one GPU, so the 2-GPU results come from CI only.Related Issues
🔗 This PR is linked to an issue:
Summary by CodeRabbit
1.3.0rc27.1.3.0rc27.