| --- |
| title: SynapseOS |
| emoji: 𧬠|
| colorFrom: indigo |
| colorTo: purple |
| sdk: gradio |
| sdk_version: 6.14.0 |
| app_file: app.py |
| pinned: true |
| license: mit |
| --- |
| |
| # 𧬠SynapseOS β AI Agent Civilization |
|
|
| > **5 Expert AI Agents that Think, Debate, and Decide β Powered by AMD MI300X GPU** |
|
|
| [](https://www.amd.com/en/developer/resources/rocm-hub.html) |
| [](https://huggingface.co/spaces/lablab-ai-amd-developer-hackathon/synapseos) |
| [](https://gradio.app) |
| [](https://python.org) |
| [](LICENSE) |
|
|
| --- |
|
|
| ## π― What is SynapseOS? |
|
|
| **SynapseOS** is a multi-agent AI debate system where **5 specialized AI agents** independently analyze any business idea or problem β each bringing a distinct professional perspective β and collectively arrive at a **GO / CONDITIONAL GO / NO-GO** decision. |
|
|
| Built for the **AMD Developer Hackathon 2026**, SynapseOS runs **Qwen2.5-0.5B-Instruct** via **vLLM** on **AMD MI300X GPU** infrastructure, delivering fast, structured, and intelligent multi-agent reasoning. |
|
|
| > Think of it as assembling a full expert boardroom β a Project Manager, Senior Developer, Devil's Advocate, Financial Analyst, and Security Expert β all debating your idea simultaneously in seconds. |
|
|
| --- |
|
|
| ## π₯οΈ Live Demo |
|
|
| <!-- SCREENSHOT PLACEHOLDER β Add after deployment --> |
| <!--  --> |
|
|
| **π Space URL:** [https://huggingface.co/spaces/lablab-ai-amd-developer-hackathon/synapseos](https://huggingface.co/spaces/lablab-ai-amd-developer-hackathon/synapseos) |
|
|
| --- |
|
|
| ## π€ The 5 Expert Agents |
|
|
| | # | Agent | Role | What It Delivers | |
| |---|-------|------|-----------------| |
| | 1 | π§ **PM Agent** | Project Manager | Phases, timeline, milestones, GO/NO-GO | |
| | 2 | π» **Developer Agent** | Senior Developer | Tech stack, architecture, scalability | |
| | 3 | π **Critic Agent** | Devil's Advocate | Risks, flaws, failure scenarios | |
| | 4 | π° **Finance Agent** | Financial Analyst | Costs, revenue model, break-even | |
| | 5 | π **Security Agent** | Security Expert | Vulnerabilities, GDPR, auth strategy | |
|
|
| Each agent receives the **same idea** but analyzes it through its own professional lens β producing **150+ word** structured responses independently. |
|
|
| --- |
|
|
| ## β¨ Key Features |
|
|
| - **β‘ AMD MI300X Powered** β vLLM inference server running on AMD GPU hardware |
| - **π€ 5 Parallel AI Agents** β Each agent calls the model independently with unique system prompts |
| - **π Structured Analysis** β Every agent delivers 5-point detailed breakdown |
| - **π― Final GO/NO-GO Decision** β PM Agent synthesizes all perspectives into a verdict |
| - **π Voice Summary** β Full English text-to-speech audio summary via gTTS |
| - **π§ Session Memory** β Tracks and displays all ideas analyzed in the session |
| - **π Public Share Link** β Instantly shareable Gradio link |
|
|
| --- |
|
|
| ## ποΈ Architecture |
|
|
| ``` |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
| β USER INPUT (Idea) β |
| βββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββ |
| β |
| βΌ |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
| β SynapseOS Orchestrator (app.py) β |
| β Gradio UI Interface β |
| ββββ¬βββββββ¬βββββββ¬βββββββ¬βββββββ¬βββββββββββββββββββββββββββ |
| β β β β β |
| βΌ βΌ βΌ βΌ βΌ |
| PM Dev Critic Finance Security |
| Agent Agent Agent Agent Agent |
| β β β β β |
| ββββββββ΄βββββββ΄βββββββ΄βββββββ |
| β |
| βΌ |
| ββββββββββββββββββββββββββββββββ |
| β vLLM OpenAI-Compatible β |
| β API Server (Port 8000) β |
| β AMD MI300X GPU Instance β |
| ββββββββββββββββ¬ββββββββββββββββ |
| β |
| βΌ |
| ββββββββββββββββββββββββββββββββ |
| β Qwen2.5-0.5B-Instruct β |
| β Running on ROCm / AMD GPU β |
| ββββββββββββββββββββββββββββββββ |
| β |
| βΌ |
| ββββββββββββββββββββββββββββββββ |
| β Final Decision + Voice β |
| β Summary (gTTS) β |
| ββββββββββββββββββββββββββββββββ |
| ``` |
|
|
| --- |
|
|
| ## π οΈ Tech Stack |
|
|
| | Layer | Technology | Purpose | |
| |-------|-----------|---------| |
| | **GPU Compute** | AMD MI300X | High-performance AI inference | |
| | **ML Framework** | ROCm + vLLM | OpenAI-compatible inference server | |
| | **AI Model** | Qwen2.5-0.5B-Instruct | Fast, efficient language model | |
| | **UI Framework** | Gradio 4.44 | Web interface | |
| | **API Client** | OpenAI Python SDK | vLLM API communication | |
| | **Voice** | gTTS | Text-to-speech summary | |
| | **Hosting** | HuggingFace Spaces | Public deployment | |
|
|
| --- |
|
|
| ## π Local Setup |
|
|
| ### Prerequisites |
| - Python 3.11+ |
| - HuggingFace account + API token |
| - AMD GPU with ROCm (for local vLLM) **or** AMD Developer Cloud access |
|
|
| ### 1. Clone Repository |
| ```bash |
| git clone https://github.com/exedistrict-ux/synapseos.git |
| cd synapseos |
| ``` |
|
|
| ### 2. Create Virtual Environment |
| ```bash |
| python -m venv .venv |
| |
| # Windows |
| .venv\Scripts\activate |
| |
| # Linux/Mac |
| source .venv/bin/activate |
| ``` |
|
|
| ### 3. Install Dependencies |
| ```bash |
| pip install -r requirements.txt |
| ``` |
|
|
| ### 4. Configure Environment |
| Create `.env` file: |
| ```env |
| HF_TOKEN=hf_your_token_here |
| VLLM_BASE_URL=http://your_amd_gpu_ip:8000/v1 |
| MODEL_NAME=Qwen/Qwen2.5-0.5B-Instruct |
| ``` |
|
|
| ### 5. Start AMD vLLM Server (on AMD GPU instance) |
| ```bash |
| pip install vllm |
| python -m vllm.entrypoints.openai.api_server \ |
| --model Qwen/Qwen2.5-0.5B-Instruct \ |
| --gpu-memory-utilization 0.3 \ |
| --max-model-len 2048 \ |
| --port 8000 |
| ``` |
|
|
| ### 6. Run SynapseOS |
| ```bash |
| python app.py |
| ``` |
|
|
| Open: `http://127.0.0.1:7860` |
|
|
| --- |
|
|
| ## π§ͺ Running Tests |
|
|
| ```bash |
| python test.py |
| ``` |
|
|
| Expected output: |
| ``` |
| ============================================================ |
| SynapseOS β Test Suite |
| AMD Developer Hackathon 2026 |
| ============================================================ |
|
|
| [PASS] Environment Variables (.env) |
| [PASS] Python Imports |
| [PASS] HuggingFace InferenceClient |
| [PASS] PM Agent API Response |
| [PASS] All 5 Agents API Response |
| [PASS] Text-to-Speech (gTTS) |
| [PASS] Memory System |
| [PASS] Gradio UI Components |
|
|
| ============================================================ |
| Results: 8/8 tests passed |
| All tests passed! SynapseOS is ready. |
| ============================================================ |
| ``` |
| |
| --- |
| |
| ## π Project Structure |
| |
| ``` |
| synapseos/ |
| βββ app.py # Main application β 5 agents + Gradio UI |
| βββ test.py # Full test suite |
| βββ requirements.txt # Python dependencies |
| βββ .env.example # Environment variable template |
| βββ .gitignore # Git ignore rules |
| βββ README.md # This file |
| ``` |
| |
| --- |
| |
| ## π‘ Example Output |
| |
| **Input Idea:** *"Build a scam protection app for senior citizens in India"* |
| |
| ``` |
| PM Agent β GO β
β 3 phases, 6 month timeline, team of 4 |
| Developer Agent β React Native + FastAPI + PostgreSQL + AWS |
| Critic Agent β Market saturation risk, digital literacy gap |
| Finance Agent β $45K dev cost, break-even at 800 users |
| Security Agent β OWASP compliance, biometric auth required |
|
|
| Final Decision: CONDITIONAL GO π‘ |
| Action: Survey 100 seniors β Build MVP β Partner with NGOs |
| Biggest Risk: Low smartphone adoption in target demographic |
| ``` |
| |
| --- |
| |
| ## π AMD Developer Hackathon 2026 |
| |
| **Event:** AMD Developer Hackathon β lablab.ai |
| **Dates:** May 4β10, 2026 |
| **Prize Pool:** $21,500+ + AMD Radeon AI PRO R9700 GPU |
| **Track:** AI Agents & Intelligent Workflows |
| **Team:** Gaurang_Solo |
| |
| ### Why AMD? |
| - AMD MI300X delivers **192GB HBM3 memory** β ideal for LLM inference |
| - **ROCm** open-source stack enables flexible model deployment |
| - **vLLM on ROCm** provides OpenAI-compatible API with AMD GPU acceleration |
| - $100 AMD Developer Cloud credits enabled rapid prototyping |
| |
| --- |
| |
| ## π License |
| |
| MIT License β see [LICENSE](LICENSE) for details. |
| |
| --- |
| |
| ## π Acknowledgements |
| |
| - [AMD Developer Cloud](https://www.amd.com/en/developer) β GPU infrastructure |
| - [vLLM](https://github.com/vllm-project/vllm) β High-throughput LLM serving |
| - [Qwen Team](https://huggingface.co/Qwen) β Qwen2.5 model family |
| - [Gradio](https://gradio.app) β UI framework |
| - [lablab.ai](https://lablab.ai) β Hackathon platform |
| |
| --- |
| |
| *Built with β€οΈ on AMD MI300X Β· ROCm Β· vLLM Β· Gradio* |