mirror of
https://github.com/lemonade-sdk/infinity-arcade.git
synced 2026-11-23 08:49:24 -10:00
LemonadeClient Examples
This directory contains practical examples demonstrating how to use the LemonadeClient class in your applications.
Available Examples
lemonade_client_integration_example.py
A comprehensive example showing the complete workflow for integrating LemonadeClient into an application:
- ✅ Installation checking - Verify lemonade-server is installed and compatible
- 🚀 Server management - Start and verify server status
- 🤖 Model operations - Install, load, and verify model availability
- 🧪 Inference testing - Basic API connectivity and inference test
- 📝 Error handling - Proper exception handling and user feedback
Usage:
python infinity-arcade/examples/lemonade_client_integration_example.py
This example uses the Qwen3-0.6B-GGUF model as it's lightweight and good for testing. You can modify the required_model variable to use different models as needed.
Running Examples
All examples are standalone Python scripts that can be run directly. They include proper error handling and progress reporting, making them suitable for:
- Learning how to integrate LemonadeClient
- Testing your lemonade-server setup
- Starting point for your own applications
- CI/CD pipeline validation
Adding New Examples
When adding new examples:
- Include comprehensive docstrings and comments
- Add proper error handling with informative messages
- Use realistic model names and parameters
- Include progress reporting for long-running operations
- Update this README with a description of the new example