-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (49 loc) · 1.27 KB
/
Copy pathdocker-compose.yml
File metadata and controls
51 lines (49 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
services:
# llama.cpp server for running LLM inference
# https://github.com/ggml-org/llama.cpp/pkgs/container/llama.cpp
llama-server:
# TODO: load the image tag from an environment variable or .env file
# https://docs.docker.com/compose/how-tos/environment-variables/variable-interpolation/
image: ghcr.io/ggml-org/llama.cpp:server-cuda-b9501
container_name: rag-chatbot-llama-server
volumes:
- ./models:/models
ports:
- "8080:8080"
environment:
- NVIDIA_VISIBLE_DEVICES=all
command: >
--models-dir /models
--host 0.0.0.0
--port 8080
--temp 0.6
--top-p 0.95
--top-k 20
--min-p 0.00
--kv-unified
--cache-type-k q8_0
--cache-type-v q8_0
--flash-attn on
--fit on
--ctx-size 4096
--chat-template-kwargs "{\"enable_thinking\": false}"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
networks:
- service-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
networks:
service-network:
driver: bridge
volumes:
models: