Coder Social home page Coder Social logo

tokenmoon / lilypad-modicum Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lilypad-tech/lilypad-modicum

1.0 0.0 0.0 56.44 MB

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

License: GNU General Public License v3.0

Shell 9.17% JavaScript 0.18% C++ 17.55% Python 3.52% Perl 0.05% C 22.32% Go 0.03% Assembly 1.44% CSS 0.21% TeX 1.00% ANTLR 0.06% Makefile 4.47% HTML 21.73% HCL 0.02% M4 0.09% Dockerfile 0.02% Roff 17.90% Solidity 0.20% SWIG 0.05%

lilypad-modicum's Introduction

Lilypad ๐Ÿƒ

This cloud is just someone else's computer.

image

Read the docs!

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

  • trigger jobs on other peoples' computers with just a metamask wallet and our CLI
  • trigger the same jobs from a smart contract deployed to our testnet
  • make crypto with your GPU by running Stable Diffusion fine-tuning & inference jobs for someone else.

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:

  • Network name: Lilypad Lalechuza testnet
  • New RPC URL: http://testnet.lilypadnetwork.org:8545
  • Chain ID: 1337
  • Currency symbol: ETH
  • Block explorer URL: (leave blank)

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

  • Click the down arrow next to Account 1 on the top bar, then click the ... next to Account 1 in the list
  • Account details - then click Show private key

  • Show private key
  • Enter your metamask password
  • Copy private key for account - DO NOT COPY THE WALLET ADDRESS BY MISTAKE

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*"}'
  • TODO: read results from http rather than ipfs for high performance

arbitrary wasm (run in a deterministic env)

  • TODO: the following seems to be a csv2parquet program that requires a CSV as input - need to also provide a CSV as input! (but it runs, giving the error message rn)
lilypad run --template deterministic_wasm:v0.0.1 \
	--params '{"wasm_cid": "Qmajb9T3jBdMSp7xh2JruNrqg3hniCnM6EUVsBocARPJRQ", \
	           "wasm_entrypoint": "_start"}'

lilypad-modicum's People

Contributors

lukemarsden avatar binocarlos avatar developerally avatar xqua avatar 31z4 avatar eiselesr avatar

Stargazers

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