You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _sources/get_started/Installation.md.txt
+89-9Lines changed: 89 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -68,15 +68,95 @@ If you want to install **tile-lang** in development mode, you can run the follow
68
68
pip install -e .
69
69
```
70
70
71
-
We currently provide three methods to install **tile-lang**:
71
+
We currently provide four methods to install **tile-lang**:
72
72
73
-
1. [Install from Source (using your own TVM installation)](#install-method-1)
74
-
2. [Install from Source (using the bundled TVM submodule)](#install-method-2)
75
-
3. [Install Using the Provided Script](#install-method-3)
73
+
1. [Install Using Docker](#install-method-1) (Recommended)
74
+
2. [Install from Source (using your own TVM installation)](#install-method-2)
75
+
3. [Install from Source (using the bundled TVM submodule)](#install-method-3)
76
+
4. [Install Using the Provided Script](#install-method-4)
76
77
77
78
(install-method-1)=
78
79
79
-
### Method 1: Install from Source (Using Your Own TVM Installation)
80
+
### Method 1: Install Using Docker (Recommended)
81
+
82
+
For users who prefer a containerized environment with all dependencies pre-configured, **tile-lang** provides Docker images for different CUDA versions. This method is particularly useful for ensuring consistent environments across different systems and is the **recommended approach** for most users.
83
+
84
+
**Prerequisites:**
85
+
- Docker installed on your system
86
+
- NVIDIA Docker runtime (nvidia-docker2) for GPU support
You can now run TileLang examples and develop your applications within the containerized environment. The Docker image comes with all necessary dependencies pre-installed, including CUDA toolkit, TVM, and TileLang itself.
145
+
146
+
**Example Usage:**
147
+
148
+
After accessing the container, you can run TileLang examples:
149
+
150
+
```bash
151
+
cd /home/tilelang/examples
152
+
python elementwise/test_example_elementwise.py
153
+
```
154
+
155
+
This Docker-based installation method provides a complete, isolated environment that works seamlessly on systems with compatible NVIDIA GPUs like the B200, ensuring optimal performance for TileLang applications.
156
+
157
+
(install-method-2)=
158
+
159
+
### Method 2: Install from Source (Using Your Own TVM Installation)
80
160
81
161
If you already have a compatible TVM installation, follow these steps:
<spanid="install-method-1"></span><h3>Method 1: Install from Source (Using Your Own TVM Installation)<aclass="headerlink" href="#method-1-install-from-source-using-your-own-tvm-installation" title="Link to this heading">¶</a></h3>
<spanid="install-method-1"></span><h3>Method 1: Install Using Docker (Recommended)<aclass="headerlink" href="#method-1-install-using-docker-recommended" title="Link to this heading">¶</a></h3>
541
+
<p>For users who prefer a containerized environment with all dependencies pre-configured, <strong>tile-lang</strong> provides Docker images for different CUDA versions. This method is particularly useful for ensuring consistent environments across different systems and is the <strong>recommended approach</strong> for most users.</p>
542
+
<p><strong>Prerequisites:</strong></p>
543
+
<ulclass="simple">
544
+
<li><p>Docker installed on your system</p></li>
545
+
<li><p>NVIDIA Docker runtime (nvidia-docker2) for GPU support</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">--shm-size</span><spanclass="pre">32g</span></code>: Increases shared memory size for better performance</p></li>
584
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">--gpus</span><spanclass="pre">all</span></code>: Enables access to all available GPUs</p></li>
585
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">-v</span><spanclass="pre">/home/tilelang:/home/tilelang</span></code>: Mounts host directory to container (adjust path as needed)</p></li>
586
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">--name</span><spanclass="pre">tilelang_b200</span></code>: Assigns a name to the container for easy management</p></li>
587
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">/bin/zsh</span></code>: Uses zsh as the default shell</p></li>
588
+
</ul>
589
+
<olclass="arabic simple" start="4">
590
+
<li><p><strong>Access the Container</strong>:</p></li>
<p>You can now run TileLang examples and develop your applications within the containerized environment. The Docker image comes with all necessary dependencies pre-installed, including CUDA toolkit, TVM, and TileLang itself.</p>
603
+
<p><strong>Example Usage:</strong></p>
604
+
<p>After accessing the container, you can run TileLang examples:</p>
<p>This Docker-based installation method provides a complete, isolated environment that works seamlessly on systems with compatible NVIDIA GPUs like the B200, ensuring optimal performance for TileLang applications.</p>
<spanid="install-method-2"></span><h3>Method 2: Install from Source (Using Your Own TVM Installation)<aclass="headerlink" href="#method-2-install-from-source-using-your-own-tvm-installation" title="Link to this heading">¶</a></h3>
540
613
<p>If you already have a compatible TVM installation, follow these steps:</p>
541
614
<olclass="arabic simple">
542
615
<li><p><strong>Clone the Repository</strong>:</p></li>
@@ -566,8 +639,8 @@ <h2>Building from Source<a class="headerlink" href="#building-from-source" title
<spanid="install-method-2"></span><h3>Method 2: Install from Source (Using the Bundled TVM Submodule)<aclass="headerlink" href="#method-2-install-from-source-using-the-bundled-tvm-submodule" title="Link to this heading">¶</a></h3>
<spanid="install-method-3"></span><h3>Method 3: Install from Source (Using the Bundled TVM Submodule)<aclass="headerlink" href="#method-3-install-from-source-using-the-bundled-tvm-submodule" title="Link to this heading">¶</a></h3>
571
644
<p>If you prefer to use the built-in TVM version, follow these instructions:</p>
572
645
<olclass="arabic simple">
573
646
<li><p><strong>Clone the Repository</strong>:</p></li>
@@ -600,8 +673,8 @@ <h2>Building from Source<a class="headerlink" href="#building-from-source" title
<spanid="install-method-3"></span><h3>Method 3: Install Using the Provided Script<aclass="headerlink" href="#method-3-install-using-the-provided-script" title="Link to this heading">¶</a></h3>
<spanid="install-method-4"></span><h3>Method 4: Install Using the Provided Script<aclass="headerlink" href="#method-4-install-using-the-provided-script" title="Link to this heading">¶</a></h3>
605
678
<p>For a simplified installation, use the provided script:</p>
606
679
<olclass="arabic simple">
607
680
<li><p><strong>Clone the Repository</strong>:</p></li>
@@ -690,9 +763,10 @@ <h2>Install with Nightly Version<a class="headerlink" href="#install-with-nightl
<li><aclass="reference internal" href="#installing-with-pip">Installing with pip</a></li>
692
765
<li><aclass="reference internal" href="#building-from-source">Building from Source</a><ul>
693
-
<li><aclass="reference internal" href="#method-1-install-from-source-using-your-own-tvm-installation">Method 1: Install from Source (Using Your Own TVM Installation)</a></li>
694
-
<li><aclass="reference internal" href="#method-2-install-from-source-using-the-bundled-tvm-submodule">Method 2: Install from Source (Using the Bundled TVM Submodule)</a></li>
695
-
<li><aclass="reference internal" href="#method-3-install-using-the-provided-script">Method 3: Install Using the Provided Script</a></li>
766
+
<li><aclass="reference internal" href="#method-1-install-using-docker-recommended">Method 1: Install Using Docker (Recommended)</a></li>
767
+
<li><aclass="reference internal" href="#method-2-install-from-source-using-your-own-tvm-installation">Method 2: Install from Source (Using Your Own TVM Installation)</a></li>
768
+
<li><aclass="reference internal" href="#method-3-install-from-source-using-the-bundled-tvm-submodule">Method 3: Install from Source (Using the Bundled TVM Submodule)</a></li>
769
+
<li><aclass="reference internal" href="#method-4-install-using-the-provided-script">Method 4: Install Using the Provided Script</a></li>
696
770
</ul>
697
771
</li>
698
772
<li><aclass="reference internal" href="#install-with-nightly-version">Install with Nightly Version</a></li>
0 commit comments