Skip to content

[Feat]support container install docs#38

Merged
chengyupku merged 1 commit into
tile-ai:mainfrom
JiaqingFu:main
Nov 7, 2025
Merged

[Feat]support container install docs#38
chengyupku merged 1 commit into
tile-ai:mainfrom
JiaqingFu:main

Conversation

@JiaqingFu

@JiaqingFu JiaqingFu commented Nov 7, 2025

Copy link
Copy Markdown

Summary by CodeRabbit

  • Documentation
    • Added an optional container preparation section to the installation guide, including setup instructions for Docker and conda environments, pip configuration, Miniconda installation, and dependency management steps.

Copilot AI review requested due to automatic review settings November 7, 2025 08:05
@github-actions

github-actions Bot commented Nov 7, 2025

Copy link
Copy Markdown

👋 Hi! Thank you for contributing to the TileLang project.

Please remember to run pre-commit run --all-files in the root directory of the project to ensure your changes are properly linted and formatted. This will help ensure your contribution passes the format check.

We appreciate you taking this step! Our team will review your contribution, and we look forward to your awesome work! 🚀

@coderabbitai

coderabbitai Bot commented Nov 7, 2025

Copy link
Copy Markdown

Walkthrough

Documentation update adding an optional container preparation section to the Installation guide, introducing Docker and conda setup commands as a pre-step before the existing "Clone the Repository" installation step.

Changes

Cohort / File(s) Summary
Installation documentation
docs/get_started/Installation.md
Adds optional container preparation section with Docker pull/run commands, pip constraint configuration, Miniconda installation, and libstdcxx-ng conda dependency as a pre-step before the main installation steps.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • The change consists of documentation additions without modifying existing content
  • Review focuses on accuracy of setup commands and clarity of instructions

Poem

🐰 A rabbit hops through Docker's door,
With conda paths and prep galore,
Before the cloning, scripts align,
Each step now perfectly designed! 🎉

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title '[Feat]support container install docs' clearly and concisely describes the main change: adding documentation for container-based installation. It is fully related to the changeset which adds a container preparation section to the installation guide.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds optional Docker container preparation steps to the TileScale installation guide. The change provides users with instructions for setting up a containerized environment using NVIDIA PyTorch before proceeding with the main installation steps.

  • Adds a new optional section for Docker container setup
  • Includes commands for pulling an NVIDIA PyTorch container, running it with necessary configurations, and preparing the environment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


We currently provide three methods to install **TileScale**:

**(optional)Prepare the container**:

Copilot AI Nov 7, 2025

Copy link

Choose a reason for hiding this comment

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

Add a space after '(optional)' for proper formatting. Should be '(optional) Prepare'.

Suggested change
**(optional)Prepare the container**:
**(optional) Prepare the container**:

Copilot uses AI. Check for mistakes.

```bash
docker pull nvcr.io/nvidia/pytorch:25.03-py3
docker run --name tilescale --ipc=host --network=host --privileged --cap-add=SYS_ADMIN --shm-size=10g --gpus=all -it nvcr.io/nvidia/pytorch:25.03-py3 /bin/bash

Copilot AI Nov 7, 2025

Copy link

Choose a reason for hiding this comment

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

Running the container with --privileged and --cap-add=SYS_ADMIN grants excessive permissions that could pose security risks. Consider whether these elevated privileges are truly necessary for TileScale installation. If only GPU access is required, the --gpus=all flag should suffice without privileged mode.

Suggested change
docker run --name tilescale --ipc=host --network=host --privileged --cap-add=SYS_ADMIN --shm-size=10g --gpus=all -it nvcr.io/nvidia/pytorch:25.03-py3 /bin/bash
docker run --name tilescale --ipc=host --network=host --shm-size=10g --gpus=all -it nvcr.io/nvidia/pytorch:25.03-py3 /bin/bash

Copilot uses AI. Check for mistakes.
```bash
docker pull nvcr.io/nvidia/pytorch:25.03-py3
docker run --name tilescale --ipc=host --network=host --privileged --cap-add=SYS_ADMIN --shm-size=10g --gpus=all -it nvcr.io/nvidia/pytorch:25.03-py3 /bin/bash
echo -n > /etc/pip/constraint.txt

Copilot AI Nov 7, 2025

Copy link

Choose a reason for hiding this comment

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

The Miniconda installer script is referenced without showing how to obtain it. Add a preceding step to download the installer, such as wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh or document that this assumes the installer is already present.

Suggested change
echo -n > /etc/pip/constraint.txt
echo -n > /etc/pip/constraint.txt
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh # download Miniconda installer

Copilot uses AI. Check for mistakes.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

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

14-14: Fix heading capitalization and spacing.

The heading should follow consistent capitalization conventions and include proper spacing. Change "(optional)Prepare" to "(Optional) Prepare".

-**(optional)Prepare the container**:
+**(Optional) Prepare the container**:

18-18: Break the long docker run command for readability.

The docker run command is very long and difficult to read on a single line. Consider splitting it across multiple lines for better documentation clarity.

 docker pull nvcr.io/nvidia/pytorch:25.03-py3
-docker run --name tilescale --ipc=host --network=host --privileged --cap-add=SYS_ADMIN --shm-size=10g --gpus=all -it nvcr.io/nvidia/pytorch:25.03-py3 /bin/bash
+docker run \
+  --name tilescale \
+  --ipc=host \
+  --network=host \
+  --privileged \
+  --cap-add=SYS_ADMIN \
+  --shm-size=10g \
+  --gpus=all \
+  -it nvcr.io/nvidia/pytorch:25.03-py3 \
+  /bin/bash
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between dafaa6f and 1b554fa.

📒 Files selected for processing (1)
  • docs/get_started/Installation.md (1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.18.1)
docs/get_started/Installation.md

18-18: Hard tabs
Column: 160

(MD010, no-hard-tabs)

⏰ 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). (1)
  • GitHub Check: build-test-nvidia
🔇 Additional comments (1)
docs/get_started/Installation.md (1)

19-19: Clarify the purpose of clearing the pip constraint file.

The instruction to clear /etc/pip/constraint.txt with echo -n > /etc/pip/constraint.txt is unusual and lacks explanation. Please add a comment explaining why this step is necessary.

For example:

-echo -n > /etc/pip/constraint.txt
+echo -n > /etc/pip/constraint.txt  # Clear pip constraints to avoid version conflicts

Comment on lines +16 to +22
```bash
docker pull nvcr.io/nvidia/pytorch:25.03-py3
docker run --name tilescale --ipc=host --network=host --privileged --cap-add=SYS_ADMIN --shm-size=10g --gpus=all -it nvcr.io/nvidia/pytorch:25.03-py3 /bin/bash
echo -n > /etc/pip/constraint.txt
bash Miniconda3-latest-Linux-x86_64.sh # install conda
conda install -c conda-forge libstdcxx-ng
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

Fix hard tabs and incomplete setup instructions.

Two issues here:

  1. Line 18 contains hard tabs instead of spaces, which violates Markdown formatting standards (MD010).
  2. Line 20 references Miniconda3-latest-Linux-x86_64.sh without showing how to download or locate it, making the instructions incomplete.
 ```bash
 docker pull nvcr.io/nvidia/pytorch:25.03-py3
-docker run --name tilescale --ipc=host --network=host --privileged --cap-add=SYS_ADMIN --shm-size=10g --gpus=all -it nvcr.io/nvidia/pytorch:25.03-py3 /bin/bash	
+docker run --name tilescale --ipc=host --network=host --privileged --cap-add=SYS_ADMIN --shm-size=10g --gpus=all -it nvcr.io/nvidia/pytorch:25.03-py3 /bin/bash
 echo -n > /etc/pip/constraint.txt
-bash Miniconda3-latest-Linux-x86_64.sh # install conda
+wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
+bash Miniconda3-latest-Linux-x86_64.sh  # install conda
 conda install -c conda-forge libstdcxx-ng

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 markdownlint-cli2 (0.18.1)</summary>

18-18: Hard tabs
Column: 160

(MD010, no-hard-tabs)

</details>

</details>

<details>
<summary>🤖 Prompt for AI Agents</summary>

In docs/get_started/Installation.md around lines 16 to 22, fix the Markdown code
block by replacing hard tabs with spaces (remove the trailing hard tab on the
docker run line) and make the Miniconda install step complete by adding a
download command prior to running the installer (e.g., download
Miniconda3-latest-Linux-x86_64.sh from the official URL), then run the installer
as shown; ensure the code block uses spaces only and the sequence is: docker
pull, docker run (no trailing tab), echo to constraint.txt, wget the Miniconda
script, bash the installer, and then conda install libstdcxx-ng.


</details>

<!-- This is an auto-generated comment by CodeRabbit -->

@chengyupku chengyupku merged commit 3a66a72 into tile-ai:main Nov 7, 2025
9 of 10 checks passed
Rachmanino pushed a commit that referenced this pull request Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants