Skip to content

aigzoppi/llm-edge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YOLO + LLM-Edge (BitNet) Project

🚀 An edge AI project that combines real-time object detection with on-device large language model reasoning.
This system uses:

  • YOLO for object detection
  • llm-edge for efficient LLM inference on constrained devices
  • BitNet as the LLM backend for energy-efficient, fast inference at the edge
  • uv package manager for reproducible environments and dependency management

🔥 Features

  • Real-time object detection with YOLO
  • On-device reasoning with BitNet LLM (no cloud required)
  • Optimized for edge deployment (Raspberry Pi, Jetson, ARM SBCs)
  • Lightweight and reproducible environment with uv
  • Modular design → swap YOLO model or LLM backend easily

📦 Installation

Make sure you have uv installed:

curl -LsSf https://astral.sh/uv/install.sh | sh

Install the deps and set virtual enviroment.

cd llm-edge
uv sync

##🏃 Usage

Run YOLO detection + LLM reasoning pipeline:

uv run python main.py --source 0 --model yolov8n.pt --llm bitnet

🧠 Example Workflow

YOLO detects objects in a frame

Detected labels + bounding boxes are passed to the LLM

BitNet LLM generates reasoning or contextual descriptions (e.g., "I see a person holding a red cup")

Output is displayed or published via MQTT/REST for downstream use

📊 Performance

  • Runs on-device without internet
  • Lower memory footprint thanks to BitNet compression
  • Fast enough for real-time use on edge hardware

Roadmap

  • Add support for other quantized LLMs and VS Code devcontainers for easy development setup.

🛠️ Using VS Code Devcontainers (For Non-Engineers)

If you are not familiar with Python or development environments, you can use Visual Studio Code and its Dev Containers feature to get started quickly:

  1. Install VS Code:
    Download and install VS Code.

  2. Install Dev Containers Extension:
    Open VS Code, go to Extensions (Ctrl+Shift+X), and search for "Dev Containers". Install the official extension.

  3. Open the Project in a Dev Container:

    • Clone this repository to your computer.
    • Open the project folder in VS Code.
    • When prompted, click "Reopen in Container" (or use the Command Palette: Ctrl+Shift+P → "Dev Containers: Reopen in Container").

VS Code will automatically set up the development environment for you, so you don't need to install Python or dependencies manually.images for Jetson devices

  • Add voice input/output integration
  • B+enchmark on Raspberry Pi 5 + NVIDIA Jetson Orin Nano

About

LLM at the edge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors