Skip to content

Instantly share code, notes, and snippets.

@hunzo
Created May 6, 2026 01:45
Show Gist options
  • Select an option

  • Save hunzo/5bf657e9a54a5c39cb4cce334188bfc3 to your computer and use it in GitHub Desktop.

Select an option

Save hunzo/5bf657e9a54a5c39cb4cce334188bfc3 to your computer and use it in GitHub Desktop.
llama.cpp example
services:
llama-cpp:
image: ghcr.io/ggml-org/llama.cpp:server-cuda
container_name: llama-cpp
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- ./models:/models
command:
- "-m"
- "/models/gemma-4-E2B-it-Q4_K_M.gguf"
- "-ngl"
- "99"
- "-c"
- "131072"
- "--host"
- "0.0.0.0"
runtime: nvidia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment