From 79fdbc5f0ed87ddbcbe584f5dafad45abdfff8ba Mon Sep 17 00:00:00 2001 From: Disty0 Date: Wed, 12 Feb 2025 14:25:45 +0300 Subject: [PATCH] Updated AMD ROCm (markdown) --- AMD-ROCm.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/AMD-ROCm.md b/AMD-ROCm.md index f3cea46..ee9652c 100644 --- a/AMD-ROCm.md +++ b/AMD-ROCm.md @@ -16,6 +16,29 @@ sudo usermod -a -G render,video $LOGNAME Simply change the wget line from "noble" to "jammy" if using Ubuntu 22.04. +## Docker Installation +Checkout the [Docker wiki](https://github.com/vladmandic/sdnext/wiki/Docker) if you want to build a custom Docker image. + +Using Docker with a prebuilt image: + +``` +export SDNEXT_DOCKER_ROOT_FOLDER=~/sdnext +sudo docker run -it \ + --name sdnext-rocm \ + --device /dev/dri \ + --device /dev/kfd \ + -p 7860:7860 \ + -v $SDNEXT_DOCKER_ROOT_FOLDER/app:/app \ + -v $SDNEXT_DOCKER_ROOT_FOLDER/python:/mnt/python \ + -v $SDNEXT_DOCKER_ROOT_FOLDER/data:/mnt/data \ + -v $SDNEXT_DOCKER_ROOT_FOLDER/models:/mnt/models \ + -v $SDNEXT_DOCKER_ROOT_FOLDER/huggingface:/root/.cache/huggingface \ + disty0/sdnext-rocm:latest +``` + +> [!NOTE] +> It will install the necessary libraries at the first run so it will take a while depending on your internet. + ## ROCm Windows Support This is a guide to build rocBLAS based on the ROCm Official Documentations.