skynet/README.md

80 lines
1.4 KiB
Markdown
Raw Normal View History

# skynet
### decentralized compute platform
2023-05-30 03:41:32 +00:00
To launch a worker:
### native install
system dependencies:
- `cuda` 11.8
- `llvm` 10
- `python` 3.10+
- `docker` (for ipfs node)
2023-05-30 03:41:32 +00:00
```
# create and edit config from template
2023-10-06 13:24:44 +00:00
cp skynet.toml.example skynet.toml
2023-05-30 03:41:32 +00:00
# install poetry package manager
curl -sSL https://install.python-poetry.org | python3 -
2023-05-30 03:41:32 +00:00
# install
poetry install
2023-05-30 03:41:32 +00:00
# enable environment
poetry shell
2023-05-30 03:41:32 +00:00
# test you can run this command
skynet --help
# launch ipfs node
skynet run ipfs
2023-05-30 03:41:32 +00:00
# to launch worker
skynet run dgpu
```
### dockerized install
system dependencies:
- `docker` with gpu enabled
```
2023-10-06 13:24:44 +00:00
# create and edit config from template
cp skynet.toml.example skynet.toml
# pull runtime container
docker pull guilledk/skynet:runtime-cuda
# or build it (takes a bit of time)
./build_docker.sh
# launch simple ipfs node
./launch_ipfs.sh
2023-10-06 13:24:44 +00:00
# run worker with all gpus
docker run \
-it \
--rm \
2023-10-06 13:24:44 +00:00
--env HF_HOME=hf_home \
--gpus all \
--network host \
--name skynet-worker \
--mount type=bind,source="$(pwd)",target=/root/target \
guilledk/skynet:runtime-cuda \
skynet run dgpu
2023-10-06 13:24:44 +00:00
# run worker with specific gpu
docker run \
-it \
--rm \
--env HF_HOME=hf_home \
--gpus '"device=1"' \
--network host \
--name skynet-worker-1 \
--mount type=bind,source="$(pwd)",target=/root/target \
guilledk/skynet:runtime-cuda \
skynet run dgpu
```