macOS

Ⅰ. Basic Requirements

1.CPU: Minimum 4 cores, recommended 8 cores

2.Memory: > 16GB

3.GPU(Single Card): Nvidia RTX 3060/Nvidia RTX 3080/Nvidia RTX 3090

4.Hard Drive >512GB

5.Internet: 5-10M

6.Public Address: Mandatory

Ⅱ. Install Docker

1.Visit the Docker Desktop for Mac and download the Docker Desktop installer.

2.Open the downloaded .dmg file and drag the Docker icon into the Applications folder.

3.Open the Docker application and follow the prompts to complete the installation. Ensure Docker is running correctly.

Ⅲ. Install Docker Compose

Docker Compose is included in the Docker Desktop installation package and does not need to be installed separately.

Ⅳ. Install Git

1.Open the terminal and run the following command to install Git:

Copy code
brew install git

2.After installation, run the following command to verify if the installation was successful:

Copy code
git --version

Ⅴ. Deploy the HyperAGI Inference System

Step 1: Clone the Code Repository

1.Open the terminal or command prompt, and clone the hyperAGI-setup-script GitHub repository:

Copy code
git clone https://github.com/xfangs/hyperAGI-setup-script.git

2.Navigate to the cloned code repository directory:

Copy code
cd hyperAGI-setup-script

Step 2: Configure Environment Variables

1.Within the cloned code repository, there is a .env file where you can configure environment variables. Open the .env file using a text editor:

Copy code
nano .env

2.Configure the variables PUBLIC_IP and WALLET_ADDRESS

PUBLIC_IP: This is the public IP address of your server. You can find it by running the following command in the terminal:

Copy code
curl ifconfig.me

Copy and paste the outputted IP address into the PUBLIC_IP variable in the .env file.

WALLET_ADDRESS: This is your wallet address used for receiving and managing funds related to AI inference. Ensure you use a valid Ethereum wallet address and paste it into the WALLET_ADDRESS variable in the .env file.

Modify environment variables as necessary.

3.After making modifications, perform the following actions:

Ctrl + O (to write changes).

Ctrl + Enter (to save).

Ctrl + X (to exit).

Step 3: Pull Docker Images

Ensure you have the latest Docker images by running the following command:

Copy code
docker-compose pull

Step 4: Start the Service

Run the following command to start the Docker Compose service:

Copy code
docker-compose up -d

The -d flag indicates that the service will run in the background.

Step 5: Verify Deployment

You can verify if the service is running correctly by checking the status of the containers:

Copy code
docker-compose ps

You should see a list of running containers. Ensure that the status of all services is 'running.

Access to ports 5200 TCP and 5000 TCP needs to be enabled.

Additional Notes

For further troubleshooting, check the logs for additional information if encountering any issues:

Copy code
docker-compose logs

For more advanced configurations, please refer to the docker-compose.yml file in the code repository.

Conclusion

By following these steps, you should be able to deploy and run the complete HyperAGI inference system using Docker Compose. If you encounter any issues or need further assistance, please refer to the documentation or seek support from the community.

Last updated