Skip to content

Latest commit

ย 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ ASU NVIDIA GPU Hackathon 2025

GPU-Accelerated NYC Parking Analysis with Distributed Computing

GPU Acceleration AI Powered Next.js Python

๐ŸŽฏ Project Overview

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)


๐Ÿ—๏ธ System Architecture

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]
Loading

๐Ÿ”ง Tech Stack:

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

๐Ÿš€ Quick Start

For Sol Backend Deployment:

cd sol-complete-backend/
./start_backend.sh    # Linux/Mac
# OR
start_backend.bat     # Windows

For Frontend Development:

npm install
npm run dev

Full deployment instructions: See sol-complete-backend/INSTRUCTIONS_for_Sol.txt


๐Ÿ“ Project Structure

โ”œโ”€โ”€ ๐ŸŽจ 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

๐ŸŽฏ Key Features

๐Ÿ”ฅ GPU Acceleration

  • cuDF: 50x faster DataFrame operations vs Pandas
  • CuPy: GPU-accelerated NumPy alternative
  • Real-time processing of 2M+ parking violation records

๐Ÿค– AI Chat System

  • RAG (Retrieval Augmented Generation) with NYC parking data
  • Ollama LLM for intelligent responses
  • Vector search for contextual answers

๐Ÿ“Š Performance Monitoring

  • Real-time GPU utilization tracking
  • Processing speed comparisons (CPU vs GPU)
  • Memory usage optimization

๐ŸŒ Distributed Architecture

  • Frontend: Runs locally for development
  • Backend: Deploys to Sol for GPU processing
  • API communication via REST endpoints

๐Ÿ”ง Development Setup

1. Frontend Setup (Local)

# 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

2. Backend Setup (Sol Server)

# Transfer sol-complete-backend folder to Sol
# Follow: sol-complete-backend/INSTRUCTIONS_for_Sol.txt

# One command setup:
./start_backend.sh

๐Ÿ“ก API Endpoints

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

๐ŸŽฎ Usage Examples

GPU Data Analysis:

# 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}'

AI Chat:

# 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?"}'

๐Ÿ† Performance Results

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)


๐Ÿš€ Deployment

Step 1: Get Sol Access

  • Transfer sol-complete-backend/ folder to Sol environment

Step 2: One Command Setup

cd sol-complete-backend/
./start_backend.sh    # Handles everything automatically

Step 3: Share URL

  • Backend runs on http://your-sol-ip:8000
  • Share this URL for frontend connection

Complete Guide: sol-complete-backend/INSTRUCTIONS_for_Sol.txt


๐Ÿ› ๏ธ Troubleshooting

Common Issues:

  • CUDA not found: Check nvidia-smi and 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

GPU Requirements:

  • NVIDIA GPU with CUDA support
  • CUDA Toolkit 11.8+
  • 8GB+ GPU memory recommended

๐Ÿ“š Learning Resources

This project includes comprehensive GPU learning materials:

  • python_notebooks/ - RAPIDS, cuDF, CuPy tutorials
  • ai-accelerated-spark/ - RAG and AI examples
  • Performance comparisons and optimization techniques

๐Ÿค Contributing

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open Pull Request

๐Ÿ“„ License

This project is open source and available under the MIT License.


๐Ÿ™ Acknowledgments

  • ASU NVIDIA GPU Hackathon 2025
  • RAPIDS AI for GPU acceleration libraries
  • Ollama for local LLM deployment
  • NYC Open Data for parking violations dataset

๐Ÿ“ž Support


๐Ÿš€ Built with NVIDIA GPU acceleration for the ASU Hackathon 2025! โšก

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages