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
232 stars 150 forks source link

Update docker compose to fix issues with downloads hanging or failing #278

Closed wsfowler closed 3 months ago

wsfowler commented 3 months ago

Description

We were running into issues using the ChatQnA example in various environments. After troubleshooting and researching, came across this issue. Added the environment variables below to the docker_compose.yaml

      HF_HUB_DISABLE_PROGRESS_BARS: 1
      HF_HUB_ENABLE_HF_TRANSFER: 0

This resolved the issues with downloads failing or hanging. This same change may need to be made to the Docker Compose files for the other examples.

Issues

216

Type of change

List the type of change like below. Please delete options that are not relevant.

Dependencies

None

Tests

Used the test script ChatQnA/tests/test_chatqna_on_gaudi.sh