๐Ÿƒ Lilypad Project Report: Jan 08

Add a module to Lilypad, Holiday Dev Workshop, Projects building on Lilypad!

ยท

4 min read

๐Ÿƒ Lilypad Project Report: Jan 08

prompt: Create a wide, landscape-oriented image depicting a zoomed-out view of friends enjoying a magnificent firework display on a far away hill

Image made with Lilypad AI Studio :)

๐ŸŒ Overview

Happy New Year from the team at Lilypad!!

Over the last few weeks, we improved the experience of adding AI models (modules) to run on the Lilypad Network as well as continued to on-board more resource providers to the Lilypad testnet. We encourage anyone from individuals to enterprises with idle GPUs to sign up for our Baklava Calibration testnet and become a network resource provider!

View the current Lilypad Network roadmap on our website.

โš’๏ธ Lilypad Engineering Update

Adding a module to run on Lilypad!

The team is committed to simplifying the experience for developers and individuals to run a variety of AI models on the open Lilypad compute network. Check out this detailed example on integrating and using the Phi-2 module with Lilypad. The Phi-2 module, as an example, can be explored further on Hugging Face.

Find the full instructions in the Github repo here and fork the code to try it out for yourself!

Preparing the Environment

  1. Clone the Repository: Ensure that you are in the project directory after cloning the repository from GitHub.

  2. Set Up Private Key: Export your private key using the following command:

     export WEB3_PRIVATE_KEY="YOUR-PRIVATE-KEY"
    
  3. Docker Setup: With Docker installed and the image available locally, you can run the model on your machine.

  4. Running the Module Locally Use the following command to run the model locally:

  5.     docker run --gpus all -t clone-phi2 "what is the acceleration of earth's gravity?"
    

You can use your own prompt of course!

Running on Lilypad

To execute the module using Lilypad, follow these instructions:

  1. Module Configuration: Configure the module with the following command:
lilypad run --module-repo "http://github.com/noryev/clone-phi2" --module-hash ae7b9f267287045cb81b59bae767cfb92e43c7d7 --module-path ./lilypad_module.json.tmpl -i Prompt="what is the acceleration of gravity on earth?"

Execution Result:

After running the below command, you will receive the output. Below is a screenshot demonstrating this step:

๐ŸŒŸ Lilypad "All the Things" Update

Holiday Dev Workshop!

Lilypad CEO Ally and engineer Zaphodb17 joined the Holiday Developer Workshop live-stream to discuss "Building decentralized AI apps with Lilypad!

Learn about the vision for Lilypad, get into the technical details, and watch a demo on how to add your own AI module to run on the network.

Projects building on Lilypad

We are super excited to highlight some of the fabulous projects building on the Lilypad Network!

  • Lilypad-Kamu: A custom module for sql streaming through kamu.dev providing provenance, and version control.

  • Lilypad Hub: This platform, much like Dockerhub is a one-stop destination for all your module needs as a Lilypad user. Test job specs as well as experiment and fine-tune your code in a safe environment. Github repo can be found here.

  • DatAgent DAO: A DAO marketplace where communities can share their datasets to train ML models & collectively earn from them.

The Lilypad project showcase has a list of projects building on the network. We salute our early builders and contributors!! Read more about the teams building on Lilypad in our blog.

Lilypad at DevConnect 2023

If you missed Devconnect Istanbul, check out this awesome presentation from Lilypad Network at Lab Week 2023 Istanbul. Deep dive into the module/model system, how to get started, and the vision to build a trustless distributed compute network for AI.

Learn how the Lilypad Aurora testnet (v2) uses IPC Fendermint to build a dedicated subchain that underpins Lilypad's computational network and enables Lilypad's own ERC20 token (LP) for service an gas payments.

๐Ÿ”ฎ What's Next?

We continue to push towards the launch of the incentivized Lilypad testnet! The team is on-boarding more resource providers and continues to improve both the developer and resource provider experience.

โ˜Ž๏ธ Contact Us

๐Ÿ’ฌ Chat to us on Slack: bit.ly/bacalhau-project-slack #bacalhau-lilypad and #lilypad-general

Follow along on X/Twitter for the latest news and updates!

Did you find this article valuable?

Support Lilypad Network by becoming a sponsor. Any amount is appreciated!

ย