Skip to content

Commit af89573

Browse files
author
Allen Wang
committed
update script and readme
1 parent b0f1aac commit af89573

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,16 @@ You can also find our notebook tutorials (coming soon)
3232

3333
### Basic
3434

35-
torchforge requires PyTorch 2.9.0 with [Monarch](https://github.com/meta-pytorch/monarch), [vLLM](https://github.com/vllm-project/vllm), and [torchtitan](https://github.com/pytorch/torchtitan). (Note that the basic install script
35+
torchforge requires PyTorch 2.9.0 with [Monarch](https://github.com/meta-pytorch/monarch), [vLLM](https://github.com/vllm-project/vllm), and [torchtitan](https://github.com/pytorch/torchtitan).
36+
37+
You can install Forge with uv:
38+
```
39+
$ uv pip install .
40+
```
41+
42+
For your reference, we also include a basic install script that installs other system dependencies
43+
along with torchforge:
44+
(note that this basic install script
3645
uses [DNF](https://docs.fedoraproject.org/en-US/quick-docs/dnf/), but could be easily extended to other Linux OS.)
3746

3847
```bash

scripts/install.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -190,23 +190,23 @@ main() {
190190
install_system_packages "$USE_SUDO"
191191

192192
log_info "Installing PyTorch ..."
193-
pip install torch==$PYTORCH_VERSION --index-url https://download.pytorch.org/whl/cu128
193+
uv pip install torch==$PYTORCH_VERSION --index-url https://download.pytorch.org/whl/cu128
194194

195195
# Install vLLM and its requirements
196-
pip install -r .github/packaging/vllm_reqs_12_8.txt
197-
pip install six
198-
pip install "setuptools<80"
199-
python -m pip install vllm --no-cache-dir --index-url https://download.pytorch.org/whl/preview/forge
196+
uv pip install -r .github/packaging/vllm_reqs_12_8.txt
197+
uv pip install six
198+
uv pip install "setuptools<80"
199+
uv python -m pip install vllm --no-cache-dir --index-url https://download.pytorch.org/whl/preview/forge
200200

201201
# Install monarch
202-
pip install torchmonarch==$MONARCH_VERSION
202+
uv pip install torchmonarch==$MONARCH_VERSION
203203

204204
# Install torchtitan and torchstore
205-
pip install torchtitan==$TORCHTITAN_VERSION
206-
pip install torchstore==$TORCHSTORE_VERSION
205+
uv pip install torchtitan==$TORCHTITAN_VERSION
206+
uv pip install torchstore==$TORCHSTORE_VERSION
207207

208208
log_info "Installing Forge from source..."
209-
pip install -e ".[dev]"
209+
uv pip install -e ".[dev]"
210210

211211
# Set up environment
212212
log_info "Setting up environment..."

0 commit comments

Comments
 (0)