Skip to content

Conversation

@ishandhanani
Copy link
Contributor

@ishandhanani ishandhanani commented Aug 1, 2025

Summary by CodeRabbit

  • Documentation
    • Updated deployment documentation to include Kubernetes deployment instructions and examples.
    • Added a detailed guide for deploying SGLang inference graphs on Kubernetes, including deployment patterns, configuration options, prerequisites, and troubleshooting tips.
    • Updated links and references to point to the new Kubernetes deployment documentation.

@copy-pr-bot
Copy link

copy-pr-bot bot commented Aug 1, 2025

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.

@github-actions github-actions bot added the feat label Aug 1, 2025
@ishandhanani ishandhanani requested a review from athreesh August 1, 2025 00:28
@ishandhanani ishandhanani enabled auto-merge (squash) August 1, 2025 00:29
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 1, 2025

Walkthrough

The documentation for the SGLang backend was updated to indicate that Kubernetes deployment examples are now available. A new README was added under the deploy directory, providing comprehensive instructions and examples for deploying SGLang inference graphs on Kubernetes using the DynamoGraphDeployment custom resource.

Changes

Cohort / File(s) Change Summary
SGLang Backend Deployment Docs
components/backends/sglang/README.md
Updated the "Deployment" section to indicate Kubernetes deployment is available and linked to the new deploy README.
Kubernetes Deployment Guide
components/backends/sglang/deploy/README.md
Added a detailed README with instructions, examples, and explanations for deploying SGLang inference graphs on Kubernetes using custom resources.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Documentation
    participant Kubernetes Cluster

    User->>Documentation: Reads deployment instructions
    User->>Kubernetes Cluster: Applies YAML/CRD for SGLang deployment
    Kubernetes Cluster-->>User: Deploys SGLang inference graphs as per instructions
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~7 minutes

Possibly related PRs

Poem

In the warren, docs are bright,
Kubernetes hops into sight.
With YAMLs new and guides in tow,
SGLang’s graphs now swiftly grow.
Rabbits read, deploy, and cheer—
Cloudy clusters drawing near!
🐇✨

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


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 (1)
components/backends/sglang/deploy/README.md (1)

21-22: Remove the stray trailing asterisks in the heading

The extra ** breaks markdown rendering and anchor generation.

-### 3. **Disaggregated Deployment** (`disagg.yaml`)**
+### 3. **Disaggregated Deployment** (`disagg.yaml`)
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between dbd33df and c9e5c45.

📒 Files selected for processing (2)
  • components/backends/sglang/README.md (1 hunks)
  • components/backends/sglang/deploy/README.md (1 hunks)
🧰 Additional context used
🧠 Learnings (4)
📓 Common learnings
Learnt from: julienmancuso
PR: ai-dynamo/dynamo#2012
File: deploy/cloud/helm/crds/templates/nvidia.com_dynamographdeployments.yaml:1233-1235
Timestamp: 2025-07-18T16:04:47.465Z
Learning: The `stopSignal` field in Kubernetes CRDs like DynamoGraphDeployment and DynamoComponentDeployment is autogenerated by controller-gen when upgrading Kubernetes library versions, and represents expected upstream API changes rather than manual code that needs custom validation.
Learnt from: julienmancuso
PR: ai-dynamo/dynamo#2012
File: deploy/cloud/helm/crds/templates/nvidia.com_dynamocomponentdeployments.yaml:1178-1180
Timestamp: 2025-07-18T16:05:05.534Z
Learning: The stopSignal field under lifecycle in DynamoComponentDeployment CRDs is autogenerated due to Kubernetes library upgrades (k8s.io/api and k8s.io/apimachinery from v0.32.3 to v0.33.1), not a manual design decision by the user.
📚 Learning: crd schemas in files like deploy/cloud/helm/crds/templates/*.yaml are auto-generated from kubernetes...
Learnt from: julienmancuso
PR: ai-dynamo/dynamo#2012
File: deploy/cloud/helm/crds/templates/nvidia.com_dynamocomponentdeployments.yaml:92-98
Timestamp: 2025-07-18T16:04:31.771Z
Learning: CRD schemas in files like deploy/cloud/helm/crds/templates/*.yaml are auto-generated from Kubernetes library upgrades and should not be manually modified as changes would be overwritten during regeneration.

Applied to files:

  • components/backends/sglang/README.md
  • components/backends/sglang/deploy/README.md
📚 Learning: the stopsignal field under lifecycle in dynamocomponentdeployment crds is autogenerated due to kuber...
Learnt from: julienmancuso
PR: ai-dynamo/dynamo#2012
File: deploy/cloud/helm/crds/templates/nvidia.com_dynamocomponentdeployments.yaml:1178-1180
Timestamp: 2025-07-18T16:05:05.534Z
Learning: The stopSignal field under lifecycle in DynamoComponentDeployment CRDs is autogenerated due to Kubernetes library upgrades (k8s.io/api and k8s.io/apimachinery from v0.32.3 to v0.33.1), not a manual design decision by the user.

Applied to files:

  • components/backends/sglang/README.md
  • components/backends/sglang/deploy/README.md
📚 Learning: the `stopsignal` field in kubernetes crds like dynamographdeployment and dynamocomponentdeployment i...
Learnt from: julienmancuso
PR: ai-dynamo/dynamo#2012
File: deploy/cloud/helm/crds/templates/nvidia.com_dynamographdeployments.yaml:1233-1235
Timestamp: 2025-07-18T16:04:47.465Z
Learning: The `stopSignal` field in Kubernetes CRDs like DynamoGraphDeployment and DynamoComponentDeployment is autogenerated by controller-gen when upgrading Kubernetes library versions, and represents expected upstream API changes rather than manual code that needs custom validation.

Applied to files:

  • components/backends/sglang/deploy/README.md
⏰ 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). (4)
  • GitHub Check: Build and Test - vllm
  • GitHub Check: pre-merge-rust (lib/runtime/examples)
  • GitHub Check: pre-merge-rust (lib/bindings/python)
  • GitHub Check: pre-merge-rust (.)
🔇 Additional comments (2)
components/backends/sglang/README.md (1)

176-180: Deployment section update looks good

The placeholder has been replaced with a working link to the new Kubernetes guide and the wording now reflects both deployment targets.
No further action needed.

components/backends/sglang/deploy/README.md (1)

49-58: Use the canonical GPU resource key

Standard Kubernetes GPU scheduling relies on the extended resource key nvidia.com/gpu.
Using a bare gpu key will be ignored by the Kube-Scheduler unless your CRD/controller translates it.

-    gpu: "1"
+    nvidia.com/gpu: "1"
...
-    gpu: "1"
+    nvidia.com/gpu: "1"

If the DynamoGraphDeployment controller purposely aliases gpu, please add a short note clarifying that.

@athreesh
Copy link
Contributor

athreesh commented Aug 1, 2025

LGTM. @alec-flowers @tanmayv25 can we make smth like this for vLLM and TRT-LLM /deploy folders too?

Copy link
Contributor

@athreesh athreesh left a comment

Choose a reason for hiding this comment

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

LGTM

@ishandhanani ishandhanani merged commit 1ad6abe into main Aug 1, 2025
9 checks passed
@ishandhanani ishandhanani deleted the ishna/sgl-deploy-rm branch August 1, 2025 01:54
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.

3 participants