Skip to content

feat(vllm): add sidecar LoRA lifecycle - #13068

Merged
JulienDarve merged 32 commits into
mainfrom
feat/vllm-lora-lifecycle
Sep 18, 2026
Merged

JulienDarve merged 32 commits into
mainfrom
feat/vllm-lora-lifecycle

Conversation

@connorcarpenter15

@connorcarpenter15 connorcarpenter15 commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add dynamic LoRA load, unload, list, discovery, and per-request adapter selection to the vLLM sidecar through native gRPC. Requests naming an unavailable adapter fail instead of silently using the base model.

  • Resolve local, Hugging Face, and S3 adapters with Dynamo's shared downloader; use vLLM's assigned adapter IDs and reported capacity.
  • Serialize lifecycle changes per worker and coordinate request admission with unloading.
  • Reconcile uncertain RPC outcomes, roll back failed publication, restore discovery after failed unload, and republish resident adapters after a sidecar restart.
  • Reject startup adapter names that collide with base-model names and allow cancellation while waiting for adapter admission.
  • Preserve normal prefix caching. Different weights require a new adapter name; hot swap remains unsupported.

Every participating prefill/decode worker must load the adapter before receiving its requests. vLLM and the sidecar must see adapter directories at the same absolute paths. LoRA requires vllm-project/vllm#52840; NIXL prefill/decode also requires vllm-project/vllm#54814.

Validation

  • Sidecar unit tests after restacking: 57 passed, including all 13 existing LoRA scenarios.
  • Clippy with warnings denied passed for the sidecar and vLLM mocker, including all targets.
  • Cargo formatting, whitespace checks, and pre-commit hooks passed.
  • Previous GPU validation used the unchanged vLLM fork at fdfed97c: aggregated adapter lifecycle and base/LoRA generation, NIXL prefill/decode, and native transfer-failure propagation. The subsequent 9f843c25 cache check confirmed repeated LoRA and base prompts each reused 384 cached tokens.
  • GPU tests were not repeated after this restack. Previous prefill/decode testing used two engines on one RTX 6000 Ada; multi-GPU and multi-node validation has not run.

Related Issues

Linear: DIS-2881.

Draft stack, in merge order:

  1. Shared API and protocol preparation — feat(backends): expose native LoRA capacity in model registration #14754.
  2. Sidecar LoRA lifecycle — this PR, based on the API prerequisite.
  3. Local LoRA launchers — feat(vllm): add local LoRA sidecar launchers #14574, based on this PR.

Developed with AI assistance.

@github-actions github-actions Bot added feat documentation Improvements or additions to documentation labels Aug 12, 2026
@datadog-official

This comment has been minimized.

@connorcarpenter15
connorcarpenter15 marked this pull request as ready for review August 12, 2026 02:29
@connorcarpenter15
connorcarpenter15 requested review from a team as code owners August 12, 2026 02:29

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

Open in Devin Review

Comment thread lib/sidecar/vllm/src/convert.rs Resolved
Comment thread lib/sidecar/vllm/src/engine.rs Resolved
Comment thread lib/sidecar/vllm/src/engine.rs Resolved
@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

The change adds optional GPU LoRA capacity to engine registration, extends the vLLM protocol for LoRA lifecycle operations and request selection, resolves adapter sources, publishes adapters through discovery, and reconciles load, unload, list, restart, and failure scenarios.

Changes

Dynamic LoRA support

Layer / File(s) Summary
Registration capacity propagation
components/src/dynamo/common/backend/engine.py, lib/backend-common/src/engine.rs, lib/bindings/python/rust/backend.rs, lib/backend-common/src/worker.rs, lib/sidecar/sglang/src/engine.rs, lib/backend-common/examples/mocker/src/engine.rs, components/src/dynamo/common/backend/tests/test_backend_bindings.py
Registrations expose optional max_gpu_lora_count. Python bindings and model runtime configuration preserve the value.
Protocol and capability contracts
lib/sidecar/vllm/proto/*, lib/sidecar/vllm/src/client.rs, lib/sidecar/vllm/src/convert.rs, lib/sidecar/vllm/src/model.rs, lib/mocker/servers/vllm/src/server.rs, lib/sidecar/vllm/Cargo.toml, lib/sidecar/vllm/README.md
The protocol adds LoRA lifecycle RPCs, capability metadata, and request selection. The client, model discovery, mock server, dependencies, and documentation support the contract.
Source resolution and discovery publishing
lib/sidecar/vllm/src/lora.rs, lib/sidecar/vllm/src/lib.rs
The sidecar validates LoRA requests, resolves file://, hf://, and s3:// sources, validates adapter paths, and publishes or removes adapter models through discovery.
Adapter lifecycle orchestration
lib/sidecar/vllm/src/engine.rs
The engine serializes updates, reconciles startup state, performs load and unload operations, validates identities, handles rollback, lists adapters, and dispatches lifecycle updates.
Lifecycle validation and compatibility coverage
lib/sidecar/vllm/src/tests.rs
Tests cover request routing, lifecycle operations, committed RPC errors, restart republishing, capacity propagation, and capability gating.

Estimated code review effort: 4 (Complex) | ~60 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the primary change: adding the vLLM sidecar LoRA lifecycle.
Description check ✅ Passed The description explains the implementation, validation, dependencies, and related issue. It does not use the template's exact Overview, Details, or reviewer-start headings, and it does not select one…
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
⚔️ Resolve merge conflicts 💡
  • Resolve merge conflict in branch feat/vllm-lora-lifecycle

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
lib/bindings/python/rust/backend.rs (1)

154-177: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Append max_gpu_lora_count after bootstrap_port.

The current placement shifts legacy positional arguments in both LlmRegistration constructors. Python callers receive incorrect data, while Rust callers can fail type extraction. Add regression coverage for the pre-change positional form and assert all existing fields remain unchanged.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@lib/bindings/python/rust/backend.rs` around lines 154 - 177, The
LlmRegistration constructor parameter order breaks legacy positional callers
because max_gpu_lora_count was inserted in the middle. In
lib/bindings/python/rust/backend.rs lines 154-177, move max_gpu_lora_count after
bootstrap_port in the Python signature and Rust fn new parameter list; update
components/src/dynamo/common/backend/engine.py lines 121-123 consistently. Add
regression coverage for the pre-change positional form and assert every existing
field remains unchanged.
lib/sidecar/vllm/src/convert.rs (1)

387-388: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Reject LoRA requests when native LoRA support is unavailable.

When request.routing.lora_name is non-empty and self.model.supports_lora() is false, return invalid_argument before calling client.generate_stream. The current path forwards the request, and the mocker ignores lora_name, which can run the base model instead.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@lib/sidecar/vllm/src/convert.rs` around lines 387 - 388, In the request
handling flow before client.generate_stream, validate that a non-empty
request.routing.lora_name is only accepted when self.model.supports_lora() is
true; otherwise return an invalid_argument error. Keep the existing
bootstrap_info handling and generation path unchanged for supported LoRA
requests or requests without a LoRA name.
🧹 Nitpick comments (10)
lib/sidecar/vllm/src/lora.rs (3)

68-71: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Log the S3 configuration failure at a higher level.

S3LoRASource::from_env() errors are recorded at debug. If an operator sets S3 credentials incorrectly, the sidecar drops S3 support without a visible signal, and later s3:// loads fail with an unrelated resolve error. Use warn so the misconfiguration is visible in default log output.

♻️ Proposed change
     match S3LoRASource::from_env() {
         Ok(source) => sources.push(Arc::new(source)),
-        Err(error) => tracing::debug!(%error, "S3 LoRA source is not configured"),
+        Err(error) => tracing::warn!(%error, "S3 LoRA source is not configured; s3:// LoRA sources are unavailable"),
     }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@lib/sidecar/vllm/src/lora.rs` around lines 68 - 71, Change the error branch
handling S3LoRASource::from_env() to log at warn level instead of debug,
preserving the existing error field and message so invalid S3 configuration is
visible by default.

35-42: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Consider deriving the scheme allowlist from the configured sources.

The scheme list in parse_load_lora duplicates the source set built in build_downloader (lines 63-75). If a new LoRASource is added, or if S3LoRASource::from_env() fails and S3 is not registered, the parser and the downloader disagree. In the S3 case, a s3:// URI passes validation and then fails later with a generic resolve error.

A clearer message for the unconfigured-S3 case would help operators. This is optional.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@lib/sidecar/vllm/src/lora.rs` around lines 35 - 42, Update parse_load_lora to
derive URI scheme validation from the configured sources produced by
build_downloader instead of maintaining a hard-coded allowlist. Ensure schemes
are accepted only when their corresponding LoRASource is registered, including
rejecting s3:// when S3LoRASource::from_env() fails, and provide a clear error
for unconfigured S3.

81-97: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Classify non-client failures separately from invalid_argument.

download_if_needed and tokio::fs::canonicalize can fail for reasons that are not caused by the request, for example a network timeout, an exhausted disk, or a permission error. Mapping those to invalid_argument tells the caller the request was malformed. Consider returning client::protocol_error (or an internal error) for I/O and transport failures, and keeping invalid_argument for a URI that cannot exist.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@lib/sidecar/vllm/src/lora.rs` around lines 81 - 97, Update the error mapping
in the LoRA resolution flow around download_if_needed and
tokio::fs::canonicalize: classify network, filesystem, permission, and other
operational failures as client::protocol_error or the established internal-error
variant, while retaining client::invalid_argument only for URI validation or an
otherwise impossible requested source. Preserve the existing contextual error
messages and keep LoRACache::validate_path validation errors mapped
appropriately.
lib/sidecar/vllm/src/engine.rs (3)

462-471: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Validate the inventory before collapsing it into a map.

adapters is collected into a serde_json::Map keyed by lora_name. Duplicate names silently overwrite each other, and count then under-reports the native adapter count. The load and unload reconciliation paths both call Self::validate_adapter_inventory for exactly this case. Apply the same check here so a malformed inventory produces an error instead of a misleading listing.

♻️ Proposed change
         let mut adapters = client.list_loras().await?;
+        Self::validate_adapter_inventory(&adapters)?;
         adapters.sort_by(|left, right| left.lora_name.cmp(&right.lora_name));
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@lib/sidecar/vllm/src/engine.rs` around lines 462 - 471, Update the
adapter-listing flow around Self::validate_adapter_inventory to validate
adapters immediately after client.list_loras() and before sorting or collecting
into the serde_json::Map. Propagate validation errors so duplicate lora_name
entries fail instead of being collapsed and undercounted.

284-293: 🎯 Functional Correctness | 🔵 Trivial | 💤 Low value

Consider excluding source_path from the already-loaded identity check.

existing != &requested compares the full LoraAdapter, including source_path. The resolved path can change between two identical logical requests, for example after the LoRA cache directory changes or after a hf:// revision resolves to a new snapshot directory. The caller then receives "already loaded with different identity" for a request that names the same adapter and the same source URI.

If the intent is to detect a genuinely different adapter, compare lora_name and lora_id and log a path change instead. This is optional and depends on the intended strictness.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@lib/sidecar/vllm/src/engine.rs` around lines 284 - 293, Update the
already-loaded identity check in the adapter lookup flow to compare only the
logical identity fields, lora_name and lora_id, rather than the full LoraAdapter
including source_path. Preserve rejection for genuinely different adapters, and
handle a source_path change as a path update or diagnostic instead of returning
“already loaded with different identity.”

267-272: 🚀 Performance & Scalability | 🔵 Trivial | 🏗️ Heavy lift

Add per-URI download coordination before releasing lora_update_lock. LoRADownloader does not collapse concurrent downloads. An S3 download removes and replaces the shared cache directory, so one load can replace the path while another load uses it. Add in-flight per-URI coordination or immutable cache publication, then move resolve_source_path outside the lock to prevent blocking list_loras and reconcile_loaded_loras.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@lib/sidecar/vllm/src/engine.rs` around lines 267 - 272, Update the LoRA load
flow around lora_update_lock and resolve_source_path to coordinate concurrent
downloads per URI, preventing shared cache replacement while another load uses
the path. Release lora_update_lock before awaiting resolve_source_path so
list_loras and reconcile_loaded_loras are not blocked, while preserving safe
publication or reuse of each URI’s downloaded path.
lib/sidecar/vllm/src/tests.rs (4)

854-934: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Assert that the injected commit errors were actually exercised.

The test sets load_commit_error and unload_commit_error, then asserts only that both updates report "success". Both flags use swap(false, ...), so a regression that stops calling the native RPC would leave the flags set and the test would still pass. Add assertions that both flags are cleared after the updates to prove the reconciliation path ran.

✅ Proposed assertions
     assert_eq!(load["status"], "success");
+    assert!(!server.service.load_commit_error.load(Ordering::SeqCst));
     assert_eq!(server.service.loras.lock().await.len(), 1);
@@
     assert_eq!(unload["status"], "success");
+    assert!(!server.service.unload_commit_error.load(Ordering::SeqCst));
     assert!(server.service.loras.lock().await.is_empty());
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@lib/sidecar/vllm/src/tests.rs` around lines 854 - 934, Update
native_lora_lifecycle_reconciles_committed_rpc_errors to assert that
server.service.load_commit_error and server.service.unload_commit_error are
false after their respective load_lora and unload_lora updates, proving both
injected commit errors were consumed by the native RPC reconciliation path.

936-971: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Strengthen the restart assertion to check adapter identity.

The test asserts only that some model with a model_suffix exists. It does not verify that the republished card belongs to math-r8 or that it carries lora_id: 7. A republish of the wrong adapter name would still pass. Deserialize the sibling card and assert name() == "math-r8", as the lifecycle test does at Line 911.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@lib/sidecar/vllm/src/tests.rs` around lines 936 - 971, Strengthen the
assertion in startup_republishes_loras_loaded_before_sidecar_restart by
deserializing the matching DiscoveryInstance model card and asserting its name()
is "math-r8", following the lifecycle test’s approach. Keep the existing
model_suffix filtering while ensuring the republished adapter identity is
validated.

631-660: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Consider reusing one DistributedRuntime and dropping it at test end.

runtime_endpoint creates a new process-local DistributedRuntime on every call and never shuts it down. Each test that calls it leaks the runtime and its discovery state for the lifetime of the test binary. The namespaces differ per test, so there is no cross-test interference today. A shared helper that returns a guard would keep the state bounded if more lifecycle tests are added.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@lib/sidecar/vllm/src/tests.rs` around lines 631 - 660, Refactor
runtime_endpoint to reuse a single process-local DistributedRuntime and return
an owning guard that shuts it down when the test finishes, rather than creating
an unbounded runtime per call. Preserve the existing namespace/component
endpoint setup and model discovery registration, while ensuring each test’s
runtime and discovery state are released through the guard’s lifecycle.

973-984: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Add coverage for the list_loras update route.

The new tests cover load_lora, unload_lora, request routing, restart republishing, and capability gating. No test calls engine_update("list_loras", ...), even though supported_updates advertises it. Add a case that loads one adapter and asserts the list_loras payload contains it.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@lib/sidecar/vllm/src/tests.rs` around lines 973 - 984, Extend the vLLM
sidecar test coverage with a case that invokes engine_update("list_loras", ...)
after loading one LoRA adapter, then assert the returned payload includes that
adapter. Reuse the existing test helpers and update-routing setup used by the
load_lora tests, and keep the assertion tied to the advertised list_loras
update.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@lib/sidecar/vllm/src/client.rs`:
- Around line 182-222: Add a bounded request deadline to the LoRA lifecycle RPCs
in load_lora, unload_lora, and list_loras, applying it to each ControlClient
call before awaiting the response. Use the existing timeout/deadline
configuration or established duration constant, and ensure expired requests
return through the existing DynamoError mapping without changing successful
response handling.

In `@lib/sidecar/vllm/src/engine.rs`:
- Around line 657-671: Update supported_updates so failures from
reconcile_loaded_loras do not propagate as fatal errors during startup. Preserve
publishing the LoRA update names when the model supports LoRA, while handling or
logging reconciliation failures and allowing register_engine_updates to complete
so generation remains available.

---

Outside diff comments:
In `@lib/bindings/python/rust/backend.rs`:
- Around line 154-177: The LlmRegistration constructor parameter order breaks
legacy positional callers because max_gpu_lora_count was inserted in the middle.
In lib/bindings/python/rust/backend.rs lines 154-177, move max_gpu_lora_count
after bootstrap_port in the Python signature and Rust fn new parameter list;
update components/src/dynamo/common/backend/engine.py lines 121-123
consistently. Add regression coverage for the pre-change positional form and
assert every existing field remains unchanged.

In `@lib/sidecar/vllm/src/convert.rs`:
- Around line 387-388: In the request handling flow before
client.generate_stream, validate that a non-empty request.routing.lora_name is
only accepted when self.model.supports_lora() is true; otherwise return an
invalid_argument error. Keep the existing bootstrap_info handling and generation
path unchanged for supported LoRA requests or requests without a LoRA name.

---

Nitpick comments:
In `@lib/sidecar/vllm/src/engine.rs`:
- Around line 462-471: Update the adapter-listing flow around
Self::validate_adapter_inventory to validate adapters immediately after
client.list_loras() and before sorting or collecting into the serde_json::Map.
Propagate validation errors so duplicate lora_name entries fail instead of being
collapsed and undercounted.
- Around line 284-293: Update the already-loaded identity check in the adapter
lookup flow to compare only the logical identity fields, lora_name and lora_id,
rather than the full LoraAdapter including source_path. Preserve rejection for
genuinely different adapters, and handle a source_path change as a path update
or diagnostic instead of returning “already loaded with different identity.”
- Around line 267-272: Update the LoRA load flow around lora_update_lock and
resolve_source_path to coordinate concurrent downloads per URI, preventing
shared cache replacement while another load uses the path. Release
lora_update_lock before awaiting resolve_source_path so list_loras and
reconcile_loaded_loras are not blocked, while preserving safe publication or
reuse of each URI’s downloaded path.

In `@lib/sidecar/vllm/src/lora.rs`:
- Around line 68-71: Change the error branch handling S3LoRASource::from_env()
to log at warn level instead of debug, preserving the existing error field and
message so invalid S3 configuration is visible by default.
- Around line 35-42: Update parse_load_lora to derive URI scheme validation from
the configured sources produced by build_downloader instead of maintaining a
hard-coded allowlist. Ensure schemes are accepted only when their corresponding
LoRASource is registered, including rejecting s3:// when
S3LoRASource::from_env() fails, and provide a clear error for unconfigured S3.
- Around line 81-97: Update the error mapping in the LoRA resolution flow around
download_if_needed and tokio::fs::canonicalize: classify network, filesystem,
permission, and other operational failures as client::protocol_error or the
established internal-error variant, while retaining client::invalid_argument
only for URI validation or an otherwise impossible requested source. Preserve
the existing contextual error messages and keep LoRACache::validate_path
validation errors mapped appropriately.

In `@lib/sidecar/vllm/src/tests.rs`:
- Around line 854-934: Update
native_lora_lifecycle_reconciles_committed_rpc_errors to assert that
server.service.load_commit_error and server.service.unload_commit_error are
false after their respective load_lora and unload_lora updates, proving both
injected commit errors were consumed by the native RPC reconciliation path.
- Around line 936-971: Strengthen the assertion in
startup_republishes_loras_loaded_before_sidecar_restart by deserializing the
matching DiscoveryInstance model card and asserting its name() is "math-r8",
following the lifecycle test’s approach. Keep the existing model_suffix
filtering while ensuring the republished adapter identity is validated.
- Around line 631-660: Refactor runtime_endpoint to reuse a single process-local
DistributedRuntime and return an owning guard that shuts it down when the test
finishes, rather than creating an unbounded runtime per call. Preserve the
existing namespace/component endpoint setup and model discovery registration,
while ensuring each test’s runtime and discovery state are released through the
guard’s lifecycle.
- Around line 973-984: Extend the vLLM sidecar test coverage with a case that
invokes engine_update("list_loras", ...) after loading one LoRA adapter, then
assert the returned payload includes that adapter. Reuse the existing test
helpers and update-routing setup used by the load_lora tests, and keep the
assertion tied to the advertised list_loras update.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: e2102d0f-b2f4-4565-a78a-b058bbb35283

📥 Commits

Reviewing files that changed from the base of the PR and between 3b76754 and d3c4764.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (20)
  • components/src/dynamo/common/backend/engine.py
  • components/src/dynamo/common/backend/tests/test_backend_bindings.py
  • lib/backend-common/examples/mocker/src/engine.rs
  • lib/backend-common/src/engine.rs
  • lib/backend-common/src/worker.rs
  • lib/bindings/python/rust/backend.rs
  • lib/mocker/servers/vllm/src/server.rs
  • lib/sidecar/sglang/src/engine.rs
  • lib/sidecar/vllm/Cargo.toml
  • lib/sidecar/vllm/README.md
  • lib/sidecar/vllm/proto/README.md
  • lib/sidecar/vllm/proto/control.proto
  • lib/sidecar/vllm/proto/inference.proto
  • lib/sidecar/vllm/src/client.rs
  • lib/sidecar/vllm/src/convert.rs
  • lib/sidecar/vllm/src/engine.rs
  • lib/sidecar/vllm/src/lib.rs
  • lib/sidecar/vllm/src/lora.rs
  • lib/sidecar/vllm/src/model.rs
  • lib/sidecar/vllm/src/tests.rs

Comment thread lib/sidecar/vllm/src/client.rs Resolved
Comment thread lib/sidecar/vllm/src/engine.rs Resolved
Comment thread lib/sidecar/vllm/src/lora.rs Resolved
@JulienDarve
JulienDarve force-pushed the feat/vllm-lora-lifecycle branch from 778510d to 6cc03dc Compare August 27, 2026 21:29
@copy-pr-bot

copy-pr-bot Bot commented Aug 27, 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.

Replace the provisional protocol definitions with verbatim copies from
vllm-project/vllm@1f9444a, the merge commit
for vllm-project/vllm#52840. That commit adds the LoadLora, UnloadLora, and
ListLoras control RPCs, ServerInfo.max_loras, ModelInfo.supports_lora, and
GenerateRequest.lora_name.

Both files are now unmodified copies rather than a trimmed subset, so the
vendored protocol cannot diverge from upstream by omission. Record the commit
and both SHA-256 digests in the proto README.

Taking the files verbatim also picks up ParallelismInfo.world_size and
SamplingParams.skip_special_tokens, which the trimmed copy predated. The mocker
server gains the world_size field it now has to populate.

Signed-off-by: Julien Darve <[email protected]>
Add LlmRegistration::max_gpu_lora_count so an engine can publish how many
adapters it can keep resident on GPU. The LoRA router needs this on the base
model card to place the first adapter, before any adapter-specific discovery
sibling exists.

Append the field at the end of the Python constructor signature and the
LlmRegistration dataclass rather than grouping it with the other capacity
fields. Inserting it mid-signature would silently rebind every existing
positional caller instead of failing loudly, so a regression test pins the
positional meaning of the surrounding arguments.

Signed-off-by: Julien Darve <[email protected]>
Implement load, unload, list, discovery, and per-request adapter selection
against vLLM's LoadLora/UnloadLora/ListLoras RPCs, matching the legacy Python
worker wherever the gRPC surface allows it.

State ownership is explicit. vLLM is authoritative for what is loaded and for
adapter IDs, which Dynamo never generates or infers; Dynamo is authoritative
for what routers may send traffic to, and an adapter absent from vLLM must not
stay published. LoraLifecycle keeps a keyed lock per adapter name that
serializes load, unload, and request admission for that one name, plus a
short-lived global guard that makes the capacity check and reservation atomic
across names. That guard is never held across a download or an RPC, so loads
of unrelated adapters overlap.

The lifecycle surface is exposed only when DYN_LORA_ENABLED permits it, vLLM
advertises supports_lora, and max_loras > 0. That capacity is propagated into
the base discovery card.

Every lifecycle RPC runs under a bounded deadline, so a stalled server can no
longer hold an adapter's lock indefinitely. Failures retain their native gRPC
status: InvalidArgument, AlreadyExists, NotFound, and FailedPrecondition are
definitive, and anything else may have committed and is reconciled against
ListLoras. A load that timed out but committed is recognized by matching name
and canonical path; a name loaded from a different path is an inconsistent-state
error rather than a silent success.

Compensation is symmetric. A load whose discovery publication fails unloads the
native adapter rather than leaving GPU capacity occupied by something no router
can reach. An unload unpublishes first so no new request can be routed to an
adapter that is about to disappear, and restores discovery if vLLM turns out to
still hold it.

Startup reconciliation republishes adapters vLLM already holds and drops stale
Dynamo-only records. It is now best effort: the worker treats an error from
supported_updates as fatal, so a transient ListLoras or discovery failure would
otherwise abort a worker whose base model is perfectly serviceable. It is
retried on the next lifecycle call.

On the request path, base model names and aliases clear lora_name, a non-empty
adapter name requires LoRA capability, and an unknown or unloaded adapter is
refused rather than silently served by the base model. The adapter's admission
lock is held until the streaming RPC is established; upstream resolves the
adapter before generating, so past that point an unload can no longer strand
the request.

Sibling discovery records are derived from the base card, so model and worker
type, prefill/decode dependencies, data-parallel rank range, router hints,
context length and token budget, KV-event configuration, and parser settings
carry over unchanged. Only adapter-specific fields differ. Records are
collision-checked before publication and unpublished on shutdown, which the
Worker's own base-card unregister does not cover.

Hot swap is refused with an explicit error. The gRPC API has no atomic replace
and no prefix-cache reset, so emulating it would open a routing outage with no
safe rollback. Loading an already-loaded name is idempotent and returns the
existing server-assigned ID, even when the caller supplies a different URI,
which matches the Python worker with hot swap disabled.

Signed-off-by: Julien Darve <[email protected]>
…rences

Describe the enablement conditions, the supported source schemes, and the
shared-path requirement between vLLM and the sidecar.

Record the three behaviors that intentionally differ from the legacy Python
worker, because the gRPC control surface does not expose the primitives they
need: adapter IDs are server-assigned and opaque, prefill workers must load
adapters eagerly since GenerateRequest carries only lora_name, and hot swap is
unsupported.

Add aggregated and disaggregated LoRA launch scripts. Both require a vLLM build
containing vllm-project/vllm#52840.

Signed-off-by: Julien Darve <[email protected]>
@JulienDarve
JulienDarve force-pushed the feat/vllm-lora-lifecycle branch from 6cc03dc to 8ece695 Compare August 28, 2026 22:59
Resolve conflicts from #13607 (publish RL worker metadata), which added
`world_size` to `ParallelismInfo` while this branch resynced the vendored
vLLM protocol.

- proto/control.proto, proto/README.md: keep this branch's copy. It is
  byte-identical to upstream vLLM 1f9444a3 (2026-08-25), which is newer
  than main's pin 2991f864 (2026-08-21) and a strict superset of it;
  main's copy is a pruned vendor that drops `max_loras` and
  `supports_lora`. Recorded SHA-256 digests already match the files.

- mocker/servers/vllm: take main's `world_size: 1`. The mocker hardcodes
  TP=PP=PCP=1, and `rl_worker_metadata` computes
  `world_size * data_parallel_size`, so this branch's
  `world_size: dp_size` reported dp_size^2 as the RL world size.

- sidecar/vllm/src/tests.rs: git auto-merged this file without a conflict
  and stacked both sides' `world_size` into one `ParallelismInfo`
  literal, which does not compile (E0062). Both sides had chosen 2;
  dropped the duplicate.

Verified on the merged tree:
- cargo check --workspace --all-targets (excluding the kvbm CUDA chain,
  which needs nvcc): clean, no warnings
- cargo test -p dynamo-vllm-sidecar --lib: 53 passed, 0 failed

Signed-off-by: Julien Darve <[email protected]>
@JulienDarve

Copy link
Copy Markdown
Contributor

/ok to test 4876b93

…ference

`disagg_lora.sh` could never launch. An editing accident spliced the
"load on BOTH workers" echo block and a `wait_any_exit` call into the
middle of the `source launch_utils.sh` line's trailing comment, so
`wait_any_exit` ran at line 31 -- before argument parsing, before the
EXIT trap, and ~90 lines before any process was backgrounded. That
function hard-exits when it finds no jobs:

    wait_any_exit: no background processes found (script bug: did you
    forget '&'?)

so the script exited 1 immediately. Even `--help` failed, and the
printed curl example interpolated an empty `lora_name` because
`LORA_NAME` is not assigned until after the block.

Restore the comment, drop the stray call, and move the guidance after
`print_launch_banner` where `LORA_NAME` is set. Also document the NIXL
requirement: disaggregated KV transfer needs it, the Dynamo containers
install it, and a bare `pip install vllm` does not -- the engines fail
with "NIXL is not available" only after the model has loaded.

`proto/README.md` referenced a test named `proto_conformance` that does
not exist. Point at the two tests that do.

Verified on an RTX 6000 Ada with vLLM 0.28.1rc1.dev247+g73723b707
(contains vllm-project/vllm#52840):

- `disagg_lora.sh` now brings up both workers; the adapter loads on
  8081 and 8082 with the same server-assigned id, confirming the eager
  double-load this PR documents.
- Aggregated matrix, 12/12: load, list, generate, unknown adapter
  refused with 404 (no base fallback), idempotent reload, different-URI
  reload, capacity capped at max_loras, unload, post-unload refusal.
- Sidecar restart with adapters resident republished both and kept
  their ids ("republished LoRA adapters loaded before sidecar start
  count=2"); routing worked afterwards.
- DYN_LORA_HOTSWAP_ENABLED refuses a reload of a loaded name with the
  documented "hot swap is not supported by the gRPC backend" message.

Disaggregated *generation* remains unverified: vLLM's NIXL connector
raises `TypeError: 'float' object cannot be interpreted as an integer`
at base_worker.py:753 (`range(remote_pp_size)`), failing the KV
handshake. That is upstream, not Dynamo.

Signed-off-by: Julien Darve <[email protected]>
@JulienDarve

Copy link
Copy Markdown
Contributor

/ok to test bad9d5a

Resolve conflicts from #13717 (audio/video sidecar inputs) and adapt to
the API change in #13844 (shared AWS credentials for S3 LoRAs).

- lib/sidecar/vllm/README.md: each side declared the other's feature
  unsupported. main added audio/video and listed LoRA as unsupported;
  this branch added LoRA and listed audio/video as unsupported. Keep
  both features in Supported and drop both stale exclusions.

- lib/sidecar/vllm/src/tests.rs: main added an `audio_uuid` request and
  a `routing.lora_name` request to
  `unsupported_features_fail_before_rpc_submission`. Keep the audio one
  (audio/video cache UUIDs are still unsupported); drop the LoRA one,
  which main added while LoRA was categorically unsupported. Selection
  is now gated on the engine advertising `supports_lora`, covered by
  `selecting_an_adapter_without_engine_support_fails_clearly`. Keeping
  it would have compiled and passed while asserting the wrong thing,
  because that fixture has `supports_lora: false`.

- lib/sidecar/vllm/src/lora.rs: #13844 changed
  `S3LoRASource::from_env()` from `Result<Self>` to `Self`, deferring
  endpoint and credential resolution to a `OnceCell`. `build_downloader`
  still matched on a `Result` (E0308). Push the source directly; a
  missing S3 configuration now surfaces when an `s3://` source is
  resolved rather than at construction. git reported no conflict here --
  main changed the signature in lib/llm, this branch calls it from
  lib/sidecar/vllm -- so only the compiler caught it.

Verified on the merged tree:
- cargo check --workspace --all-targets (excluding the kvbm CUDA chain,
  which needs nvcc): clean
- cargo clippy -p dynamo-vllm-sidecar -p dynamo-vllm-mocker
  --all-targets: clean
- cargo test -p dynamo-vllm-sidecar --lib: 53 passed, 0 failed

Signed-off-by: Julien Darve <[email protected]>
@JulienDarve

Copy link
Copy Markdown
Contributor

/ok to test a2a1871

@JulienDarve

This comment was marked as resolved.

@JulienDarve

This comment was marked as resolved.

@JulienDarve

Copy link
Copy Markdown
Contributor

/ok to test ea86f42

Comment thread lib/sidecar/vllm/src/engine.rs Resolved
Comment thread lib/sidecar/vllm/src/engine.rs Resolved
Comment thread lib/sidecar/vllm/src/engine.rs Resolved
Comment thread lib/sidecar/vllm/src/engine.rs Resolved
Comment thread lib/sidecar/vllm/src/lora.rs Resolved
Comment thread lib/sidecar/vllm/src/engine.rs Resolved
Comment thread lib/sidecar/vllm/src/lora.rs Resolved
Comment thread lib/sidecar/vllm/src/engine.rs Resolved

@jthomson04 jthomson04 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The earlier correctness findings are addressed. Approving with two minor follow-ups: retain lock entries for loaded adapters and remove the unnecessary source-path clone. Reviewed the source at 6545d2f; tests and CI were not checked in this review. The stack still needs the queued-request LoRA routing fix in #14754 before merge.

@JulienDarve

Copy link
Copy Markdown
Contributor

/ok to test acfb62f

@jthomson04 jthomson04 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both remaining comments are addressed: published adapters retain their locks, and the unnecessary path clone is removed. Source reviewed at acfb62f; tests and CI were not checked in this review.

@JulienDarve

Copy link
Copy Markdown
Contributor

/ok to test f731d23

Base automatically changed from jdarve/sidecar-lora-api to main September 17, 2026 23:07
@JulienDarve
JulienDarve requested review from a team as code owners September 17, 2026 23:07
@JulienDarve

Copy link
Copy Markdown
Contributor

/ok to test 7c5f12a

@JulienDarve
JulienDarve merged commit 1346923 into main Sep 18, 2026
110 checks passed
@JulienDarve
JulienDarve deleted the feat/vllm-lora-lifecycle branch September 18, 2026 00:06
aung-san-i added a commit to aung-san-i/dynamo that referenced this pull request Sep 28, 2026
* feat: KV DC Relay file based source mode (ai-dynamo#14807)

Add live-reloaded file sources for KV DC Relay namespace selection and expose readiness and source revisions through /engine/state.

Preserve applied membership on invalid updates, coalesce discovery refreshes, and isolate native integration tests in forked processes.

Signed-off-by: Nikita Sukharev <[email protected]>

* feat(sglang): expose cross-encoder reranking through /v1/rerank (ai-dynamo#14032)

Signed-off-by: xianlubird <[email protected]>

* fix(profiler): explain inaccessible model paths during trust checks (ai-dynamo#14860)

Signed-off-by: hongkuanz <[email protected]>

* fix(sglang): sync discovery from native pause state (ai-dynamo#13951)

Signed-off-by: William Arnold <[email protected]>
Co-authored-by: Zero Rains <[email protected]>

* feat(recipes): add Solar Open2 250B NVFP4 aggregated and disaggregated recipes for B200 (ai-dynamo#14376)

Signed-off-by: Sandhya Rani Narravula <[email protected]>

* refactor(agents): session_id reader from AgentContext + forward to vLLM (ai-dynamo#14428)

Signed-off-by: Karen Chung <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix(discovery): allow served aliases for the same model source (ai-dynamo#14857)

Signed-off-by: jthomson04 <[email protected]>

* fix(router): reject unknown explicit worker targets (ai-dynamo#14858)

Signed-off-by: jthomson04 <[email protected]>

* fix(xpu): stabilize XPU test workers (ai-dynamo#14539)

Signed-off-by: Wenxin Zhang <[email protected]>
Signed-off-by: VincyZhang <[email protected]>

* feat(mm-routing): add Nemotron 3 Nano Omni video routing (ai-dynamo#14653)

Signed-off-by: krishung5 <[email protected]>

* fix(sglang): validate diffusion input_reference and bound media fetches (ai-dynamo#14435)

The sglang image-diffusion and video-generation handlers passed the
client-supplied input_reference through to the generator's image_path after only
a non-empty check. Validate it first, and for remote references materialize it
locally before the generator sees it, so the generator is always handed a
trusted local path. This brings the sglang diffusion path in line with the
vLLM/omni and trtllm backends, which already validate the same field.

Behavior change: local I2I/I2V references now require DYN_MM_LOCAL_PATH to be
set to the allowed directory; previously any path was accepted.

common/http:

- validate_media_reference() returns a plain filesystem path for local
  references; local_media_reference() is an async context manager that fetches a
  remote one through fetch_bytes(policy=...), which revalidates every redirect
  hop, into a temp file removed on exit. data: is rejected -- a URI is not a path.
- fetch_bytes() gained max_bytes, streaming through collect_capped at an explicit
  read granularity so the cap is an allocation bound and not only a rejection: a
  128 MiB-decoded gzip body against the 64 MiB cap peaks at 68,032,217 bytes
  rather than the whole decompressed body. Content-Length is caller-controlled
  and absent when chunked, and aiohttp's read(n) returns at most n bytes, so
  neither a header check nor a single capped read suffices. Defaults to None,
  leaving existing callers unchanged.
- DYN_MM_MAX_FILE_SIZE_MB makes that cap operator-tunable, in megabytes, as the
  SGLang arg it replaces was. Read per call; empty, unparseable or non-positive
  falls back to 64 with a warning, so a malformed value neither takes the worker
  down nor reads as unlimited.
- Messages built from caller input are bounded via describe_media_source, moved
  from multimodal/media_source.py (it pulls in torch) into url_validator.py and
  re-exported from its old home; a no-op below 120 characters.
- HttpStatusError bounds its .message attribute, not only the rendered string:
  errors.rs::extract_http_like_error reads .status and .message off this class by
  name and forwards .message on a 4xx without calling str(). Backend exception
  text is bounded head-and-tail, since aiohttp renders the host before the errno.
- validate_local_path uses exc.strerror rather than the raw OSError, whose text
  repeats the filename, and now catches the ValueError that Path.resolve() raises
  on an embedded NUL so callers keep their 4xx-vs-5xx decision.

Rebased onto ai-dynamo#14563 (single aiohttp backend); the httpx-side half of the
max_bytes plumbing went with that backend.

Signed-off-by: nnshah1 <[email protected]>
Signed-off-by: Dmitry Tokarev <[email protected]>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>

* chore(deps): upgrade fastokens to 0.3.2 (ai-dynamo#14798)

Signed-off-by: jthomson04 <[email protected]>

* fix(vllm): ship codec-free OpenCV for image inputs (ai-dynamo#14361)

Signed-off-by: [email protected] <[email protected]>
Signed-off-by: GLAMR <[email protected]>
Co-authored-by: Anant Sharma <[email protected]>
Co-authored-by: yunzhoul-nv <[email protected]>

* docs: refresh community events

Automated refresh from the public Dynamo Google Calendar.

Generated by .github/workflows/community-events-refresh.yml.

Signed-off-by: dynamo-ops <[email protected]>

* ci: refresh the compliance baseline in auto-upgrade pipeline (ai-dynamo#14206)

Signed-off-by: Anant Sharma <[email protected]>

* feat(triton): honor KServe classification on tensor outputs (ai-dynamo#14783)

Signed-off-by: Yingge He <[email protected]>

* docs(rl): stop the verl guide sending readers to a vLLM version it cannot run on (ai-dynamo#14571)

Signed-off-by: [email protected] <[email protected]>

* feat(mocker): publish native KV events from the vLLM gRPC server (ai-dynamo#14737)

Signed-off-by: jthomson04 <[email protected]>

* fix(kv-router): release unowned radix branches after eviction (ai-dynamo#14878)

Signed-off-by: jthomson04 <[email protected]>

* fix: show correct backend versions in the install selectors (ai-dynamo#13599)

Signed-off-by: Anant Sharma <[email protected]>

* build(vllm): prepare v0.29.0 bump (ai-dynamo#14543)

Signed-off-by: Julien Darve <[email protected]>

* ci(xpu): validation PR for the re-applied XPU workflows and Dockerfile

Throwaway PR to prove the CI merged in #22 actually runs end to end on XPU
hardware. Adds only a comment to container/templates/vllm_runtime.Dockerfile,
which matches the `vllm` path filter (container/templates/vllm_*) and so makes
changed-files set vllm=true, which is what gates build-xpu and the
heterog-test-px-dn / heterog-test-pn-dx jobs.

What this exercises:
  - .github/workflows/pr-xpu.yaml            (push to pull-request/[0-9]+, needs the xpu label)
  - .github/workflows/pr-xpu-heterogeneous.yaml (push; its guard deliberately skips the label gate)
  - .github/workflows/epd-test-template.yml  (workflow_call, from the heterog jobs)
  - .github/scripts/test-filters.js          (the brace fix from #22)
  - container/templates/vllm_runtime.Dockerfile rendered and built for device=xpu

Not exercised: .github/workflows/xpu-heterogeneous-dispatch.yaml is
workflow_dispatch only and has to be run by hand from the Actions tab.

The marker comment must be removed before this branch is ever merged.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* feat(triton): Update Triton Base Image to 26.08 (ai-dynamo#14854)

Signed-off-by: J Wyman <[email protected]>
Co-authored-by: Rini Gupta <[email protected]>

* fix(operator): normalize equivalent worker hash inputs (ai-dynamo#14721)

Signed-off-by: bzsuni <[email protected]>

* test(sglang): exercise NIXL in embedding cache E/PD test (ai-dynamo#14795)

Signed-off-by: Sai Kiran Polisetty <[email protected]>

* fix(sglang): stop the elastic-EP scale-up worker crash-looping at startup (ai-dynamo#14568)

Signed-off-by: [email protected] <[email protected]>
Co-authored-by: yunzhoul-nv <[email protected]>

* fix(responses): honor tool_choice when parsing tool calls from text (ai-dynamo#14843)

Signed-off-by: xianlubird <[email protected]>

* ci: accept trusted full-CI request comments (ai-dynamo#14868)

Signed-off-by: Matej Kosec <[email protected]>

* docs: clarify EPP mode boundary and single-replica Dynamo mode fixes [DYN-4310] (ai-dynamo#14756)

Signed-off-by: Anna Tchernych <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>

* ci(docs): move the generated-tables determinism gate out of link checking (ai-dynamo#14135)

Signed-off-by: Dan Gil <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>

* ci(docs): generate the Kubernetes API reference at publish time (ai-dynamo#14122)

Signed-off-by: Dan Gil <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>

* fix(operator): discover pull secrets for init containers (ai-dynamo#14922)

Signed-off-by: bojiang-li <[email protected]>

* fix(sglang): stop an unusable mooncake backend crashing workers after model load (ai-dynamo#14461)

Signed-off-by: [email protected] <[email protected]>
Signed-off-by: glamr-agent <[email protected]>
Signed-off-by: GLAMR <[email protected]>

* fix(sglang): emit prefill handoff before completion in sidecar (ai-dynamo#14260)

Signed-off-by: jain-ria <[email protected]>
Co-authored-by: jain-ria <[email protected]>
Co-authored-by: Connor Carpenter <[email protected]>
Co-authored-by: ishandhanani <[email protected]>

* test(trtllm): enable fault tolerance coverage (ai-dynamo#14609)

Signed-off-by: tanmayv25 <[email protected]>

* fix(frontend): evict async tokenizer executors when the tokenizer is retired (ai-dynamo#13368)

Signed-off-by: Peter Pan <[email protected]>

* fix(llm): report KServe datatypes by their wire names, not protobuf variants (ai-dynamo#14957)

`ModelMetadata` reported each Triton-registered tensor's `datatype` using
`inference::DataType::as_str_name()`, which returns the `model_config.proto`
variant name (`TYPE_FP32`, `TYPE_STRING`, ...) instead of the KServe v2 wire
names (`FP32`, `BYTES`, ...). Every datatype was wrong, so spec-conforming
clients cannot parse any tensor the RPC describes. Adds `oip_name()` next to
`tensor::DataType::to_kserve` covering all fifteen proto variants (incl. FP16
and BF16) and mapping `TYPE_STRING → BYTES`.

Original PR by @ayaangazali: ai-dynamo#14770. Reissued under a signed commit to
unblock the copy-pr-bot signature gate; diff is byte-identical.

Closes ai-dynamo#14520.

Signed-off-by: ayaangazali <[email protected]>
Signed-off-by: ayaangazali <[email protected]>
Signed-off-by: Vinya Kestur <[email protected]>
Co-authored-by: ayaangazali <[email protected]>

* docs(mm-routing): document video KV routing (ai-dynamo#14958)

Signed-off-by: krishung5 <[email protected]>

* fix(sidecar): honor worker namespace suffix (ai-dynamo#14955)

Signed-off-by: Biswa Panda <[email protected]>

* fix(bindings): drain bridge tasks before interpreter finalization (ai-dynamo#14813)

Signed-off-by: [email protected] <[email protected]>
Signed-off-by: GLAMR <[email protected]>
Co-authored-by: Tushar Sharma <[email protected]>

* fix(discovery): stop a Qwen3-VL worker from serving video with another worker's contract (ai-dynamo#14624)

Signed-off-by: [email protected] <[email protected]>
Signed-off-by: GLAMR <[email protected]>

* fix(gms): honor configured timeout during initial weights admission (ai-dynamo#14877)

Signed-off-by: [email protected] <[email protected]>
Signed-off-by: Schwinn Saereesitthipitak <[email protected]>
Signed-off-by: GLAMR <[email protected]>
Co-authored-by: Schwinn Saereesitthipitak <[email protected]>

* feat(kv-router): add construction-time indexer delegates (ai-dynamo#14945)

* fix(sglang): support min_tokens on tokenizer-free decode workers (ai-dynamo#14276)

Signed-off-by: [email protected] <[email protected]>
Signed-off-by: GLAMR <[email protected]>
Signed-off-by: jain-ria <[email protected]>
Co-authored-by: jain-ria <[email protected]>
Co-authored-by: MatejKosec <[email protected]>

* feat(router): add SessionPrefixIndexer for session-block lineage (ai-dynamo#13807)

Signed-off-by: [email protected] <[email protected]>
Signed-off-by: Karen Chung <[email protected]>
Signed-off-by: Matej Kosec <[email protected]>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Matej Kosec <[email protected]>

* fix(vllm): settle kvwarm stages through a per-step round on every attention-DP rank (ai-dynamo#14728)

Signed-off-by: Yiming Liu <[email protected]>

* feat(vllm): benchmark hybrid caches with random KDA state (ai-dynamo#14900)

Signed-off-by: hongkuanz <[email protected]>

* fix(runtime): fix QUIC reassembly and reduce response stalls (ai-dynamo#14876)

Signed-off-by: jthomson04 <[email protected]>

* feat(router): unify frontend and standalone selection core (ai-dynamo#14570)

Signed-off-by: Ishan Dhanani <[email protected]>
Signed-off-by: Thomas Montfort <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
Co-authored-by: Thomas Montfort <[email protected]>

* fix(planner): keep control APIs responsive during Prometheus collection (ai-dynamo#14377)

Signed-off-by: xianlubird <[email protected]>
Co-authored-by: Hongkuan Zhou <[email protected]>

* fix(router): record SGLang prefill completion after stream ends (ai-dynamo#14968)

Signed-off-by: jain-ria <[email protected]>

* fix(frontend): send inline media once on the TCP request plane (ai-dynamo#14801)

Signed-off-by: Sumit Mishra <[email protected]>
Co-authored-by: Indrajit Bhosale <[email protected]>

* docs: refresh community events

Automated refresh from the public Dynamo Google Calendar.

Generated by .github/workflows/community-events-refresh.yml.

Signed-off-by: dynamo-ops <[email protected]>

* fix(vllm): initialize synchronizer in KV warmup capacity test (ai-dynamo#14984)

Signed-off-by: Alec Flowers <[email protected]>

* fix(recipes): make the Solar Open2 250B benchmark and docs link usable (ai-dynamo#14956)

Signed-off-by: Sandhya Rani Narravula <[email protected]>

* feat(recipes): add K-EXAONE 2.0 750B-A37B NVFP4 vLLM recipes for B200 (ai-dynamo#14822)

Signed-off-by: Cheng Wang <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>

* feat: KVCR Resiliency Deployment Example (ai-dynamo#14695)

Add two-node DynamoGraphDeployment examples for process-local KVCR and
the KVCR memory service. Run one vLLM worker per GPU node, use stable
Grove ordinals for cache-owner slots, and request GPU-local RDMA
resources for engines and Guard services. Provide a deployment helper
for rendering and selecting either variant.

Run the KV state agent alongside vLLM for process-local host memory. In
memory-service mode, keep KVCR and the state agent in a separate
container so its Guard and shared-memory pool survive engine restarts.
Document that restarting the services sidecar invalidates the MVP
recovery contract and requires deployment-level replacement.

Add manifest coverage and an opt-in two-host lifecycle test. Kill the
source EngineCore, hold it offline, and verify that the promoted Guard
serves its preserved cache to the surviving target. Correlate response
equality and KVCR transfer metrics with transmit and receive counters
from the selected active HCA to prove RDMA transport.

Pin compatible KVCR and vLLM revisions and document the runtime,
discovery, compatibility-digest, and recovery prerequisites.

Signed-off-by: Adit Ranadive <[email protected]>

* feat(omni): add Nemotron Audex speech synthesis to /v1/audio/speech (ai-dynamo#12788)

Signed-off-by: Thanaji Rao Thakkalapelli <[email protected]>

* ci: allow glamr-agent to request CI on its own unsigned PRs (ai-dynamo#14964)

Signed-off-by: Matej Kosec <[email protected]>

* fix(vllm): isolate multimodal worker ports (ai-dynamo#14751)

Signed-off-by: Keiven Chang <[email protected]>
Co-authored-by: Keiven Chang <[email protected]>

* fix(runtime): reject invalid DYN_REQUEST_PLANE values (ai-dynamo#12612)

Signed-off-by: [email protected] <[email protected]>
Signed-off-by: Matej Kosec <[email protected]>
Signed-off-by: Coding Agent <[email protected]>
Signed-off-by: GLAMR <[email protected]>
Co-authored-by: MatejKosec <[email protected]>

* fix(responses): preserve text instead of inferring tool calls (ai-dynamo#14846)

Signed-off-by: xianlubird <[email protected]>
Co-authored-by: Ryan McCormick <[email protected]>

* chore: temporarily increase frontend build time limit 45 --> 90 min (ai-dynamo#15019)

Signed-off-by: Dmitry Tokarev <[email protected]>

* test(operator): cover scoped CA injection ownership (ai-dynamo#14961)

Signed-off-by: Julien Mancuso <[email protected]>

* feat(frontend): map semantic errors to HTTP responses (ai-dynamo#14396)

Signed-off-by: Biswa Panda <[email protected]>

* docs: correct fault-tolerance architecture details (ai-dynamo#14880)

Signed-off-by: Elizabeth Thomas <[email protected]>

* build(deps): bump nats-server to v2.14.7 (ai-dynamo#14919)

Signed-off-by: Dan Gil <[email protected]>

* build(deps): bump AISimulate to 0.12.0 (ai-dynamo#15012)

Signed-off-by: Harrison King Saturley-Hall <[email protected]>

* remove oneAPI env for XPU detection

* feat(backends): expose native LoRA capacity in model registration (ai-dynamo#14754)

Signed-off-by: Julien Darve <[email protected]>
Signed-off-by: bzsuni <[email protected]>
Co-authored-by: bzsuni <[email protected]>

* fix(planner): handle pending decisions in virtual connector wait (ai-dynamo#14841)

Signed-off-by: bzsuni <[email protected]>
Co-authored-by: Hongkuan Zhou <[email protected]>

* feat(vllm): add sidecar LoRA lifecycle (ai-dynamo#13068)

Signed-off-by: Julien Darve <[email protected]>
Signed-off-by: bzsuni <[email protected]>
Co-authored-by: Julien Darve <[email protected]>
Co-authored-by: bzsuni <[email protected]>

* fix(vllm/omni): pass response_format into video EngineInputs (ai-dynamo#14667) (ai-dynamo#14844)

* chore: bump version to 1.6.0 post 1.5.0 branch cut (ai-dynamo#15009)

Signed-off-by: pvijayakrish <[email protected]>
Signed-off-by: Pavithra Vijayakrishnan <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>

* fix(ci): Use `pytest --ignore` to Skip Tests Based on Framework (ai-dynamo#14815)

Signed-off-by: J Wyman <[email protected]>

* feat(sidecar): add e2e CI testing for sidecar launch scripts (ai-dynamo#14508)

Signed-off-by: tanmayv25 <[email protected]>
Signed-off-by: Julien Darve <[email protected]>
Co-authored-by: Julien Darve <[email protected]>

* chore(xpu): upgrade vllm and omni to 0.29.0

Signed-off-by: wenxin.zhang <[email protected]>

* docs(operator): document the DGDR workload-creation trust boundary (ai-dynamo#14429)

Signed-off-by: nnshah1 <[email protected]>
Co-authored-by: Claude Opus 4.8 <[email protected]>

* fix(xpu): use released vllm-omni prerelease

Signed-off-by: Wenxin Zhang <[email protected]>

* test(efa): add the EFA disaggregated deploy test for sglang (ai-dynamo#13893)

Signed-off-by: Jie Hao <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>

* fix(runtime): support IPv6-only IP resolution (ai-dynamo#13126)

Signed-off-by: jthomson04 <[email protected]>

* docs(fault-tolerance): clarify migration after shutdown grace expires (ai-dynamo#14872)

Signed-off-by: Jacky <[email protected]>

* feat(vllm-omni): preserve generated video audio (ai-dynamo#13707)

Signed-off-by: Guan Luo <[email protected]>
Co-authored-by: Guan Luo <[email protected]>

* feat(vllm-omni): pass model-specific video parameters (ai-dynamo#13708)

Signed-off-by: Guan Luo <[email protected]>
Co-authored-by: Guan Luo <[email protected]>

* feat(vllm-omni): qualify MiniMax-H3 T2VA on B200 (ai-dynamo#13589)

Signed-off-by: Guan Luo <[email protected]>
Signed-off-by: GuanLuo <[email protected]>
Co-authored-by: Guan Luo <[email protected]>
Co-authored-by: GuanLuo <[email protected]>
Co-authored-by: Ryan McCormick <[email protected]>

* fix(vllm): remove obsolete Omni compatibility guard

Signed-off-by: Wenxin Zhang <[email protected]>

* fix(vllm): retain Omni compatibility guard

Signed-off-by: Wenxin Zhang <[email protected]>

* .github/workflows/pr-xpu-heterogeneous.yaml; pin GPU_TAG to latest

* .github/workflows/; add post-merge and nightly XPU heterogeneous CI

Extract the XPU heterogeneous P/D pipeline out of pr-xpu-heterogeneous.yaml
into xpu-heterogeneous-run.yml, a workflow_call reusable workflow, and call it
from three thin trigger workflows so all three merge phases run the identical
pipeline instead of drifting copies.

  xpu-heterogeneous-run.yml           new, reusable. guard, changed-files,
                                      build-xpu, build-nvidia, resolve-images
                                      and both heterog tests, unchanged, plus
                                      7 inputs.
  pr-xpu-heterogeneous.yaml           reduced to the pre-merge trigger, the
                                      slash-command gate and the reaction.
  post-merge-xpu-heterogeneous.yaml   new. push to main.
  nightly-xpu-heterogeneous.yaml      new file, but the cron is MOVED, not
                                      added: it is the 0 23 * * * schedule
                                      that was already in
                                      pr-xpu-heterogeneous.yaml.

No behaviour change per phase. force_all_tests replaces the old
  github.event_name == 'schedule' || github.event_name == 'issue_comment'
expression with the same truth table: pre-merge passes
github.event_name == 'issue_comment', nightly passes true. Post-merge also
passes true, because a push to main has no PR base for
.github/actions/changed-files to diff against, and post-merge exists to catch
what per-PR gating missed.

xpu-status-check stays a TOP-LEVEL job in each caller rather than moving into
the reusable workflow. A job contributed by a reusable workflow reports to the
Checks API as "run / xpu-status-check", so hosting it there would rename the
context and leave any branch protection rule requiring xpu-status-check waiting
forever on a check that no longer reports.

The concurrency mapping stays byte-identical across all four workflows that
touch this hardware, now including xpu-heterogeneous-dispatch.yaml. Three files
do NOT get three slots: the cluster, the dynamo-system namespace and the
onexpu-/onenvidia-rdma-kueue ResourceClaimTemplates are one global resource.
The reusable workflow deliberately carries no concurrency block of its own,
which would deadlock against the slot the caller's run already holds.

Parameterised gpu_tag, model, tensor_parallel and runner as inputs so the
callers can diverge; all default to the previously hardcoded values. Added
workflow_dispatch to the nightly, without which a schedule-only workflow cannot
be exercised before it reaches the default branch.

Verified: all files parse; the four concurrency mappings are byte-identical; the
reusable workflow declares no concurrency; every input each caller passes exists
and every required input is supplied; nesting is depth 3 of the 4 GitHub allows.
actionlint was not available to run, and will report queue:max as an unknown key
in all four files, a known false positive.

---------

Signed-off-by: Nikita Sukharev <[email protected]>
Signed-off-by: xianlubird <[email protected]>
Signed-off-by: hongkuanz <[email protected]>
Signed-off-by: William Arnold <[email protected]>
Signed-off-by: Sandhya Rani Narravula <[email protected]>
Signed-off-by: Karen Chung <[email protected]>
Signed-off-by: jthomson04 <[email protected]>
Signed-off-by: Wenxin Zhang <[email protected]>
Signed-off-by: VincyZhang <[email protected]>
Signed-off-by: krishung5 <[email protected]>
Signed-off-by: nnshah1 <[email protected]>
Signed-off-by: Dmitry Tokarev <[email protected]>
Signed-off-by: [email protected] <[email protected]>
Signed-off-by: GLAMR <[email protected]>
Signed-off-by: dynamo-ops <[email protected]>
Signed-off-by: Anant Sharma <[email protected]>
Signed-off-by: Yingge He <[email protected]>
Signed-off-by: Julien Darve <[email protected]>
Signed-off-by: J Wyman <[email protected]>
Signed-off-by: bzsuni <[email protected]>
Signed-off-by: Sai Kiran Polisetty <[email protected]>
Signed-off-by: Matej Kosec <[email protected]>
Signed-off-by: Anna Tchernych <[email protected]>
Signed-off-by: Dan Gil <[email protected]>
Signed-off-by: bojiang-li <[email protected]>
Signed-off-by: glamr-agent <[email protected]>
Signed-off-by: jain-ria <[email protected]>
Signed-off-by: tanmayv25 <[email protected]>
Signed-off-by: Peter Pan <[email protected]>
Signed-off-by: ayaangazali <[email protected]>
Signed-off-by: ayaangazali <[email protected]>
Signed-off-by: Vinya Kestur <[email protected]>
Signed-off-by: Biswa Panda <[email protected]>
Signed-off-by: Schwinn Saereesitthipitak <[email protected]>
Signed-off-by: Yiming Liu <[email protected]>
Signed-off-by: Ishan Dhanani <[email protected]>
Signed-off-by: Thomas Montfort <[email protected]>
Signed-off-by: Sumit Mishra <[email protected]>
Signed-off-by: Alec Flowers <[email protected]>
Signed-off-by: Cheng Wang <[email protected]>
Signed-off-by: Adit Ranadive <[email protected]>
Signed-off-by: Thanaji Rao Thakkalapelli <[email protected]>
Signed-off-by: Keiven Chang <[email protected]>
Signed-off-by: Coding Agent <[email protected]>
Signed-off-by: Julien Mancuso <[email protected]>
Signed-off-by: Elizabeth Thomas <[email protected]>
Signed-off-by: Harrison King Saturley-Hall <[email protected]>
Signed-off-by: pvijayakrish <[email protected]>
Signed-off-by: Pavithra Vijayakrishnan <[email protected]>
Signed-off-by: wenxin.zhang <[email protected]>
Signed-off-by: Jie Hao <[email protected]>
Signed-off-by: Jacky <[email protected]>
Signed-off-by: Guan Luo <[email protected]>
Signed-off-by: GuanLuo <[email protected]>
Co-authored-by: Nikita Sukharev <[email protected]>
Co-authored-by: Xianlu Bird <[email protected]>
Co-authored-by: Hongkuan Zhou <[email protected]>
Co-authored-by: William Arnold <[email protected]>
Co-authored-by: Zero Rains <[email protected]>
Co-authored-by: snarravula-dl <[email protected]>
Co-authored-by: Karen Chung <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: jthomson04 <[email protected]>
Co-authored-by: VincyZhang <[email protected]>
Co-authored-by: Kris Hung <[email protected]>
Co-authored-by: Neelay Shah <[email protected]>
Co-authored-by: Claude Opus 4.8 <[email protected]>
Co-authored-by: GLAMR <[email protected]>
Co-authored-by: Anant Sharma <[email protected]>
Co-authored-by: yunzhoul-nv <[email protected]>
Co-authored-by: dynamo-ops <[email protected]>
Co-authored-by: Yingge He <[email protected]>
Co-authored-by: JulienDarve <[email protected]>
Co-authored-by: J Wyman <[email protected]>
Co-authored-by: Rini Gupta <[email protected]>
Co-authored-by: bzsuni <[email protected]>
Co-authored-by: Sai Kiran Polisetty <[email protected]>
Co-authored-by: MatejKosec <[email protected]>
Co-authored-by: atchernych <[email protected]>
Co-authored-by: Dan Gil <[email protected]>
Co-authored-by: Bojiang Li <[email protected]>
Co-authored-by: Connor Carpenter <[email protected]>
Co-authored-by: jain-ria <[email protected]>
Co-authored-by: Connor Carpenter <[email protected]>
Co-authored-by: ishandhanani <[email protected]>
Co-authored-by: Tanmay Verma <[email protected]>
Co-authored-by: Peter Pan <[email protected]>
Co-authored-by: Vinya Kestur Tumakuru Arun Kumar <[email protected]>
Co-authored-by: ayaangazali <[email protected]>
Co-authored-by: Biswa Panda <[email protected]>
Co-authored-by: Tushar Sharma <[email protected]>
Co-authored-by: Schwinn Saereesitthipitak <[email protected]>
Co-authored-by: Ryan Olson <[email protected]>
Co-authored-by: Yimingl_Nvidia <[email protected]>
Co-authored-by: Thomas Montfort <[email protected]>
Co-authored-by: Sumit884-byte <[email protected]>
Co-authored-by: Indrajit Bhosale <[email protected]>
Co-authored-by: Alec <[email protected]>
Co-authored-by: chw001 <[email protected]>
Co-authored-by: Adit Ranadive <[email protected]>
Co-authored-by: Thanaji Rao Thakkalapelli <[email protected]>
Co-authored-by: Keiven C <[email protected]>
Co-authored-by: Keiven Chang <[email protected]>
Co-authored-by: Ryan McCormick <[email protected]>
Co-authored-by: Dmitry Tokarev <[email protected]>
Co-authored-by: Julien Mancuso <[email protected]>
Co-authored-by: Elizabeth Thomas <[email protected]>
Co-authored-by: Harrison Saturley-Hall <[email protected]>
Co-authored-by: Julien Darve <[email protected]>
Co-authored-by: Jasim Kareem <[email protected]>
Co-authored-by: Pavithra Vijayakrishnan <[email protected]>
Co-authored-by: Jie Hao <[email protected]>
Co-authored-by: Jacky <[email protected]>
Co-authored-by: Qi Wang <[email protected]>
Co-authored-by: Guan Luo <[email protected]>
Co-authored-by: GuanLuo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation feat size/XXL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants