13 lines
455 B
Bash
Executable File
13 lines
455 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
# 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.
|
|
sudo pacman -S --noconfirm --needed ollama
|
|
|
|
sudo systemctl enable --now ollama.service
|
|
|
|
echo "Ollama running on http://localhost:11434"
|
|
echo "Pull models with: ollama pull <model>"
|
|
echo "Note: if llama.cpp is also installed, avoid running both GPU-bound at once."
|