Add Llama.cpp general purpose server

This commit is contained in:
whitney 2026-10-23 10:23:17 -07:00
parent 020fd42208
commit a619c3805f
2 changed files with 34 additions and 0 deletions

5
ai/llama_cpp/README.md Normal file
View File

@ -0,0 +1,5 @@
# Llama.cpp
A general purpose llm server that projects can connect to.
## Network
Create the `ai` docker network, applications can access the OpenAI spec server through `http://llm-server:8080/v1`.

View File

@ -0,0 +1,29 @@
version: "3.8"
networks:
ai:
external: true
services:
llm-server:
image: ghcr.io/ggml-org/llama.cpp:server-cuda
container_name: llm-server
restart: unless-stopped
networks:
- ai
volumes:
- /pwspool/software/ai/llama_cpp:/models
command: >
-m /models/Llama-3.1-8B-Instruct-Q4_K_M.gguf
--host 0.0.0.0
--port 8080
-ngl 999
-c 4096
--threads 6
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]