The tiny LLM inference server is a simplified implementation to host LLM models on-premise. It is designed for small scale inference deployments with max serving capacity for 1-5 users. Tiny llm inference server is based on a single Docker container that provides following key capabilities:
- llm Inference
- Ability to host multiple models on GPU
- Split model layers between GPU and host RAM
- Embedded Web UI for End User using Gradio
- REST APIs for integration with llm
- Support for quantized models
- Web Interface to allow interaction with llm
- Inference server configuration and setup
| Models | Model Type | CUDA |
|---|---|---|
| GPT-2 | gpt2 |
|
| GPT-J, GPT4All-J | gptj |
|
| GPT-NeoX, StableLM | gpt_neox |
|
| Falcon | falcon |
✅ |
| LLaMA, LLaMA 2 | llama |
✅ |
| Code LLaMA | llama |
✅ |
| MPT | mpt |
✅ |
| StarCoder, StarChat | gpt_bigcode |
✅ |
| Dolly V2 | dolly-v2 |
|
| Replit | replit |
- Linux server with single GPU and CUDA Support
- Docker
- Python 3.11
- Gradio for UI
- uvicorn and fastapi
version: "3.8"
services:
webtiny1:
build:
context: ./webserver
container_name: webtiny1
volumes:
- - /media/ms/DATA/models:/data
+ - <LOCAL FOLDER PATH>:/data
- /tmp:/tmp
environment:
- MODEL_INDEX=0
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
ports:
- "80:8000"
networks:
- tinynet
networks:
tinynet:
Once the changes have been made to the docker-compose.yml file to reflect your local environment. The containers can be build and deployed using below commands:
docker compose build
docker compose up -dGiven below is typical output upon successful running of tiny inference server

Also, below docker ps command can also be used to verify if tiny inference server is up and running
docker ps Gradio web UI to chat with llm is made accessible via
http://<HOST IP ADDRESS>/Given below is a screen shot of the Chat UI working with tiny llm server

