sudo apt-get update
sudo apt-get upgrade -y
sudo apt install screen curl iptables build-essential git wget lz4 jq make gcc nano automake autoconf tmux htop nvme-cli libgbm1 pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev -y
sudo apt-get install python3 python3-pip python3-venv python3-dev -y
sudo apt-get update
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g yarn
curl -o- -L https://yarnpkg.com/install.sh | bash
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
source ~/.bashrc git clone https://github.com/gensyn-ai/rl-swarm/
cd ~/rl-swarm/modal-login && yarn install && yarn upgrade && yarn add next@latest && yarn add viem@latest
cd ~/rl-swarm
sed -i '1i # ~/.bashrc: executed by bash(1) for non-login shells.\n\n# If not running interactively, don'\''t do anything\ncase $- in\n *i*) ;;\n *) return;;\nesac\n' ~/.bashrc
cd ~ && python3 -m venv .venv && source .venv/bin/activate
pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install -r requirements_gpu.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install -r requirements-hivemind.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
tmux new -s gensyn
cd ~ && python3 -m venv .venv && source .venv/bin/activate
指定cpu运行: export CPU_ONLY=1 && export CUDA_VISIBLE_DEVICES=""
cd ~/rl-swarm && bash ./run_rl_swarm.sh
文章评论