# 🍃 Lilypad Project Report: January 08, 2024

`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](https://app.lilypad.tech/) :)

## **🌐 Overview**

Happy New Year from the team at [Lilypad](https://lilypad.tech)!!

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](https://docs.google.com/forms/d/e/1FAIpQLSdq6bR251mtshv-zhubYQWwlL9pTxuaoSEkDdmC-klXbQf7tQ/viewform) for our Baklava Calibration testnet and become a network resource provider!

View the current Lilypad Network roadmap on our [website](https://lilypad.tech/roadmap.html).

## **⚒️ 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](https://huggingface.co/amgadhasan/phi-2).

Find the full instructions in the Github repo [here](https://github.com/Lilypad-Tech/module-phi2) 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:
    
    ```plaintext
    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. ```plaintext
       docker run --gpus all -t clone-phi2 "what is the acceleration of earth's gravity?"
    ```
    

You can use your own prompt of course!

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1705374100021/ac2655ea-889a-44ef-95dc-2c33ac2049fb.png align="center")

**Running on Lilypad**

To execute the module using Lilypad, follow these instructions:

1. **Module Configuration**: Configure the module with the following command:
    

```plaintext
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:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1705373739078/63347a7b-92b5-4dc1-a24c-d72d7f57b7cb.png align="center")

## **🌟 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.

%[https://www.youtube.com/watch?v=1lwkLDreUZY] 

### Projects building on Lilypad

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

* [**Lilypad-Kamu**](https://github.com/polus-arcticus/lilypad-module-kamu/blob/main/lilypad_module.json.tmpl)**:** A custom module for sql streaming through kamu.dev providing provenance, and version control.
    
* [**Lilypad Hub**](https://www.lilypadhub.xyz/welcome)**:** 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](https://github.com/oBLAZERo2001/lilypad-hub).
    
* **DatAgent DAO**: A DAO marketplace where communities can share their datasets to train ML models & collectively earn from them.
    

The Lilypad [project showcase](https://docs.lilypadnetwork.org/use-cases/project-showcase) has a list of projects building on the network. We salute our early builders and contributors!! [Read more](https://blog.lilypadnetwork.org/hop-into-the-future-with-lilypad-the-distributed-compute-network#heading-lilypad-pioneers) about the teams building on Lilypad in our blog.

### Lilypad at DevConnect 2023

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1705376356649/77653d64-7b61-4ee6-8d39-72d1200dcfd6.png align="center")

If you missed Devconnect Istanbul, [check out this awesome presentation](https://leto.gg/ipfs/bafybeicepkpvzvxcmsa7swmjfzion5i7ab7ggnntvoi4clkrmkvnx7ehq4) 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](https://www.ipc.space/) 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**](https://ipfs.io/ipfs/QmQijYYN5i4hQ7rxovqaBvd6dNLa7MBtRVA2KRePVNAcaB/outputs/image-0.png) **#bacalhau-lilypad and #lilypad-general**

Follow along on [X/Twitter](https://twitter.com/Lilypad_Tech) for the latest news and updates!
