Chris Weaver c0e1a02e8e
Add it on merge queue (#2112)
* Github action to run integration tests

* Improve

* Fix build

* Add pull

* Fix readiness script

* Add IT runner

* Add IT runner

* Add logs

* update

* Fix

* Fix path

* file path

* test

* fix

* fix

* fix

* test

* network

* fix

* cleanup

* fix

* test

* Fix downgrade

* Add OpenAI API key

* Add VESPA_HOST

* test pulling first

* Add API server host

* Cache tweak

* Fix pull/push settings:

* Stop pushing to latest tag

* test cache change

* test

* test

* test

* remove cache temporarily

* Fix

* Enable EE

* test

* Remove duplicate funcs

* add back build

* Update all

* Fix stop cmd

* Add to merge queue

* Cleanup image tag
2024-08-26 07:20:28 +00:00
..

Deploying Danswer using Docker Compose

For general information, please read the instructions in this README.

Deploy in a system without GPU support

This part is elaborated precisely in in this README in section Docker Compose. If you have any questions, please feel free to open an issue or get in touch in slack for support.

Deploy in a system with GPU support

Running Model servers with GPU support while indexing and querying can result in significant improvements in performance. This is highly recommended if you have access to resources. Currently, Danswer offloads embedding model and tokenizers to the GPU VRAM and the size needed depends on chosen embedding model. For example, the embedding model nomic-ai/nomic-embed-text-v1 takes up about 1GB of VRAM. That means running this model for inference and embedding pipeline would require roughly 2GB of VRAM.

Setup

To be able to use NVIDIA runtime, following is mandatory:

  • proper setup of NVIDIA driver in host system.
  • installation of nvidia-container-toolkit for passing GPU runtime to containers

You will find elaborate steps here:

Installation of NVIDIA Drivers

Visit the official NVIDIA drivers page to download and install the proper drivers. Reboot your system once you have done so.

Alternatively, you can choose to install the driver versions via package managers of your choice in UNIX based systems.

Installation of nvidia-container-toolkit

For GPUs to be accessible to containers, you will need the container toolkit. Please follow these instructions to install the necessary runtime based on your requirement.

Launching with GPU

  1. To run Danswer with GPU, navigate to docker_compose directory and run the following:

    • docker compose -f docker-compose.gpu-dev.yml -p danswer-stack up -d --pull always --force-recreate
      • or run: docker compose -f docker-compose.gpu-dev.yml -p danswer-stack up -d --build --force-recreate to build from source
    • Downloading images or packages/requirements may take 15+ minutes depending on your internet connection.
  2. To shut down the deployment, run:

    • To stop the containers: docker compose -f docker-compose.gpu-dev.yml -p danswer-stack stop
    • To delete the containers: docker compose -f docker-compose.gpu-dev.yml -p danswer-stack down