A distributed system that combines GPU-accelerated data processing with AI-powered chat for analyzing NYC Parking Violations data. Built for ASU NVIDIA GPU Hackathon 2025.
Architecture: Next.js frontend (local) + GPU-accelerated Python backend (Sol/remote server)
graph TB
A[Next.js Frontend<br/>Local Development] --> B[FastAPI Backend<br/>Sol GPU Server]
B --> C[cuDF GPU Processing<br/>NYC Parking Data]
B --> D[RAG AI Chat<br/>Ollama + ChromaDB]
B --> E[Performance Monitoring<br/>GPU Metrics]
- Frontend: Next.js 15, TypeScript, Tailwind CSS, Shadcn/ui
- Backend: FastAPI, cuDF, CuPy, PyTorch
- AI: Ollama, LangChain, ChromaDB (RAG system)
- GPU: NVIDIA CUDA acceleration
- Data: NYC Parking Violations (2M+ records)
cd sol-complete-backend/
./start_backend.sh # Linux/Mac
# OR
start_backend.bat # Windowsnpm install
npm run devFull deployment instructions: See sol-complete-backend/INSTRUCTIONS_for_Sol.txt
โโโ ๐จ Frontend (Next.js)
โ โโโ src/app/ # App router pages
โ โโโ src/components/ # React components
โ โโโ src/lib/ # Utilities & API clients
โ
โโโ โก GPU Backend (Sol Ready)
โ โโโ sol-complete-backend/ # ๐ฅ Complete backend package
โ โ โโโ complete_sol_backend.ipynb # Main notebook
โ โ โโโ start_backend.sh/bat # One-command setup
โ โ โโโ requirements.txt # Dependencies
โ โ โโโ INSTRUCTIONS_for_Sol.txt # Setup guide
โ โ
โ โโโ python_notebooks/ # GPU learning materials
โ โโโ ai-accelerated-spark/ # RAG examples
โ
โโโ ๐ Documentation
โโโ DEPLOYMENT_GUIDE.md # Comprehensive setup
โโโ FINAL_SUMMARY.md # Project overview
- cuDF: 50x faster DataFrame operations vs Pandas
- CuPy: GPU-accelerated NumPy alternative
- Real-time processing of 2M+ parking violation records
- RAG (Retrieval Augmented Generation) with NYC parking data
- Ollama LLM for intelligent responses
- Vector search for contextual answers
- Real-time GPU utilization tracking
- Processing speed comparisons (CPU vs GPU)
- Memory usage optimization
- Frontend: Runs locally for development
- Backend: Deploys to Sol for GPU processing
- API communication via REST endpoints
# Clone repository
git clone https://github.com/meajsinghk/asu-nvidia-gpu-hack25.git
cd asu-nvidia-gpu-hack25
# Install dependencies
npm install
# Configure environment
cp .env.example .env.local
# Update NEXT_PUBLIC_API_URL with Sol backend URL
# Start development server
npm run dev# Transfer sol-complete-backend folder to Sol
# Follow: sol-complete-backend/INSTRUCTIONS_for_Sol.txt
# One command setup:
./start_backend.sh| Endpoint | Method | Description |
|---|---|---|
/health |
GET | System status & GPU info |
/analyze |
POST | GPU-accelerated data processing |
/chat |
POST | AI chat with parking data context |
/performance |
GET | Real-time GPU metrics |
/dataset/stats |
GET | Dataset statistics |
# Query parking violations by borough
curl -X POST "http://sol-server:8000/analyze" \
-H "Content-Type: application/json" \
-d '{"query": "violations by borough", "limit": 1000}'# Ask AI about parking patterns
curl -X POST "http://sol-server:8000/chat" \
-H "Content-Type: application/json" \
-d '{"message": "What are the peak hours for parking violations?"}'| Operation | CPU Time | GPU Time | Speedup |
|---|---|---|---|
| Data Loading | 45s | 2s | 22.5x |
| Groupby Operations | 12s | 0.3s | 40x |
| Statistical Analysis | 8s | 0.2s | 40x |
| Large Joins | 30s | 0.8s | 37.5x |
Dataset: 2M+ NYC Parking Violation records (~500MB)
- Transfer
sol-complete-backend/folder to Sol environment
cd sol-complete-backend/
./start_backend.sh # Handles everything automatically- Backend runs on
http://your-sol-ip:8000 - Share this URL for frontend connection
Complete Guide: sol-complete-backend/INSTRUCTIONS_for_Sol.txt
- CUDA not found: Check
nvidia-smiand drivers - Port conflicts: Change port in startup scripts
- Package errors: Manual install with
pip install -r requirements.txt - Dataset download: System creates mock data automatically
- NVIDIA GPU with CUDA support
- CUDA Toolkit 11.8+
- 8GB+ GPU memory recommended
This project includes comprehensive GPU learning materials:
python_notebooks/- RAPIDS, cuDF, CuPy tutorialsai-accelerated-spark/- RAG and AI examples- Performance comparisons and optimization techniques
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open Pull Request
This project is open source and available under the MIT License.
- ASU NVIDIA GPU Hackathon 2025
- RAPIDS AI for GPU acceleration libraries
- Ollama for local LLM deployment
- NYC Open Data for parking violations dataset
- Issues: GitHub Issues
- Discussions: GitHub Discussions
๐ Built with NVIDIA GPU acceleration for the ASU Hackathon 2025! โก