Maybe Fixed GPU?
This commit is contained in:
@@ -23,31 +23,34 @@ task "ollama" {
|
||||
OLLAMA_HOST = "0.0.0.0"
|
||||
OLLAMA_ORIGINS = "*"
|
||||
|
||||
# Unlock the 6900XT (Navi 21) for ROCm
|
||||
# 1. The Magic Key for the 6900XT
|
||||
HSA_OVERRIDE_GFX_VERSION = "10.3.0"
|
||||
|
||||
# Debugging enabled so we can confirm it worked
|
||||
# 2. Enable Debugging
|
||||
OLLAMA_DEBUG = "1"
|
||||
|
||||
# 3. CRITICAL: Remove any ROCR_VISIBLE_DEVICES variable here!
|
||||
# Let Ollama see all cards and pick the one that works.
|
||||
}
|
||||
|
||||
config {
|
||||
image = "docker.io/ollama/ollama:latest"
|
||||
ports = ["api"]
|
||||
|
||||
# Required to talk to hardware
|
||||
privileged = true
|
||||
|
||||
# --- THE FIX: STRICT MAPPING ---
|
||||
# Only map the eGPU (renderD128) and the Compute interface (kfd)
|
||||
devices = [
|
||||
"/dev/kfd",
|
||||
"/dev/dri/renderD128"
|
||||
]
|
||||
# --- THE FIX ---
|
||||
# 1. Map /dev/kfd (Compute Interface)
|
||||
devices = ["/dev/kfd"]
|
||||
|
||||
# Do NOT map the whole /dev/dri folder, or it might peek at the others
|
||||
# 2. Map the ENTIRE graphics folder as a Volume
|
||||
# This ensures the driver sees card0, card1, renderD128, etc.
|
||||
volumes = [
|
||||
"/mnt/local-ssd/nomad/stacks/ai/ai-backend/ollama:/root/.ollama"
|
||||
"/mnt/local-ssd/nomad/stacks/ai/ai-backend/ollama:/root/.ollama",
|
||||
"/dev/dri:/dev/dri"
|
||||
]
|
||||
}
|
||||
service {
|
||||
} service {
|
||||
name = "ollama"
|
||||
port = "api"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user