opea-project / GenAIExamples

Generative AI Examples is a collection of GenAI examples such as ChatQnA, Copilot, which illustrate the pipeline capabilities of the Open Platform for Enterprise AI (OPEA) project.
https://opea.dev
Apache License 2.0
276 stars 192 forks source link

[Bug] OPEA docker container and habana runtime issue #1164

Open anatu-git opened 1 day ago

anatu-git commented 1 day ago

Priority

P3-Medium

OS type

Ubuntu

Hardware type

Xeon-ICX

Installation method

Deploy method

Running nodes

Single Node

What's the version?

commit ID: 179fd843629952315e1968789f52764876e7f22d https://github.com/opea-project/GenAIExamples/tree/main/ChatQnA/docker_compose/intel/hpu/gaudi

Description

docker compose up -d

[+] Running 0/4
 ⠋ Container tei-reranking-gaudi-server  Creating                                                                                                                                                        0.1s
 ⠋ Container tei-embedding-gaudi-server  Creating                                                                                                                                                        0.1s
 ⠋ Container tgi-gaudi-server            Creating                                                                                                                                                        0.1s
 ⠋ Container redis-vector-db             Creating                                                                                                                                                        0.1s
Error response from daemon: unknown or invalid runtime name: habana

### Reproduce steps

Steps to reproduce can be found here: [Link](https://github.com/opea-project/GenAIExamples/tree/main/ChatQnA/docker_compose/intel/hpu/gaudi)

- export variables

export host_ip="External_Public_IP" export HUGGINGFACEHUB_API_TOKEN="Your_Huggingface_API_Token"

export host_ip="External_Public_IP" export HUGGINGFACEHUB_API_TOKEN="Your_Huggingface_API_Token"

export http_proxy="Your_HTTP_Proxy" export https_proxy="Your_HTTPs_Proxy"

Example: no_proxy="localhost, 127.0.0.1, 192.168.1.1"

export no_proxy="Your_No_Proxy",chatqna-gaudi-ui-server,chatqna-gaudi-backend-server,dataprep-redis-service,tei-embedding-service,retriever,tei-reranking-service,tgi-service,vllm_service,guardrails


- source environment file

source ./set_env.sh


- Run docker compose

docker compose up -d


### Raw log

```shell
N/A
wangkl2 commented 1 day ago

@anatu-git Could you please first try to create and run the base docker for gaudi? Note: modify the docker image properly based on your OS version. docker run -it --runtime=habana -e HABANA_VISIBLE_DEVICES=all -e OMPI_MCA_btl_vader_single_copy_mechanism=none --cap-add=sys_nice --net=host --ipc=host vault.habana.ai/gaudi-docker/1.18.0/ubuntu22.04/habanalabs/pytorch-installer-2.4.0:latest hl-smi