Skip to content

Commit ab6833a

Browse files
update README for Ubuntu dist. installation (#914)
Summary: This PR addresses this issue ([682](#682)). The lightning studio runs on Ubuntu distribution. So I tried the setup that works on multi node training for Lightning (MMT). It seems working fine and stable. The main differences between Fedora and Ubuntu installation is the `ninja-build` and `clang` as the C/C++ compiler. This PR is tested w/o tensor engine support for now. Pull Request resolved: #914 Reviewed By: mariusae Differential Revision: D80547709 Pulled By: AlirezaShamsoshoara fbshipit-source-id: 7b991be1f46af0da6c0d990a36e73b3d11ef342b
1 parent 2c12874 commit ab6833a

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,47 @@ pip install --no-build-isolation -e .
6161
pytest python/tests/ -v -m "not oss_skip"
6262
```
6363

64+
### On Ubuntu distributions
65+
66+
```sh
67+
# Clone the repository and navigate to it
68+
git clone https://github.com/pytorch-labs/monarch.git
69+
cd monarch
70+
71+
# Install nightly rust toolchain
72+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
73+
source $HOME/.cargo/env
74+
rustup toolchain install nightly
75+
rustup default nightly
76+
77+
# Install Ubuntu-specific system dependencies
78+
sudo apt install -y ninja-build
79+
sudo apt install -y libunwind-dev
80+
sudo apt install -y clang
81+
82+
# Set clang as the default C/C++ compiler
83+
export CC=clang
84+
export CXX=clang++
85+
86+
# Install build dependencies
87+
pip install -r build-requirements.txt
88+
# Install test dependencies
89+
pip install -r python/tests/requirements.txt
90+
91+
# Build and install Monarch (with tensor engine support)
92+
pip install --no-build-isolation .
93+
94+
# or
95+
# Build and install Monarch (without tensor engine support)
96+
USE_TENSOR_ENGINE=0 pip install --no-build-isolation .
97+
98+
# or setup for development
99+
pip install --no-build-isolation -e .
100+
101+
# Verify installation
102+
pip list | grep monarch
103+
```
104+
64105
### On MacOS
65106

66107
You can also build Monarch to run locally on a MacOS system.

0 commit comments

Comments
 (0)