From 80820e43a4459835da1c4b41c114fbcb5d8149e7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 1 Nov 2024 10:17:36 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- FaqGen/docker_compose/amd/gpu/rocm/README.md | 10 +++++----- FaqGen/docker_compose/amd/gpu/rocm/compose.yaml | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/FaqGen/docker_compose/amd/gpu/rocm/README.md b/FaqGen/docker_compose/amd/gpu/rocm/README.md index d2b32215a0..f28ba9589d 100644 --- a/FaqGen/docker_compose/amd/gpu/rocm/README.md +++ b/FaqGen/docker_compose/amd/gpu/rocm/README.md @@ -22,7 +22,7 @@ export FAGGEN_UI_PORT=5173 Note: Please replace with `host_ip` with your external IP address, do not use localhost. -Note: In order to limit access to a subset of GPUs, please pass each device individually using one or more -device /dev/dri/renderD, where is the card index, starting from 128. (https://rocm.docs.amd.com/projects/install-on-linux/en/latest/how-to/docker.html#docker-restrict-gpus) +Note: In order to limit access to a subset of GPUs, please pass each device individually using one or more -device /dev/dri/rendered, where is the card index, starting from 128. (https://rocm.docs.amd.com/projects/install-on-linux/en/latest/how-to/docker.html#docker-restrict-gpus) Example for set isolation for 1 GPU @@ -87,12 +87,12 @@ Open this URL `http://{host_ip}:5173` in your browser to access the frontend. ## 🚀 Launch the React UI (Optional) -To access the FAQGen (react based) frontend, modify the UI service in the `compose.yaml` file. Replace `faqgen-xeon-ui-server` service with the `faqgen-xeon-react-ui-server` service as per the config below: +To access the FAQGen (react based) frontend, modify the UI service in the `compose.yaml` file. Replace `faqgen-rocm-ui-server` service with the `faqgen-rocm-react-ui-server` service as per the config below: ```bash - faqgen-xeon-react-ui-server: + faqgen-rocm-react-ui-server: image: opea/faqgen-react-ui:latest - container_name: faqgen-xeon-react-ui-server + container_name: faqgen-rocm-react-ui-server environment: - no_proxy=${no_proxy} - https_proxy=${https_proxy} @@ -100,7 +100,7 @@ To access the FAQGen (react based) frontend, modify the UI service in the `compo ports: - 5174:80 depends_on: - - faqgen-xeon-backend-server + - faqgen-rocm-backend-server ipc: host restart: always ``` diff --git a/FaqGen/docker_compose/amd/gpu/rocm/compose.yaml b/FaqGen/docker_compose/amd/gpu/rocm/compose.yaml index 329553d5a6..f60024e8a3 100644 --- a/FaqGen/docker_compose/amd/gpu/rocm/compose.yaml +++ b/FaqGen/docker_compose/amd/gpu/rocm/compose.yaml @@ -1,3 +1,6 @@ +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + services: faqgen-tgi-service: image: ghcr.io/huggingface/text-generation-inference:2.3.1-rocm