This directory contains comprehensive examples and demonstrations of the IPFS Accelerate Python framework capabilities.
- AI Implementation Showcase - Complete system demonstration
- AI MCP Demo - MCP server demonstration with AI inference
- AI Model Discovery Example - Model discovery and search
- Comprehensive AI Demo - Full-featured AI capabilities demo
- Demonstration Example - Basic usage demonstration
- Model Manager Example - Model management system demo
- Kitchen Sink Demo - Web-based testing interface
- Kitchen Sink App - Complete application example
- SDK Demo - JavaScript SDK demonstration
# AI implementation showcase
cd examples
python ai_implementation_showcase.py
# Complete AI demonstration
python comprehensive_ai_demo.py
# Model manager example
python model_manager_example.py# Kitchen sink testing interface
python kitchen_sink_demo.py
# Open http://localhost:8080 in your browser
# SDK demonstration
python sdk_demo.py
# Demonstrates JavaScript SDK usage# AI MCP server demonstration
python ai_mcp_demo.py
# Shows MCP server capabilities with AI inference
# Model discovery example
python ai_model_discovery_example.py
# Demonstrates model search and discoveryThese examples demonstrate various AI inference capabilities:
- Text generation and classification
- Audio transcription and synthesis
- Image classification and generation
- Multimodal processing (image captioning, VQA)
- Specialized processing (code generation, time series)
Examples showing system architecture and integration:
- MCP server setup and usage
- Model manager configuration
- Hardware acceleration examples
- IPFS integration demonstrations
Browser-based examples and interfaces:
- Kitchen Sink testing dashboard
- JavaScript SDK usage
- Real-time inference examples
- Interactive model exploration
Before running examples, ensure you have:
-
Installed the framework:
pip install ipfs_accelerate_py
-
Required dependencies:
pip install ipfs_accelerate_py[full] # For complete functionality -
Optional dependencies for specific examples:
pip install ipfs_accelerate_py[webnn] # For web-based examples pip install ipfs_accelerate_py[mcp] # For MCP server examples
All examples can be replicated using the CLI tool:
# Instead of running Python examples, use the CLI:
ipfs_accelerate text generate --prompt "Hello world"
ipfs_accelerate system list-models
ipfs_accelerate vision classify --image-file cat.jpgSee the main README for complete CLI documentation.
- Documentation - Complete documentation
- Tests - Test suite examples
- Scripts - Utility tools and scripts
- Main README - Project overview
If you encounter issues running examples:
- Check the Installation Troubleshooting Guide
- Ensure all dependencies are installed
- Review example-specific comments for requirements
- Check the Testing README for debugging tips