Skip to content

ai-dynamo-runtime: Add version 1.5.1 - #3122

Merged
luhenry merged 11 commits into
mainfrom
ai-dynamo-runtime
Nov 9, 2026
Merged

luhenry merged 11 commits into
mainfrom
ai-dynamo-runtime

Conversation

@luhenry

@luhenry luhenry commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Compiles Dynamo's Rust runtime (dynamo._core, pyo3 abi3) - the CPU-side request plane, KV router and discovery, with CUDA loaded only at runtime and NIXL stubbed exactly as upstream's own wheel is. Upstream publishes no riscv64 wheel.

Mirrors the runtime_wheel_builder stage of upstream's wheel_builder.Dockerfile, same maturin features.

Differs from upstream

  • manylinux_2_39_riscv64 image instead of manylinux_2_28
  • protoc from Rocky CRB - upstream's protoc release zip has no riscv64 build

Matrix: one abi3 wheel; tested on 3.12/3.13/3.14 (no cp314t: abi3 and pydantic-core).

Testing

  • bindings tests selected with upstream's CPU markers (pre_merge and gpu_0)
  • NATS and etcd from Ubuntu packages, which the bindings' autouse fixture needs
  • test_kserve_grpc.py ignored - needs tritonclient[grpc], which upstream gets from framework images

License: Wheel bundles third-party Rust crate licences, generated by upstream's own bundle_wheel_notices step.

Patches

  • 0001-bindings-use-nixl-sys-stub-api-on-riscv64.patch - Inappropriate [nixl-sys get_arch() panics on riscv64 before its stub fallback; real fix belongs in ai-dynamo/nixl]. Riscv64-only.

Built on cp312.

luhenry added a commit that referenced this pull request Oct 13, 2026
The bindings test directory also holds tests for the separate ai-dynamo
package: tests/replay/ and test_deprecated_enable_nats.py import
dynamo.mocker, dynamo.replay and dynamo.common, which ship in ai-dynamo
(components/src/dynamo), not in ai-dynamo-runtime. Upstream runs them in
an image with both installed; here they fail collection and abort the
whole session. Ignore them.

dynamo.nixl_connect hard-imports torch, which upstream's test image
provides, so test_nixl_connect_lazy_import.py errors at fixture setup
without it. Install torch (riscv64 wheels are on pypi.riseproject.dev).
The default python-exclude no longer drops cp310, so the abi3 wheel is now
tested on its cp310 floor. torch has no cp310 riscv64 wheel on either
pypi.riseproject.dev or PyPI (2.15.0 starts at cp311), so the test-deps
install failed to resolve. Install torch only on Python >= 3.11 and, where
it is absent, ignore test_nixl_connect_lazy_import.py, the only module that
needs it, so the rest of the suite still runs on cp310.

Also drop the duplicated "cp" prefix from the test job name.
…ersions

pytest 9.2.0 applies upstream's filterwarnings = ["error"] during
pytest_configure, so pytest-asyncio's deprecation warning about the unset
asyncio_default_fixture_loop_scope becomes an INTERNALERROR. Pin to the
versions from upstream's container/deps/requirements.test.txt (pytest 9.0.3,
pytest-asyncio 1.3.0) rather than setting the loop scope, which would break
the module-scoped async fixtures in the selected tests.
…vailable

test_nixl_connect_unit.py imports dynamo.nixl_connect, same as
test_nixl_connect_lazy_import.py, so it also needs torch at import
time. It carries no hardware marker of its own, so the root
conftest's default-marking makes it match "pre_merge and gpu_0" and
run on cp310, where no riscv64 torch wheel exists, failing at setup
with ModuleNotFoundError. Broaden the existing torch-unavailable
ignore from the single lazy_import file to both nixl_connect test
files.
@luhenry
luhenry marked this pull request as ready for review November 9, 2026 16:23
@luhenry
luhenry merged commit 2505205 into main Nov 9, 2026
7 checks passed
@luhenry
luhenry deleted the ai-dynamo-runtime branch November 9, 2026 16:23
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.

1 participant