Build a Job Module
How to build your own compute job for Lilypad
Modules on Lilypad
Module Structure
your-module/
βββ model-directory # Stores locally downloaded model files
βββ download_model.[py/js/etc] # Script to download model files locally
βββ requirements.txt # Module dependencies
βββ Dockerfile # Container definition
βββ run_script.[py/js/etc] # Main execution script
βββ lilypad_module.json.tmpl # Lilypad configuration
βββ README.md # DocumentationPrepare Your Model
1. Download the model locally
2. Create Run Script (run_model.py for example) that will be used in conjunction with Docker
3. Create a Dockerfile that functions with your run script
4. Build and Publish Image
5. Create a lilypad_module.json.tmpl Template
Environment Variables
Formatting your module run command
Test Module before running on Lilypad
Run Module on Lilypad
Examples
Conclusion
Last updated
Was this helpful?

