Skip to content

Conversation

@grahamking
Copy link
Contributor

@grahamking grahamking commented Jul 14, 2025

Instead of dynamo-run spawning them as a sub-process, we now ask the user to do it. In practice the worker is nearly always on a separate machine so this makes that more obvious.

Part of the dynamo-run disaggregation.

  • Removed support for the "sglang", "vllm", and "trtllm" output engines from the launcher and CLI tools.
  • Simplified engine selection and removed related subprocess management and multi-GPU configuration options.
  • Deleted associated Python integration files and configuration samples for these engines.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 14, 2025


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
docs/get_started.md (1)

126-127: Documentation placeholder appropriately added.

The TODO comment correctly indicates this section needs updating due to the removal of subprocess-based engine management. This helps maintain documentation accuracy during the transition period.

Would you like me to help draft updated documentation for this section that reflects the new workflow where users must start workers themselves?

launch/dynamo-run/src/lib.rs (1)

43-45: Update or remove the outdated TODO comment.

This TODO comment references old subprocess handling that is no longer relevant after the removal of subprocess-based engines. The comment mentions "trtllm/sglang/vllm subprocess" which are no longer supported according to the PR objectives.

Consider updating this comment to reflect the current architecture or removing it entirely:

-    // TODO: old, address this later:
-    // If `in=dyn` we want the trtllm/sglang/vllm subprocess to listen on that endpoint.
-    // If not, then the endpoint isn't exposed so we let LocalModel invent one.
+    // If `in=dyn` we want the engine to listen on that endpoint.
+    // If not, then the endpoint isn't exposed so we let LocalModel invent one.
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3e0cb07 and 4f3d168.

📒 Files selected for processing (20)
  • docs/get_started.md (1 hunks)
  • docs/guides/dynamo_run.md (1 hunks)
  • examples/cli/cli.py (1 hunks)
  • examples/cli/sglang_inc.py (0 hunks)
  • examples/cli/trtllm_inc.py (0 hunks)
  • examples/cli/vllm_inc.py (0 hunks)
  • launch/dynamo-run/src/flags.rs (0 hunks)
  • launch/dynamo-run/src/lib.rs (2 hunks)
  • launch/dynamo-run/src/main.rs (1 hunks)
  • launch/dynamo-run/src/opt.rs (0 hunks)
  • launch/dynamo-run/src/subprocess.rs (0 hunks)
  • launch/dynamo-run/src/subprocess/sglang.rs (0 hunks)
  • launch/dynamo-run/src/subprocess/sglang_inc.py (0 hunks)
  • launch/dynamo-run/src/subprocess/trtllm.rs (0 hunks)
  • launch/dynamo-run/src/subprocess/trtllm_config/sample.yaml (0 hunks)
  • launch/dynamo-run/src/subprocess/trtllm_inc.py (0 hunks)
  • launch/dynamo-run/src/subprocess/vllm.rs (0 hunks)
  • launch/dynamo-run/src/subprocess/vllm_inc.py (0 hunks)
  • launch/dynamo-run/src/subprocess/vllm_v1_inc.py (0 hunks)
  • lib/llm/src/entrypoint/input/endpoint.rs (1 hunks)
💤 Files with no reviewable changes (14)
  • launch/dynamo-run/src/subprocess/trtllm_config/sample.yaml
  • launch/dynamo-run/src/subprocess/vllm.rs
  • launch/dynamo-run/src/subprocess/sglang.rs
  • launch/dynamo-run/src/subprocess.rs
  • examples/cli/vllm_inc.py
  • examples/cli/sglang_inc.py
  • launch/dynamo-run/src/opt.rs
  • launch/dynamo-run/src/subprocess/vllm_inc.py
  • launch/dynamo-run/src/subprocess/sglang_inc.py
  • launch/dynamo-run/src/flags.rs
  • launch/dynamo-run/src/subprocess/trtllm.rs
  • examples/cli/trtllm_inc.py
  • launch/dynamo-run/src/subprocess/trtllm_inc.py
  • launch/dynamo-run/src/subprocess/vllm_v1_inc.py
🧰 Additional context used
🧠 Learnings (3)
docs/guides/dynamo_run.md (2)
Learnt from: biswapanda
PR: ai-dynamo/dynamo#1412
File: lib/bindings/python/src/dynamo/runtime/logging.py:100-100
Timestamp: 2025-06-06T21:48:35.214Z
Learning: In the Dynamo codebase, BentoML has been completely removed from all executable code, with only documentation and attribution references remaining. The error_loggers configuration in lib/bindings/python/src/dynamo/runtime/logging.py should not include "bentoml" since those modules no longer exist.
Learnt from: nnshah1
PR: ai-dynamo/dynamo#1444
File: tests/fault_tolerance/utils/metrics.py:30-32
Timestamp: 2025-07-01T13:55:03.940Z
Learning: The `@dynamo_worker()` decorator in the dynamo codebase returns a wrapper that automatically injects the `runtime` parameter before calling the wrapped function. This means callers only need to provide the non-runtime parameters, while the decorator handles injecting the runtime argument automatically. For example, a function with signature `async def get_metrics(runtime, log_dir)` decorated with `@dynamo_worker()` can be called as `get_metrics(log_dir)` because the decorator wrapper injects the runtime parameter.
lib/llm/src/entrypoint/input/endpoint.rs (3)
Learnt from: PeaBrane
PR: ai-dynamo/dynamo#1285
File: lib/llm/src/kv_router/scoring.rs:58-63
Timestamp: 2025-05-30T06:38:09.630Z
Learning: In lib/llm/src/kv_router/scoring.rs, the user prefers to keep the panic behavior when calculating load_avg and variance with empty endpoints rather than adding guards for division by zero. They want the code to fail fast on this error condition.
Learnt from: PeaBrane
PR: ai-dynamo/dynamo#1392
File: lib/llm/src/kv_router/scoring.rs:35-46
Timestamp: 2025-06-05T01:02:15.318Z
Learning: In lib/llm/src/kv_router/scoring.rs, PeaBrane prefers panic-based early failure over Result-based error handling for the worker_id() method to catch invalid data early during development.
Learnt from: ryanolson
PR: ai-dynamo/dynamo#1093
File: lib/llm/src/block_manager/block/registry.rs:98-122
Timestamp: 2025-05-29T06:20:12.901Z
Learning: In lib/llm/src/block_manager/block/registry.rs, the background task spawned for handling unregister notifications uses detached concurrency by design. The JoinHandle is intentionally not stored as this represents a reasonable architectural tradeoff for a long-running cleanup task.
launch/dynamo-run/src/lib.rs (1)
Learnt from: PeaBrane
PR: ai-dynamo/dynamo#1285
File: lib/llm/src/kv_router/scoring.rs:58-63
Timestamp: 2025-05-30T06:38:09.630Z
Learning: In lib/llm/src/kv_router/scoring.rs, the user prefers to keep the panic behavior when calculating load_avg and variance with empty endpoints rather than adding guards for division by zero. They want the code to fail fast on this error condition.
🔇 Additional comments (7)
docs/guides/dynamo_run.md (1)

3-8: Well-placed warning banner for outdated documentation.

The prominently displayed warning banner effectively communicates that the document is temporarily out of date due to ongoing changes. The formatting with horizontal rules makes it visually clear to users.

launch/dynamo-run/src/main.rs (1)

93-96: Clean implementation of engine restriction with helpful error messaging.

The conditional check effectively prevents usage of the removed engines while providing clear guidance to users about alternative approaches. The error message is informative and the exit code is appropriate.

lib/llm/src/entrypoint/input/endpoint.rs (1)

83-83: Appropriate replacement with explicit assertion.

The unreachable! macro is a cleaner approach than a never-resolving future for this code path that should never be reached. The assertion message clearly explains why this case is unreachable.

examples/cli/cli.py (1)

145-145: Excellent simplification by removing subprocess orchestration.

The simplified run_input call reflects the removal of complex subprocess management logic. This makes the CLI more straightforward and focused, eliminating the need for signal handling, cleanup functions, and subprocess lifecycle management.

launch/dynamo-run/src/lib.rs (3)

68-68: Function call correctly updated to match new signature.

The engine_for function call has been properly updated to remove the flags parameter, which is consistent with the subprocess removal.


80-84: Function signature properly simplified.

The function signature has been correctly simplified:

  • Removed the flags parameter (no longer needed without subprocess management)
  • Changed return type from tuple to EngineConfig (no more subprocess futures to manage)

This aligns well with the PR objective of removing subprocess spawning.


85-105: Match arms correctly simplified without subprocess logic.

The match arms have been properly simplified to return EngineConfig variants directly. The removal of subprocess-based engines (sglang, vllm, trtllm) is clean and consistent with the PR objectives.

The remaining engines (Dynamic, EchoFull, EchoCore, MistralRs, LlamaCpp) are handled correctly without any subprocess spawning logic.

@grahamking
Copy link
Contributor Author

grahamking commented Jul 14, 2025

This should be merged after the components/backends, runnable as e.g. python -m dynamo.backends.sglang exist:

Copy link
Contributor

@ishandhanani ishandhanani left a comment

Choose a reason for hiding this comment

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

nice

@grahamking
Copy link
Contributor Author

dynamo-run is changing more than this, will revisit.

@grahamking grahamking marked this pull request as draft July 22, 2025 22:09
@grahamking grahamking force-pushed the gk-separate-subprocess branch from 4f3d168 to 2b3f15b Compare July 23, 2025 21:48
@grahamking grahamking marked this pull request as ready for review July 23, 2025 21:48
@grahamking grahamking force-pushed the gk-separate-subprocess branch from 2b3f15b to 3bde57b Compare July 23, 2025 21:49
@grahamking grahamking enabled auto-merge (squash) July 23, 2025 21:57
@grahamking grahamking requested a review from ishandhanani July 23, 2025 22:16
Instead of `dynamo-run` spawning them as a sub-process, we now ask the
user to do it. In practice the worker is nearly always on a separate
machine so this makes that more obvious.

Part of the dynamo-run disaggregation.
Copy link
Contributor

@rmccorm4 rmccorm4 left a comment

Choose a reason for hiding this comment

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

Nice cleanup 🚀

@grahamking grahamking merged commit 19a77ae into main Jul 24, 2025
12 of 13 checks passed
@grahamking grahamking deleted the gk-separate-subprocess branch July 24, 2025 00:22
@yinggeh
Copy link
Contributor

yinggeh commented Jul 25, 2025

Hi @grahamking. I am new to Dynamo and currently following https://confluence.nvidia.com/display/DL/Dynamo+Onboarding+Page. Can you update line dynamo run out=vllm Qwen/Qwen3-0.6B as it no longer works for me? Thanks

@grahamking
Copy link
Contributor Author

grahamking commented Aug 4, 2025

Hi @grahamking. I am new to Dynamo and currently following ...

I don't think that's a publically visible page. This repo is up to date, start here: https://github.com/ai-dynamo/dynamo/tree/main/examples/basics/quickstart

grahamking added a commit that referenced this pull request Aug 6, 2025
UX v2 has a smaller role for dynamo-run. Clarify that in the guide.

- Remove sglang, vllm and trtllm engines.
- Remove old KV-routing (vllm patch pre merge) instructions.
- Adjust the Markdown header levels to reflect document organisation.

Follow-up to #1920
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants