Skip to content

Conversation

@grahamking
Copy link
Contributor

@grahamking grahamking commented Jul 23, 2025

  • Documentation
    • Major restructuring and modernization of the main README with updated installation, setup, engine selection, and local development instructions.
    • Expanded and clarified engine-specific usage notes and removed Docker image build instructions.
    • Updated metrics component documentation with revised deployment and monitoring commands.
    • Simplified and updated the Python worker guide to focus on a new function-based API.
    • Removed or significantly trimmed multiple example and reference documentation files, including deployment, multinode, and backend guides.
    • Streamlined architecture and routing documentation, removing detailed code examples and internal explanations.
    • Minor updates to support matrix and planner benchmark documentation.
    • Removed the "Getting Started" entry from the documentation index.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 23, 2025

Walkthrough

This set of changes extensively revises and modernizes documentation throughout the project. The main README and several guides are updated to reflect new installation and usage practices, particularly focusing on direct Python module usage and the uv package manager. Numerous example and API documentation files are deleted or simplified, and several architecture and guide documents are rewritten or trimmed for clarity and conciseness. No code or public API signatures are altered.

Changes

File(s) Change Summary
README.md Major rewrite: reorganized installation, setup, engine selection, and usage instructions; Docker and Compose removed; dev setup clarified.
components/metrics/README.md Updated deployment/metrics gathering instructions to use Python modules; command and endpoint names revised.
docs/API/python_bindings.md
docs/API/sdk.md
docs/examples/README.md
docs/examples/disagg_skeleton.md
docs/examples/llm_deployment.md
docs/examples/multinode.md
docs/examples/trtllm.md
docs/get_started.md
Deleted: API, example, and getting started documentation files removed.
docs/architecture/disagg_serving.md Removed detailed explanation of worker discovery/registration and graceful shutdown; simplified content.
docs/architecture/kv_cache_routing.md Simplified: rewrote intro, removed example code and detailed architecture, focused on routing arguments.
docs/guides/backend.md Rewritten: switched from class-based to function-based worker definition, minimal new example, advanced features removed.
docs/guides/dynamo_deploy/dynamo_operator.md Removed Dynamo CLI as a prerequisite for GitOps deployment; no other changes.
docs/guides/planner_benchmark/README.md Removed license text, replaced CLI instructions with Kubernetes deployment placeholders.
docs/index.rst Removed "Getting Started" entry from documentation index.
docs/support_matrix.md Removed license text and vllm package version entries from dependency tables.
lib/llm/src/discovery/watcher.rs Removed a comment in error handling; no logic changed.

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant PythonModule
  participant Engine
  participant ClusterService

  User->>PythonModule: Run (e.g., python -m dynamo.frontend)
  PythonModule->>ClusterService: Connect to etcd, nats
  User->>Engine: Install via uv pip install <engine>
  PythonModule->>Engine: Launch worker/frontend with specified engine
  User->>PythonModule: Send request (e.g., curl)
  PythonModule->>Engine: Forward request
  Engine-->>PythonModule: Return response
  PythonModule-->>User: Stream/return response
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~15–20 minutes

Possibly related PRs

Poem

🐇
A README reborn, instructions anew,
Engines and clusters, now clearer for you.
Old guides retired, new pathways revealed,
With Python and uv, the setup is healed.
From worker to frontend, the docs now align—
Hop along, dear coder, your journey’s divine!


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: 2

🧹 Nitpick comments (5)
docs/architecture/kv_cache_routing.md (2)

9-13: Missing fenced-code language spec (MD040)

-```
+```bash
python -m dynamo.frontend --router-mode kv

Adding bash (or sh) silences markdown-lint and enables syntax highlighting.


14-15: Minor grammar – stray ‘run’

“The Dynamo router run finds …”

Remove “run” for clarity.

-The Dynamo router run finds
+The Dynamo router finds
README.md (1)

65-69: Code block lacks language + wording typo

  1. Add a language identifier to satisfy MD040.
  2. “although anyway works” → “although any manager will work”.
-The Dynamo team recommend the `uv` Python package manager, although anyway works. Install uv:
-```
+The Dynamo team recommend the `uv` Python package manager, although any manager will work. Install uv:
+```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
docs/guides/backend.md (2)

18-57: Add language identifier to main code sample

-```
+```python
from dynamo.llm import ModelType, register_llm
...
asyncio.run(worker())

This fixes MD040 and provides syntax highlighting.


96-100: Typo in example component definition

generatgenerate.

-Node 2: namespace: llama3-1-8b, component: backend, endpoint: generat, model: /data/Llama-3.1-8B-Instruct/
+Node 2: namespace: llama3-1-8b, component: backend, endpoint: generate, model: /data/Llama-3.1-8B-Instruct/
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between c6f12f6 and 1e14242.

📒 Files selected for processing (18)
  • README.md (2 hunks)
  • components/metrics/README.md (1 hunks)
  • docs/API/python_bindings.md (0 hunks)
  • docs/API/sdk.md (0 hunks)
  • docs/architecture/disagg_serving.md (0 hunks)
  • docs/architecture/kv_cache_routing.md (1 hunks)
  • docs/examples/README.md (0 hunks)
  • docs/examples/disagg_skeleton.md (0 hunks)
  • docs/examples/llm_deployment.md (0 hunks)
  • docs/examples/multinode.md (0 hunks)
  • docs/examples/trtllm.md (0 hunks)
  • docs/get_started.md (0 hunks)
  • docs/guides/backend.md (1 hunks)
  • docs/guides/dynamo_deploy/dynamo_operator.md (0 hunks)
  • docs/guides/planner_benchmark/README.md (2 hunks)
  • docs/index.rst (0 hunks)
  • docs/support_matrix.md (0 hunks)
  • lib/llm/src/discovery/watcher.rs (0 hunks)
💤 Files with no reviewable changes (13)
  • docs/index.rst
  • docs/guides/dynamo_deploy/dynamo_operator.md
  • docs/architecture/disagg_serving.md
  • docs/support_matrix.md
  • docs/examples/README.md
  • docs/API/python_bindings.md
  • lib/llm/src/discovery/watcher.rs
  • docs/get_started.md
  • docs/examples/trtllm.md
  • docs/examples/disagg_skeleton.md
  • docs/examples/multinode.md
  • docs/API/sdk.md
  • docs/examples/llm_deployment.md
🧰 Additional context used
🧠 Learnings (5)
docs/guides/planner_benchmark/README.md (3)

Learnt from: PeaBrane
PR: #1409
File: examples/router_standalone/worker.py:171-186
Timestamp: 2025-06-08T08:30:45.126Z
Learning: Example code in the examples/ directory may intentionally use hard-coded values or simplified implementations that wouldn't be appropriate for production code, but are acceptable for demonstration and testing purposes.

Learnt from: fsaady
PR: #1730
File: examples/sglang/slurm_jobs/scripts/worker_setup.py:230-244
Timestamp: 2025-07-03T10:14:30.570Z
Learning: In examples/sglang/slurm_jobs/scripts/worker_setup.py, background processes (like nats-server, etcd) are intentionally left running even if later processes fail. This design choice allows users to manually connect to nodes and debug issues without having to restart the entire SLURM job from scratch, providing operational flexibility for troubleshooting in cluster environments.

Learnt from: GuanLuo
PR: #1371
File: examples/llm/benchmarks/vllm_multinode_setup.sh:18-25
Timestamp: 2025-06-05T01:46:15.509Z
Learning: In multi-node setups with head/worker architecture, the head node typically doesn't need environment variables pointing to its own services (like NATS_SERVER, ETCD_ENDPOINTS) because local processes can access them via localhost. Only worker nodes need these environment variables to connect to the head node's external IP address.

components/metrics/README.md (2)

Learnt from: PeaBrane
PR: #1392
File: launch/dynamo-run/src/subprocess/vllm_v1_inc.py:71-71
Timestamp: 2025-06-05T01:04:24.775Z
Learning: The create_endpoint method in WorkerMetricsPublisher has backward compatibility maintained through pyo3 signature annotation #[pyo3(signature = (component, dp_rank = None))], making the dp_rank parameter optional with a default value of None.

Learnt from: biswapanda
PR: #1890
File: examples/vllm/deploy/agg.yaml:63-70
Timestamp: 2025-07-14T23:01:16.218Z
Learning: In vLLM worker deployments, grep-based log checks for "VllmWorker.*has been initialized" are appropriate for readiness probes to verify worker startup, but should not be used for liveness probes which need to detect ongoing worker health.

docs/architecture/kv_cache_routing.md (1)

Learnt from: PeaBrane
PR: #1285
File: lib/llm/src/kv_router/scheduler.rs:260-266
Timestamp: 2025-05-30T06:34:12.785Z
Learning: In the KV router scheduler code, PeaBrane prefers fail-fast behavior over silent failure handling. When accessing worker metrics data that could be out-of-bounds (like dp_rank indexing), explicit panics are preferred over graceful degradation with continue statements to ensure data integrity issues are caught early.

README.md (3)

Learnt from: biswapanda
PR: #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: ptarasiewiczNV
PR: #2027
File: container/deps/vllm/install_vllm.sh:0-0
Timestamp: 2025-07-22T10:22:28.972Z
Learning: The --torch-backend=auto flag works with vLLM installations via uv pip install, even though it's not a standard pip option. This flag is processed by vLLM's build system during installation to automatically match PyTorch distribution with container CUDA versions.

Learnt from: fsaady
PR: #1730
File: examples/sglang/slurm_jobs/scripts/worker_setup.py:230-244
Timestamp: 2025-07-03T10:14:30.570Z
Learning: In examples/sglang/slurm_jobs/scripts/worker_setup.py, background processes (like nats-server, etcd) are intentionally left running even if later processes fail. This design choice allows users to manually connect to nodes and debug issues without having to restart the entire SLURM job from scratch, providing operational flexibility for troubleshooting in cluster environments.

docs/guides/backend.md (5)

Learnt from: nnshah1
PR: #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.

Learnt from: PeaBrane
PR: #1392
File: launch/dynamo-run/src/subprocess/vllm_v1_inc.py:71-71
Timestamp: 2025-06-05T01:04:24.775Z
Learning: The create_endpoint method in WorkerMetricsPublisher has backward compatibility maintained through pyo3 signature annotation #[pyo3(signature = (component, dp_rank = None))], making the dp_rank parameter optional with a default value of None.

Learnt from: biswapanda
PR: #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: GuanLuo
PR: #1371
File: examples/llm/benchmarks/vllm_multinode_setup.sh:18-25
Timestamp: 2025-06-05T01:46:15.509Z
Learning: In multi-node setups with head/worker architecture, the head node typically doesn't need environment variables pointing to its own services (like NATS_SERVER, ETCD_ENDPOINTS) because local processes can access them via localhost. Only worker nodes need these environment variables to connect to the head node's external IP address.

Learnt from: fsaady
PR: #1730
File: examples/sglang/slurm_jobs/scripts/worker_setup.py:230-244
Timestamp: 2025-07-03T10:14:30.570Z
Learning: In examples/sglang/slurm_jobs/scripts/worker_setup.py, background processes (like nats-server, etcd) are intentionally left running even if later processes fail. This design choice allows users to manually connect to nodes and debug issues without having to restart the entire SLURM job from scratch, providing operational flexibility for troubleshooting in cluster environments.

🪛 markdownlint-cli2 (0.17.2)
docs/architecture/kv_cache_routing.md

10-10: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

README.md

66-66: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


74-74: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


91-91: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


96-96: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


105-105: Multiple headings with the same content

(MD024, no-duplicate-heading)


113-113: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


148-148: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


153-153: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


163-163: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


168-168: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


172-172: Bare URL used

(MD034, no-bare-urls)


181-181: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


186-186: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


193-193: Bare URL used

(MD034, no-bare-urls)


196-196: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


202-202: Heading levels should only increment by one level at a time
Expected: h2; Actual: h3

(MD001, heading-increment)


207-207: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


213-213: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


219-219: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


230-230: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


237-237: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


244-244: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


252-252: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


259-259: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🪛 LanguageTool
README.md

[grammar] ~65-~65: Ensure spelling is correct
Context: ...e uv Python package manager, although anyway works. Install uv: ``` curl -LsSf https...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Build and Test - vllm
  • GitHub Check: pre-merge-rust (.)
🔇 Additional comments (1)
components/metrics/README.md (1)

78-85: Code sample drops required env-vars / component name may be wrong

  1. A local deployment still needs ETCD_ENDPOINTS and NATS_SERVER exported, otherwise python -m dynamo.frontend will fail to start.
  2. The metrics command now hard-codes --component backend; this only works if the worker registered under that exact component name. Please call this out explicitly or use an example that matches the preceding worker command (VllmWorkerbackend).

Copy link
Contributor

@biswapanda biswapanda left a comment

Choose a reason for hiding this comment

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

Lgtm.
rust 1 line change looks fine and docs lgtm at high level

@grahamking grahamking merged commit 3c500ae into main Jul 23, 2025
13 of 14 checks passed
@grahamking grahamking deleted the gk-uxv2-docs branch July 23, 2025 22:36
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