16 lines
568 B
Bash
Executable File
16 lines
568 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
source "$(dirname "${BASH_SOURCE[0]}")/../../lib/logging.sh"
|
|
|
|
# GPU variants: install ollama-cuda (AUR) for NVIDIA or ollama-rocm (AUR) for AMD.
|
|
# The base package runs on CPU and auto-uses GPU libs if present at runtime.
|
|
log "Installing Ollama..."
|
|
sudo pacman -S --noconfirm --needed ollama
|
|
|
|
log "Enabling Ollama service..."
|
|
sudo systemctl enable --now ollama.service
|
|
|
|
log "Ollama running on http://localhost:11434"
|
|
log "Pull models with: ollama pull <model>"
|
|
warn "If llama.cpp is also installed, avoid running both GPU-bound at once."
|