Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Get started with Lilypad Aurora
The cloud is just somebody else's computer...
This guide will take you through
Setting up Metamask Wallet for the Lilypad v2 Aurora testnet
Funding your wallet with Lilypad Testnet tokens from the faucet.
Running a Hello, (cow) World! Example
Lilypad serves as a verifiable, trustless, and decentralized computational network engineered to facilitate mainstream adoption of web3 applications. By extending unrestricted, global access to computational power, Lilypad strategically collaborates with decentralized infrastructure networks, such as Filecoin, to formulate a transparent, efficient, and accessible computational ecosystem. While Lilypad does not specifically resolve issues related to the accessibility of AI models, it significantly alleviates challenges associated with procuring high-performance AI hardware. In this context, Lilypad provides decentralized AI computational services. The network recently unveiled its second version, dubbed Lilypad V2 (Aurora), and is actively laying groundwork for multi-chain integration and the deployment of an incentivized test net.
Lilypad aims to mitigate the challenges predominantly associated with the accessibility of high-performance computational hardware. At present, numerous barriers impede developers and organizations from seamlessly integrating projects that require high-performance computing, such as AI technologies, into their applications. Unlike conventional centralized systems, where access to powerful compute hardware is restricted and costly, Lilypad endeavors to democratize this access. Through its verifiable, trustless, and decentralized computational network, Lilypad extends unrestricted, global access to computational power. By leveraging decentralized infrastructure networks such as Filecoin, Lilypad is strategically positioned to enhance the efficiency, transparency, and accessibility of high-performance computing hardware.
Perform off-chain decentralised compute over data, with on-chain guarantees, and to call this functionality directly from a smart contract, CLI and an easy to use abstraction layer, opens the door to a multitude of possible applications including:
Inference AI jobs
ML training jobs
Invoking & supporting generic ZK computations
Cross-chain interoperability complement to bridge protocols
Utilising inbuilt storage on IPFS
Federated Learning consensus (with Bacalhau insulated jobs)
IOT & Sensor Data integrations
Providing a platform for Digital twins
Supply chain tracking & analysis
ETL & data preparation jobs
Some of the key features of Lilypad include:
Verifiable Trustless Decentralized Compute Network: Lilypad is a decentralized compute network that aims to provide global, permissionless access to compute power. It leverages decentralized physical infrastructure networks like Filecoin to ensure trustlessness and verifiability.
Mainstream Web3 Application Support: Lilypad is designed to enable mainstream web3 applications to use its compute network. It aims to make decentralized AI more accessible, efficient, and transparent for developers and users.
Open Compute Network: Lilypad creates an open compute network that allows users to access and run AI models and jobs. It separates module creators from users and curates a set of deterministic modules for users to run, ensuring determinism in verification systems.
Multichain Support: Lilypad plans to go multichain, which means it will support multiple blockchain networks. This will increase the scalability and interoperability of the network, allowing users to choose the blockchain that best suits their needs.
Incentivized Test Net: Lilypad has plans to launch an incentivized test net, which will provide users with incentives to participate in testing and improving the network. This will help identify and address any issues or challenges before the mainnet launch.
Decentralization of Mediators: The team also aims to decentralize the mediators in the network. This means that the decision-making process and governance of the network will be distributed among multiple participants, ensuring a more decentralized and resilient system.
In the video above, Ally Haire, Co-Founder of Lilypad, will provide an introduction to the project and its goals.
Lilypad Aurora Architecture
This page is a dynamic work in progress! We're working on some better diagrams!
See the for further information on how the MODICUM architecture was enhanced in implementation
See docs.bacalhau.org for more information on how Bacalhau operates
The architecture of Lilypad is inspired by the research paper titled "Mechanisms for Outsourcing Computation via a Decentralized Market." The paper introduces MODiCuM, a decentralized system that allows for computational outsourcing in an open market. Just like MODiCuM, Lilypad aims to create an open market of computational resources by introducing various decentralized services like solver, resource provider, job creator, mediator, and directory services. MODiCuM's unique approach to deterring misbehavior in a decentralized environment through dedicated mediators and enforceable fines has influenced Lilypad's own design, particularly in the areas of dispute resolution and system integrity.
For an in-depth understanding, you can read the paper here.
Abstract of the paper: Mechanisms for Outsourcing Computation via a Decentralized Market As the number of personal computing and IoT devices grows rapidly, so does the amount of computational power that is available at the edge. Since many of these devices are often idle, there is a vast amount of computational power that is currently untapped, and which could be used for outsourcing computation. Existing solutions for harnessing this power, such as volunteer computing (e.g., BOINC), are centralized platforms in which a single organization or company can control participation and pricing. By contrast, an open market of computational resources, where resource owners and resource users trade directly with each other, could lead to greater participation and more competitive pricing. To provide an open market, we introduce MODiCuM, a decentralized system for outsourcing computation. MODiCuM deters participants from misbehaving-which is a key problem in decentralized systems-by resolving disputes via dedicated mediators and by imposing enforceable fines. However, unlike other decentralized outsourcing solutions, MODiCuM minimizes computational overhead since it does not require global trust in mediation results. We provide analytical results proving that MODiCuM can deter misbehavior, and we evaluate the overhead of MODiCuM using experimental results based on an implementation of our platform.
In this insightful presentation, Luke Marsden, a core member of the Lilypad project, delves into the complex relationship between determinism and developer experience. He highlights the necessity for determinism in verification systems and discusses the challenges of implementing it during runtime. The talk also covers the project's strategy to separate module creators from end-users and to provide a curated list of deterministic modules. Key points in the roadmap like improving user experience, decentralizing mediators, and automating determinism checks are also touched upon. The presentation concludes with a live demo of running AI jobs on Lilypad V2.
With testnet Lilypad ETH
To obtain funds, connect to the lilypad v2 Aurora testnet network on your wallet and head to the faucet at http://faucet.lilypad.tech to get ETH and LP
Faucet: Aurora Testnet
Copy your metamask wallet address into the bar and click request.
Lilypad setup
Supported platforms: only supports x86_64 Linux
You may then need to set:
You may then need to set:
Verifying if the install is successful. Execute lilypad
on your terminal and it should produce the following response.
Yay we're rich!
A cowsay job
Ensure you have installed all requirements Installation (CLI)
Start Docker
Open a Terminal window and run the following command
Make sure to have the following env in your shell session
Run lilypad
(ensure your user is in the docker group if necessary on your platform) Output:
see the results by navigating to the IPFS CID Navigate to the IPFS CID result output in the Results -> https://ipfs.io/ipfs/QmNjJUyFZpSg7HC9akujZ6KHWvJbCEytre3NRSMHzCA6NR
This could take up to a minute to propagate through the IPFS network. Please be patient
by navigating to the local folder
Here, you can view the stdout
and stderr
as well as the outputs
folder for the run
A cowsay job on Sepolia
To acquire LilyPad tokens, follow these steps:
Visit the Lilypad Faucet at here
Enter your wallet address.
Receive some LP tokens.
Set the environment variables as shown below:
Note: You will need to set up your own Infura account and get your infura Api Key. You can follow the instructions here
Note: Ensure that you have Lilypad installed before proceeding.
To execute cowsay, use the following command:
Output:
see the results by navigating to the IPFS CID Navigate to the IPFS CID result output in the Results -> https://ipfs.io/ipfs/QmNjJUyFZpSg7HC9akujZ6KHWvJbCEytre3NRSMHzCA6NR
This could take up to a minute to propagate through the IPFS network. Please be patient
by navigating to the local folder
Here, you can view the stdout
and stderr
as well as the outputs
folder for the run
Running the most important Hello World on lilypad
Run a Stable Diffusion Text to Image Job
Generically, stable diffusion is what happens when you put a couple of drops of dye into a bucket of water. Given time, the dye randomly disperses and eventually settles into a uniform distribution which colours all the water evenly
In computer science, you define rules for your (dye) particles to follow and the medium this takes place in.
Stable Diffusion is a machine learning model used for text-to-image processing (like Dall-E) and based on a diffusion probabilistic model that uses a transformer to generate images from text. There are several open-source stable diffusion models out there (made famous by Stability.ai) and they continue to improve and become even more fully featured - SDXL0.9 is one of the more recently open-sourced models.
Ensure you have installed all requirements Installation (CLI)
To run stable diffusion use the sdxl module like so:
The output will look like this:
Take the ipfs link given in the results and paste it into your browser:
Please be patient! IPFS can take some time to propagate and doesn't always work immediately.
You could also check the output folder that would have been downloaded at the end of running the job
In the /outputs folder, you'll find the image:
Since modules are deterministic, running this command with the same text prompt will produce the same image, since the same seed is also used (the default seed is 0).
See this beginner-friendly article on how seed's work for more info on this
To change the image, you can pass in a different seed number:
In this video, Sam demos the use of SDXL in the Lilypad network.
Try this to start!
A cowsay job on Mumbai
To acquire LilyPad tokens, follow these steps:
Visit the Lilypad Faucet at here
Enter your wallet address.
Receive some LP tokens.
Set the environment variables as shown below:
Note: You will need to set up your own Infura account and get your infura Api Key. You can follow the instructions here
Note: Ensure that you have Lilypad installed before proceeding.
To execute cowsay, use the following command:
Output:
see the results by navigating to the IPFS CID Navigate to the IPFS CID result output in the Results -> https://ipfs.io/ipfs/QmNjJUyFZpSg7HC9akujZ6KHWvJbCEytre3NRSMHzCA6NR
This could take up to a minute to propagate through the IPFS network. Please be patient
by navigating to the local folder
Here, you can view the stdout
and stderr
as well as the outputs
folder for the run
Connecting to Lilypad v2 Aurora Testnet
Next, add the Lilypad Testnet chain to metamask.
Network name: Lilypad v2 Aurora testnet
New RPC URL: http://testnet.lilypad.tech:8545
Chain ID: 1337
Currency symbol: ETH
Block explorer URL: (leave blank)
To do this, open metamask then click on the network button at the top left of the popup (in the menu bar):
Then click the "Add Network" Button.
Next, click on "Add a network manually" at the bottom of the page and enter the Lilypad Testnet details:
Install metamask Extension