GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - renswickd/Docker-Model-Runner-LLM-App: A streamlined chat application that leverages Docker Model Runner to serve Large Language Models (LLMs) through a modern Streamlit interface. This project demonstrates containerized LLM deployment with a user-friendly web interface.

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
test-main.py
test-main.py
 
 

Repository files navigation

Docker Model Runner LLM App

Overview

A streamlined chat application that leverages Docker Model Runner to serve Large Language Models (LLMs) through a modern Streamlit interface. This project demonstrates containerized LLM deployment with a user-friendly web interface.

Features

  • šŸ¤– Modern chat interface with message history
  • āš”ļø Real-time LLM responses
  • šŸ”„ Clear chat functionality
  • šŸ›”ļø Error handling and loading states
  • 🐳 Containerized deployment
  • šŸ„ Health monitoring

Tech Stack

  • Frontend: Streamlit
  • Backend: Docker Model Runner
  • API: OpenAI-compatible endpoints
  • Containerization: Docker & Docker Compose
  • Language: Python 3.11
  • Key Dependencies: OpenAI SDK, python-dotenv

Project Structure

DMR/
ā”œā”€ā”€ app/
│   ā”œā”€ā”€ Dockerfile          # Frontend container configuration
│   ā”œā”€ā”€ main.py            # Streamlit chat interface
│   └── requirements.txt    # Python dependencies
ā”œā”€ā”€ docker-compose.yml     # Service orchestration
ā”œā”€ā”€ backend.env           # Environment configuration
└── README.md            # Project documentation

Setup

Prerequisites

  • Docker Desktop
  • Git

Quick Start

  1. Clone the repository

    git clone <repository-url>
    cd DMR
  2. Configure environment Create backend.env with:

    BASE_URL=http://host.docker.internal:12434/engines/llama.cpp/v1/
    API_KEY=your_api_key
    MODEL=your_model_name
    LLM_MODEL_NAME=ai/smollm2:latest
  3. Build and run

    docker compose up --build
  4. Access the application

    • Open http://localhost:8501
    • Start chatting!

Docker Configuration

Services

Frontend (Streamlit App)

  • Built from Python 3.11-slim
  • Exposes port 8501
  • Includes health checking
  • Dependencies managed via requirements.txt

LLM Service

  • Uses Docker Model Runner
  • Default model: ai/smollm2:latest
  • Configurable via environment variables

Networking

  • Isolated network for services
  • Bridge driver for container communication
  • Internal service discovery

Development

Local Setup

  1. Create virtual environment

    python -m venv venv
    source venv/bin/activate  # On Mac
  2. Install dependencies

    pip install -r app/requirements.txt
  3. Run locally

    streamlit run app/main.py

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

About

A streamlined chat application that leverages Docker Model Runner to serve Large Language Models (LLMs) through a modern Streamlit interface. This project demonstrates containerized LLM deployment with a user-friendly web interface.

Topics

containerizationdocker-composedocker-model-runnerllmopen-sourcestreamlit

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.