Prerequisites

Generate Self-Signed SSL Certificate

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout nginx-selfsigned.key -out nginx-selfsigned.crt

Clone chat ui

git clone https://github.com/huggingface/chat-ui.git
cd ./chat-ui
git checkout e0c0b0e53fd3d9452c3adae82de39d15c9476a1b 

Run the configuration script to update svelte.config.js and crate a .env.local file

./config_chat_ui.sh

Usage

  1. Run start.sh script to launch llama.cpp server

    ./start.sh
  2. Start UI frontend services, and open https://localhost/chat in your browser.

    docker-compose up --build