Distri.AI GPU computing network. By sharing your unused computing power, you can support more AI creators in need while earning profits. Generally, you should have already by now for easy use of the Distri.AI compute node client.
# Clone the DistriAI-Index repository from GitHub
git clone https://github.com/distri-group/DistriAI-Index.git
# Compile the main.go file to produce an executable binary named "DistriAI"
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/DistriAI main.go
3 Node configuration
Node runtime configuration
# Configuration file should be in the same directory as the executable file
# Create and open the config.yml file
cat << EOF > config.yml
# Configuration input
base:
rpc:
# Mnemonics used to complete transactions
โญ#privateKey:(Replace with your own Solana node private key, can be created through Phantom plugin)โญ
โญ#After creation, receive testnet Sol/Dist on the faucet on the Distri.AI websiteโญ
# The level of privacy protection provided
securityLevel: 0
console:
# Directory provided for training models. default: /data/distri
workDirectory:
โญ# Adaptively modify according to the size of the mounted disk. Image size is about 50GBโญ
# default: https://ipfs.distri.ai
ipfsNodeUrl:
# If using a proxy, please specify the public IP address. If not using a proxy, you can ignore this.
publicIP:
โญ# Change to a public port, optionally 80โญ
# The port on which the DistriAI listens. default: 13010
# Make sure the public network is accessible
distriPort:
# The port on which the workspace or deploy listens. default: 13011
workPort:
# The port on which the Local server listens. default: 13012
serverPort:
# Optional, ease of use for users to deploy tools such as visualization or data tracking.
# Make sure the public network is accessible
publicPortExpand1:
publicPortExpand2:
publicPortExpand3:
EOF
(Enter to exit)
```
Docker Configuration File
Considering that Docker images are typically downloaded to the /var/lib/docker directory, which may have insufficient storage space, it is necessary to modify Docker's default storage path.
# View current Docker configuration
docker info
# Stop Docker service
systemctl stop docker.service
# Modify configuration file
vim /etc/docker/daemon.json
# Add the following content to the configuration file
{
"data-root": "/mnt/docker"
}
# Edit the configuration file
vim /etc/systemd/system/multi-user.target.wants/docker.service
# Modify the following content in ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock:
ExecStart=/usr/bin/dockerd --graph=/mnt/docker --storage-driver=overlay
# Restart Docker
systemctl daemon-reload
systemctl restart docker
systemctl status docker
# Verify if the path has been modified
docker info
# Modify the configuration file
vim /etc/docker/daemon.json
# Restart Docker
systemctl restart docker
(Check if the configuration of the --graph command needs to be modified)
4 Enter the computing power market and connect your wallet
You can view the computing power devices under your account along with their respective parameters.
Warning! The linked wallet account should match the account for which you entered the private key when running the client program.
5 List the device on the computing power market
Set the device price and relevant restrictions, confirm the order, and sign. With this, you have completed listing the computing power device on the computing power market.
6 Take the device off the market
Confirm and complete the signature to finalize the device delisting.