From 2588cb2daa8d3260a7196c2612182b0b3f4c537b Mon Sep 17 00:00:00 2001 From: Daniel Hiltgen Date: Wed, 3 Jan 2024 12:55:54 -0800 Subject: [PATCH] Add ollama user to render group for Radeon support For the ROCm libraries to access the driver, we need to add the ollama user to the render group. --- scripts/install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index 30004584..084b8ac9 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -76,6 +76,10 @@ configure_systemd() { status "Creating ollama user..." $SUDO useradd -r -s /bin/false -m -d /usr/share/ollama ollama fi + if getent group render >/dev/null 2>&1; then + status "Adding ollama user to render group..." + $SUDO usermod -a -G render ollama + fi status "Adding current user to ollama group..." $SUDO usermod -a -G ollama $(whoami)