Deployment Guide
I. Basic Requirements
CPU: Minimum 4 cores, recommended 8 cores
Memory: > 16GB
GPU (Single Card): Nvidia RTX 3090 or higher (minimum 32GB VRAM required)
Hard Drive: > 512GB
Internet: 5-10M
Network: Fixed public IP (recommended) or dynamic IP with frpc tunnel
The public IP should be directly bound to the network interface of the inference node so that external networks can directly access the inference node via this IP. If there are routers or other networking devices in the network, you must have the capability to configure these devices. Port forwarding should be set up to accurately forward external access requests to the corresponding port of the inference node, ensuring that the inference interface can provide normal services externally.
System: Supports Windows and Linux
II. Install Docker
Prerequisites
Ensure your system supports Docker and has the NVIDIA driver installed to support GPU.
Installation Steps:
Update package index:
sudo apt-get update
Install required packages:
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
Add Docker's official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Set up Docker stable repository:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
Update package index again:
sudo apt-get update
Install Docker CE:
sudo apt-get install docker-ce
Install NVIDIA Container Toolkit:
sudo curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
sudo curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update
sudo apt-get install -y nvidia-docker2
sudo systemctl restart docker
Start and enable Docker service:
sudo systemctl start docker
sudo systemctl enable docker
Verify installation:
docker --version
III. Install Docker Compose
Download the latest version:
sudo curl -L "https://github.com/docker/compose/releases/download/v2.5.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Add executable permissions:
sudo chmod +x /usr/local/bin/docker-compose
Verify installation:
docker-compose --version
IV. Install Git
Update package lists:
sudo apt-get update
Install Git:
sudo apt-get install git
Verify installation:
git --version
V. Deploy the HyperAGI Inference System
Step 1: Clone the Repository
git clone https://github.com/HyperdustLab/moss-inference-engine
cd moss-inference-engine
Step 2: Configure Environment Variables
Open the
docker-compose.yaml
file:
nano docker-compose.yaml
Configure the following variables in the
nacos
service:
Required Configuration:
WALLET_ADDRESS: Enter your own Ethereum wallet address for receiving earnings
- WALLET_ADDRESS=0xYourEthereumWalletAddress
Network Configuration (Choose one option):
Option A: Nodes with fixed public IP
PUBLIC_IP: Enter your node's fixed public IP address
NODE: Format as
your_public_ip:port
, e.g.,203.0.113.1:1082
PORT: Use your specified port number, e.g.,
1082
- PUBLIC_IP=203.0.113.1
- NODE=203.0.113.1:1082
- PORT=1082
Option B: Nodes without fixed public IP
PUBLIC_IP: Enter fixed value
43.159.42.232
NODE: Node identifier assigned by MossAI platform
PORT: Port number assigned by MossAI platform
- PUBLIC_IP=43.159.42.232
- NODE=43.159.42.232:2 # Assigned by MossAI platform
- PORT=1082 # Assigned by MossAI platform
Step 3: Configure frpc (Only for nodes without fixed public IP)
If you don't have a fixed public IP, you need to configure the frpc service for intranet penetration:
Edit the
frpc/frpc.toml
configuration file:
nano frpc/frpc.toml
Update configuration parameters:
[common]
server_addr = 43.159.42.232
server_port = 7000
[MOSSAI3000]
type = tcp
local_ip = 192.168.1.12 # Modify to your local intranet IP address
local_port = 8881 # Local port, no adjustment needed
remote_port = 1082 # Remote port, assigned by MossAI platform
Configuration Notes:
local_ip
: Modify to your local intranet IP address (check withip addr show
orifconfig
)local_port
: Local port, keep as8881
remote_port
: Remote port, needs to be assigned by MossAI platform
Ensure frpc service is enabled in docker-compose.yaml (enabled by default)
Step 4: Start Services
Nodes with fixed public IP:
# Disable frpc service (comment out or delete frpc service configuration)
docker-compose up -d nacos ollama poop-mcp-client
Nodes without fixed public IP:
# Start all services including frpc
docker-compose up -d
Step 5: Verify Deployment
docker-compose ps
Check service status:
docker-compose logs nacos
docker-compose logs ollama
docker-compose logs poop-mcp-client
# If you don't have a fixed public IP, also check frpc logs
docker-compose logs frpc
VI. Configuration Summary
PUBLIC_IP
Your public IP
43.159.42.232
NODE
Your public IP:port
Assigned by MossAI
PORT
Your specified port
Assigned by MossAI
WALLET_ADDRESS
Your Ethereum wallet
Your Ethereum wallet
frpc service
Not needed
Need to start and config
Important Notes
Ensure relevant ports ( 8881, etc.) are open in firewall
If using frpc, ensure local intranet IP is configured correctly
All port assignments and node identifiers should be obtained from MossAI platform
Wallet address must be in valid Ethereum address format
Troubleshooting
View service logs:
docker-compose logs [service-name]
Check network connectivity:
curl ifconfig.me # Check public IP
ip addr show # Check internal IP
Restart service:
docker-compose restart [service-name]
Support
For additional assistance, please refer to the documentation or seek support from the community.
Discord Community:https://discord.gg/8Ts8YT7WTj
Telegram Group:https://t.me/realMOSSCoin
Last updated