mirror of
https://github.com/runyanjake/olomana.git
synced 2026-11-12 06:44:52 -08:00
Add Llama.cpp general purpose server
This commit is contained in:
parent
020fd42208
commit
a619c3805f
5
ai/llama_cpp/README.md
Normal file
5
ai/llama_cpp/README.md
Normal 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`.
|
||||||
29
ai/llama_cpp/docker-compose.yml
Normal file
29
ai/llama_cpp/docker-compose.yml
Normal 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]
|
||||||
Loading…
x
Reference in New Issue
Block a user