Skip to content

cpich3g/bitChat

Repository files navigation

🦾 bitChat: BitNet Demo Chat App

Welcome to bitChat — your friendly, minimal, and modern AI chat demo powered by Microsoft Research’s BitNet! This project is a real-life implementation of the BitNet paper, showing off how you can chat with a cutting-edge 1-bit Transformer model in a ChatGPT-style UI. 🚀


✨ Features

  • 🧑‍💻 Minimal, modern chat UI (React + Vite)
  • 🤖 Real-time chat with BitNet (Microsoft Research)
  • ⚡ FastAPI backend for model inference
  • 🤝 Hugging Face Transformers integration
  • 🐳 Dockerized for easy deployment (Azure-ready!)
  • 🧩 Model selection UI (extensible)

🚀 Quick Start

Prerequisites

  • 🐳 Docker
  • 🟢 Node.js (for local frontend dev)
  • 🐍 Python 3.11+ (for local backend dev)

Local Development

  1. Clone the repo:
    git clone https://github.com/your-org/bitChat.git
    cd bitChat
  2. Frontend:
    cd frontend
    npm install
    npm run dev
  3. Backend:
    pip install -r requirements.txt
    uvicorn main:app --reload
  4. Open http://localhost:5173 and start chatting!

Docker Build & Run

docker build -t bitchat:latest .
docker run -p 8000:8000 bitchat:latest

Azure Container Apps

  • Build and push the image to Azure Container Registry
  • Deploy using Azure Portal or CLI

🧠 Model & Paper


🗂️ Project Structure

bitChat/
├── Dockerfile
├── main.py           # FastAPI backend
├── inference.py      # Model inference logic
├── requirements.txt
├── frontend/         # React + Vite frontend
└── static/           # Built frontend assets (served by backend)

📄 License

This project is MIT licensed. See LICENSE for details.


💙 Credits


🧪 This is a demo project for research and educational fun. Not production-ready!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published