Code Monkey home page Code Monkey logo

distriai-node's Introduction

DistriAI-Node

Share your unused computing capacity to provide support for more AI creators in need and earn profits at the same time.

Recommended configuration

Software

  • Operating System: Ubuntu 22.04
  • Go: 1.21.0

Hardware

  • CPU: 4 cores
  • Memory: 8GB
  • Disk: 100GB
  • GPU: Nvidia RTX 3090
  • Network: 1Gbps

Necessary software packages

Please ensure that the following software packages are installed before use.

  • curl
  • speedtest-cli
  • docker
  • nginx

During the DistriAI-node program execution, all Docker containers will be stopped and the nginx configuration file will be reset. If necessary, please make a backup in advance.

Additional software packages required for GPU devices.

  • nvidia-docker2

Instructions for use

Please make sure to switch to the root account before starting.

  1. Compile binary executable file.
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/DistriAI main.go
  1. Write configuration file.

Create config.yml file in the same directory as the executable file.

cd bin
cat << EOF > config.yml
base:
  # Mnemonics used to complete transactions
  privateKey: <your_private_key>
  # The level of privacy protection provided
  securityLevel: 0
console:
  # Directory provided for training models. default: /data/distri
  workDirectory:
  # If using a proxy, please specify the public IP address. If not using a proxy, you can ignore this.
  outerNetIP:
  # If not filled, the value of the 'nginxPort' field will be used to fill this.
  outerNetPort:
  # The port on which the nginx listens. default: 80
  nginxPort:
  # The port on which the console listens. default: 8080
  workPort:
  # The port on which the Local server listens. default: 8088
  serverPort:
EOF
  1. Run executable file.
./DistriAI node start

distriai-node's People

Contributors

thirteenggh avatar linyimin0013 avatar zhangyhsir avatar sunlit1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.