2023-08-14 07:26:27 +00:00
:warning: **This content may be outdated since the major update of Colossal Chat. We will update this content soon.**
2023-04-13 10:18:36 +00:00
# ColossalAI on Ray
2023-08-14 07:26:27 +00:00
2023-04-13 10:18:36 +00:00
## Abstract
2023-08-14 07:26:27 +00:00
2023-04-13 10:18:36 +00:00
This is an experimental effort to run ColossalAI Chat training on Ray
2023-08-14 07:26:27 +00:00
2023-04-13 10:18:36 +00:00
## How to use?
2023-08-14 07:26:27 +00:00
2023-04-13 10:18:36 +00:00
### 1. Setup Ray clusters
2023-08-14 07:26:27 +00:00
2023-04-13 10:18:36 +00:00
Please follow the official [Ray cluster setup instructions ](https://docs.ray.io/en/latest/cluster/getting-started.html ) to setup an cluster with GPU support. Record the cluster's api server endpoint, it should be something similar to http://your.head.node.addrees:8265
2023-08-14 07:26:27 +00:00
2023-04-13 10:18:36 +00:00
### 2. Clone repo
2023-08-14 07:26:27 +00:00
2023-04-13 10:18:36 +00:00
Clone this project:
2023-08-14 07:26:27 +00:00
2023-04-13 10:18:36 +00:00
```shell
git clone https://github.com/hpcaitech/ColossalAI.git
```
2023-08-14 07:26:27 +00:00
2023-04-13 10:18:36 +00:00
### 3. Submit the ray job
2023-08-14 07:26:27 +00:00
2023-04-13 10:18:36 +00:00
```shell
python applications/Chat/examples/community/ray/ray_job_script.py http://your.head.node.addrees:8265
```
2023-08-14 07:26:27 +00:00
2023-04-13 10:18:36 +00:00
### 4. View your job on the Ray Dashboard
2023-08-14 07:26:27 +00:00
2023-04-13 10:18:36 +00:00
Open your ray cluster dashboard http://your.head.node.addrees:8265 to view your submitted training job.