Compare commits
No commits in common. "3b41d813576f2542e7f4f2b602475b9ead111c23" and "1c11931298f93d7fa36bc95b7ee5e68741cbb1c4" have entirely different histories.
3b41d81357
...
1c11931298
6
.env
6
.env
|
@ -1,8 +1,6 @@
|
||||||
# https://github.com/ROCm/ROCm/issues/2625
|
# HF_TOKEN=
|
||||||
GPU_MAX_HW_QUEUES=1
|
PYTORCH_HIP_ALLOC_CONF=garbage_collection_threshold:0.9,max_split_size_mb:512
|
||||||
# https://github.com/ROCm/ROCm/issues/2788#issuecomment-1915765846
|
|
||||||
HSA_OVERRIDE_GFX_VERSION=11.0.0 # GFX1101/Navi32 (RX 7800XT)
|
HSA_OVERRIDE_GFX_VERSION=11.0.0 # GFX1101/Navi32 (RX 7800XT)
|
||||||
# PYTORCH_HIP_ALLOC_CONF=garbage_collection_threshold:0.9,max_split_size_mb:512
|
|
||||||
|
|
||||||
#=============================================================#
|
#=============================================================#
|
||||||
# LibreChat Configuration #
|
# LibreChat Configuration #
|
||||||
|
|
|
@ -14,7 +14,7 @@ A quick prototype to self-host [LibreChat](https://github.com/danny-avila/LibreC
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
|
|
||||||
* Linux (WSL2 is untested)
|
* Linux (WSL2 untested)
|
||||||
* An AMD 7xxx series GPU (technically optional, Ollama will fallback to using the CPU but it will be very slow. Other GPUS are supported but the deployment must be modified to use them)
|
* An AMD 7xxx series GPU (technically optional, Ollama will fallback to using the CPU but it will be very slow. Other GPUS are supported but the deployment must be modified to use them)
|
||||||
* docker
|
* docker
|
||||||
* docker-compose
|
* docker-compose
|
||||||
|
@ -81,7 +81,7 @@ becomes:
|
||||||
|
|
||||||
## Architecture components
|
## Architecture components
|
||||||
|
|
||||||
* [LibreChat](https://github.com/danny-avila/LibreChat) is a ChatGPT clone with support for multiple AI endpoints. It's deployed alongside a [MongoDB](https://github.com/mongodb/mongo) database and [Meillisearch](https://github.com/meilisearch/meilisearch) for search. It's exposed on http://localhost:3080/.
|
* [LibreChat](https://github.com/danny-avila/LibreChat) is a ChatGPT clone with support. It is deployed alongside a [MongoDB](https://github.com/mongodb/mongo) database and [Meillisearch](https://github.com/meilisearch/meilisearch) for search. It is exposed on http://localhost:3080/.
|
||||||
* [LiteLLM](https://github.com/BerriAI/litellm) is an OpenAI-like API. It is exposed on http://localhost:8000/ without any authentication by default.
|
* [LiteLLM](https://github.com/BerriAI/litellm) is an OpenAI-like API. It is exposed on http://localhost:8000/ without any authentication by default.
|
||||||
* [Ollama](https://github.com/ollama/ollama) manages and serve the local models.
|
* [Ollama](https://github.com/ollama/ollama) manages and serve the local models.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
# Begin Ollama service
|
|
||||||
ollama:
|
ollama:
|
||||||
image: ollama/ollama:0.1.22-rocm
|
image: ollama/ollama:0.1.22-rocm
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -10,7 +9,6 @@ services:
|
||||||
- .env
|
- .env
|
||||||
ports:
|
ports:
|
||||||
- 11434:11434
|
- 11434:11434
|
||||||
# begin for AMD GPU support
|
|
||||||
devices:
|
devices:
|
||||||
- /dev/kfd
|
- /dev/kfd
|
||||||
- /dev/dri
|
- /dev/dri
|
||||||
|
@ -21,12 +19,10 @@ services:
|
||||||
- SYS_PTRACE
|
- SYS_PTRACE
|
||||||
security_opt:
|
security_opt:
|
||||||
- seccomp=unconfined
|
- seccomp=unconfined
|
||||||
# end of section for AMD GPU support
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./ollama/bootstrap.sh:/bootstrap.sh:ro
|
- ./ollama/bootstrap.sh:/bootstrap.sh:ro
|
||||||
- ollama:/root/.ollama
|
- ollama:/root/.ollama
|
||||||
|
|
||||||
# Begin LiteLLM service
|
|
||||||
litellm:
|
litellm:
|
||||||
image: ghcr.io/berriai/litellm:main-latest
|
image: ghcr.io/berriai/litellm:main-latest
|
||||||
command: --config /config.yaml
|
command: --config /config.yaml
|
||||||
|
@ -35,7 +31,6 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./litellm/config.yaml:/config.yaml:ro
|
- ./litellm/config.yaml:/config.yaml:ro
|
||||||
|
|
||||||
# Begin LibreChat
|
|
||||||
librechat:
|
librechat:
|
||||||
image: ghcr.io/danny-avila/librechat
|
image: ghcr.io/danny-avila/librechat
|
||||||
ports:
|
ports:
|
||||||
|
|
Reference in New Issue