Serge is a chat interface designed to simplify the use of LLaMA models, built on llama.cpp, fully self-hosted, and requiring no API keys.
Purpose
Serge is designed to make it easy for users to run and converse with LLM models such as Alpaca locally. It provides a web interface, suitable for users who want to self-host a chat service, value privacy, or need offline use.
Main capabilities
- Provides a chat interface that supports interaction with models such as Alpaca.
- Fully Dockerized for easy deployment.
- Provides an easy-to-use API.
- Uses Redis to store chat history and parameters.
- The backend uses FastAPI + LangChain, calling llama.cpp through Python bindings.
- The frontend is built with SvelteKit.
Usage
- Make sure Docker Desktop is installed, WSL2 is configured, and there is enough memory to run the model.
- Use Docker Compose to start the service.
- Visit http://localhost:8008 to use the chat interface.
- API documentation is located at http://localhost:8008/api/docs。
- It can be configured through environment variables.
- Running in development mode: the solution will accept a Python debugger session on port 5678, and an example launch.json for VSCode is provided.
Applicable scenarios
- Running an LLM chat service locally or on a private server.
- A chat application that requires no API keys and is fully self-hosted.
- Developers integrating or testing LLM models.
Limitations
- Sufficient memory is required, otherwise LLaMA will crash.
- The specific list of supported models, details of environment variables, development mode commands, etc. are not fully explained in the provided materials; please refer to the official repository.
- The project is free and open source, using the MIT and Apache-2.0 licenses.