Skip to content

Commit 2662894

Browse files
authored
Merge branch 'AI-Hypercomputer:main' into cond_shard
2 parents 4b0d867 + 95afb77 commit 2662894

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docs/getting_started/first_run.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cd maxdiffusion
2020

2121
1. Within the root directory of the MaxDiffusion `git` repo, install dependencies by running:
2222
```
23-
# If a Python 3.12+ virtual environment doesn't already exist, you'll need to run the install command twice.
23+
# If a Python 3.12+ virtual environment doesn't already exist, you'll need to run the install command three times.
2424
bash setup.sh MODE=stable DEVICE=tpu
2525
```
2626

setup.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@ if ! python3 -c 'import sys; assert sys.version_info >= (3, 12)' 2>/dev/null; th
3535
if [[ $REPLY =~ ^[Yy]$ ]]; then
3636
# Check if uv is installed first; if not, install uv
3737
if ! command -v uv &> /dev/null; then
38-
pip install uv
38+
echo -e "\n'uv' command not found. Installing it now via the official installer..."
39+
curl -LsSf https://astral.sh/uv/install.sh | sh
40+
41+
echo -e "\n\e[33m'uv' has been installed.\e[0m"
42+
echo "The installer likely printed instructions to update your shell's PATH."
43+
echo "Please open a NEW terminal session (or 'source ~/.bashrc') and re-run this script."
44+
exit 1
3945
fi
4046
maxdiffusion_dir=$(pwd)
4147
cd

0 commit comments

Comments
 (0)