.env.example 1.2 KB

12345678910111213141516171819202122232425
  1. # by default the Dockerfile specifies these versions: 3.5;5.0;6.0;6.1;7.0;7.5;8.0;8.6+PTX
  2. # however for me to work i had to specify the exact version for my card ( 2060 ) it was 7.5
  3. # https://developer.nvidia.com/cuda-gpus you can find the version for your card here
  4. TORCH_CUDA_ARCH_LIST=7.5
  5. # these commands worked for me with roughly 4.5GB of vram
  6. CLI_ARGS=--model llama-7b-4bit --wbits 4 --listen --auto-devices
  7. # the following examples have been tested with the files linked in docs/README_docker.md:
  8. # example running 13b with 4bit/128 groupsize : CLI_ARGS=--model llama-13b-4bit-128g --wbits 4 --listen --groupsize 128 --pre_layer 25
  9. # example with loading api extension and public share: CLI_ARGS=--model llama-7b-4bit --wbits 4 --listen --auto-devices --no-stream --extensions api --share
  10. # example running 7b with 8bit groupsize : CLI_ARGS=--model llama-7b --load-in-8bit --listen --auto-devices
  11. # the port the webui binds to on the host
  12. HOST_PORT=7860
  13. # the port the webui binds to inside the container
  14. CONTAINER_PORT=7860
  15. # the port the api binds to on the host
  16. HOST_API_PORT=5000
  17. # the port the api binds to inside the container
  18. CONTAINER_API_PORT=5000
  19. # the version used to install text-generation-webui from
  20. WEBUI_VERSION=HEAD