Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

🎯 IPFS Accelerate Python Examples

This directory contains comprehensive examples and demonstrations of the IPFS Accelerate Python framework capabilities.

📂 Examples Overview

AI Implementation Examples

Complete System Demonstrations

Kitchen Sink Applications

🚀 Running Examples

Basic Usage

# 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

Web-based Examples

# 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

MCP Server Examples

# 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 discovery

🎯 Example Categories

🤖 AI Inference Examples

These 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)

🏗️ System Architecture Examples

Examples showing system architecture and integration:

  • MCP server setup and usage
  • Model manager configuration
  • Hardware acceleration examples
  • IPFS integration demonstrations

🌐 Web Interface Examples

Browser-based examples and interfaces:

  • Kitchen Sink testing dashboard
  • JavaScript SDK usage
  • Real-time inference examples
  • Interactive model exploration

📋 Prerequisites

Before running examples, ensure you have:

  1. Installed the framework:

    pip install ipfs_accelerate_py
  2. Required dependencies:

    pip install ipfs_accelerate_py[full]  # For complete functionality
  3. 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

🔧 CLI Integration

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.jpg

See the main README for complete CLI documentation.

📚 Additional Resources

🐛 Troubleshooting

If you encounter issues running examples:

  1. Check the Installation Troubleshooting Guide
  2. Ensure all dependencies are installed
  3. Review example-specific comments for requirements
  4. Check the Testing README for debugging tips