Lilypad-Tech / lilypad-modicum

This is the deprecated Lilypad v1. See https://github.com/bacalhau-project/lilypad for v2. Previous FEVM-Bacalhau bridge (v0): https://github.com/bacalhau-project/lilypad-v0
GNU General Public License v3.0
12 stars 8 forks source link

Lilypad 🍃

This cloud is just someone else's computer.

image

Read the docs!

This guide shows you (amongst other things) how to:

Caveat: today it is just worthless test crypto, but one day soon it will be real crypto!

Get private key

Set up metamask with our Lalechuza testnet.

Click the down arrow on networks and click add network.

The variables you need are:

Click save and click "switch to Lilypad Lalechuza testnet".

Open a terminal on macOS, Linux or WSL2, and type:

export PRIVATE_KEY=<the private key you copied>

Go get some funds from the faucet: http://testnet.lilypadnetwork.org/

Now let's run a job!

Hello (cow) world example

Requires:

Works on Linux, macOS and WSL2 (x86_64 and arm64)

Install lilypad CLI:

curl -sSL -O https://raw.githubusercontent.com/bacalhau-project/lilypad-modicum/main/lilypad && sudo install lilypad /usr/local/bin/lilypad

run a job (x86_64 or arm64)

Run cowsay via the BLOCKCHAIN

export PRIVATE_KEY=<as above>
lilypad run --template cowsay:v0.0.1 --params "hello lilypad"

(ensure your user is in the docker group if necessary on your platform)

run a node (x86_64 only)

To contribute your resources to the network and get paid

export PRIVATE_KEY=<as above>
sudo -E lilypad serve

usage

stable diffusion (requires GPU)

lilypad run --template stable_diffusion:v0.0.1 --params "blue frog"

TODO:

filecoin data prep

lilypad run --template filecoin_data_prep:v0.0.1 \
    --params '{"s3_bucket": "noaa-goes16", \
               "s3_key": "ABI-L1b-RadC/2000/001/12/OR_ABI-L1b-RadC-M3C01*"}'

arbitrary wasm (run in a deterministic env)

lilypad run --template deterministic_wasm:v0.0.1 \
    --params '{"wasm_cid": "Qmajb9T3jBdMSp7xh2JruNrqg3hniCnM6EUVsBocARPJRQ", \
               "wasm_entrypoint": "_start"}'