noryev / module_zero

This is a repo dedicated to conversion of stability-ai model into a lilypad runnable module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example Lilypad Module Stability-ai/stable-video-diffusion

This is a repo dedicated to author a Lilypad module built with Stability-AI's Stable Video Diffusionreplicate.com

Firstly create a docker image with your configuration! Firstly I need to create a Dockerfile that specifies the enviroment in which my module will run!

Create a file called lilypad_module.json.tmpl

This is a json template with Go text/template style {{.Message}} sections which will be replaced by Lilypad with valid JSON strings which are passed as input to modules.

Pass inputs as:

lilypad run github.com/username/repo:tag -i Message=moo

Inputs are a map of strings to strings.

YOU MUST MAKE YOUR MODULE DETERMINISTIC

Tips:

  • Make the output reproducible, for example for the diffusers library, see here
  • Strip timestamps and time measurements out of the output, including to stdout/stderr
  • Don't read any sources of entropy (e.g. /dev/random)
  • When referencing docker images, you MUST specify their sha256 hashes, as shown in this example

If your module is not deterministic, compute providers will not adopt it and add it to their allowlists.

About

This is a repo dedicated to conversion of stability-ai model into a lilypad runnable module


Languages

Language:Python 100.0%