Distri.AI
English
English
  • ๐ŸชŸIntroduction
    • ๐ŸงฒWhat is Distri.AI
    • ๐Ÿ—ž๏ธWhitepaper
  • ๐Ÿ•น๏ธGetting Started
    • ๐Ÿ›’User
    • ๐Ÿ› ๏ธCompute Node
    • ๐ŸšฐFaucet
  • ๐Ÿ”ฑDistri.AI Aggregator
    • ๐Ÿ๏ธGPU Market
    • ๐Ÿ›ซModel Hub
    • ๐Ÿ“‘Dataset Repository
  • ๐Ÿ“ฆML Workspace
    • ๐ŸคนJupyter
    • ๐Ÿคนโ€โ™€๏ธDesktop GUI
    • ๐Ÿคนโ€โ™€๏ธVisual Studio Code
    • ๐Ÿคนโ€โ™‚๏ธJupyterLab
    • ๐ŸคนGit Integration
    • ๐Ÿคนโ€โ™€๏ธFile Sharing
    • ๐Ÿคนโ€โ™‚๏ธAccess Ports
    • ๐ŸคนTensorboard
    • ๐Ÿคนโ€โ™€๏ธExtensibility
    • ๐Ÿคนโ€โ™‚๏ธHardware Monitoring
    • ๐ŸคนSSH Access
    • ๐Ÿคนโ€โ™€๏ธRemote Development
    • ๐Ÿคนโ€โ™‚๏ธRun as a job
    • ๐Ÿ“ฌFAQ
  • ๐Ÿ“žContact & Social Media
Powered by GitBook
On this page
  • Recommended configuration
  • Run the client
  1. Getting Started

Compute Node

In this section, we will explain how to become a compute node in the Distri.AI.

PreviousUserNextFaucet

Last updated 11 months ago

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.

Recommended configuration

Software
Hardware

  • Operating System: Ubuntu 22.04

  • Go: 1.21.0

  • CPU: 4 cores

  • Memory: 8GB

  • Disk: 100GB

  • GPU: Nvidia RTX 3090

  • Network: 1Gbps

Run the client

Please follow the steps below to run the node.

1 Dependency installation

# Update package repositories
apt update

# Install curl using apt
apt install curl

# Verify correct installation
curl

# Download the setup script from Distri.AI
curl -L https://github.com/distri-group/DistriAI-Node/blob/dev/DistriAI-setup.sh -o DistriAI-setup.sh

2 Compile the program

# 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

Causing Docker bug - frequent restarts (docker daemon unable to start)

Tutorial after modification

# 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.

If you encounter any issues during usage, please.

๐Ÿ•น๏ธ
๐Ÿ› ๏ธ
created a Solana account
contact us