-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from noco-ai/v0.2.0
V0.2.0
- Loading branch information
Showing
11 changed files
with
274 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
GOLEM_VAULT_HOST=http://10.23.82.2:8200 | ||
GOLEM_AMQP_HOST=10.23.82.4 | ||
GOLEM_ID=golem1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
version: "3.8" | ||
|
||
services: | ||
vault: | ||
build: | ||
dockerfile: vault/Dockerfile | ||
container_name: spellbook_vault | ||
ports: | ||
- "8200:8200" | ||
environment: | ||
VAULT_ADDR: http://0.0.0.0:8200 | ||
volumes: | ||
- vault_share:/vault_share | ||
cap_add: | ||
- IPC_LOCK | ||
networks: | ||
spellbook-net: | ||
ipv4_address: 10.23.82.2 | ||
|
||
mariadb: | ||
build: | ||
dockerfile: mariadb/Dockerfile | ||
container_name: spellbook_mariadb | ||
environment: | ||
MARIADB_ROOT_PASSWORD: "spellBOOK.temp.321" | ||
MARIADB_DATABASE: "spellbook" | ||
volumes: | ||
- vault_share:/vault_share | ||
ports: | ||
- "3306:3306" | ||
depends_on: | ||
- vault | ||
networks: | ||
spellbook-net: | ||
ipv4_address: 10.23.82.3 | ||
|
||
spellbook_ui: | ||
build: | ||
dockerfile: spellbook/Dockerfile | ||
container_name: spellbook_ui | ||
volumes: | ||
- vault_share:/vault_share | ||
ports: | ||
- "4200:4200" | ||
depends_on: | ||
- vault | ||
- mariadb | ||
- rabbitmq | ||
networks: | ||
spellbook-net: | ||
ipv4_address: 10.23.82.6 | ||
|
||
arcane_bridge: | ||
build: | ||
dockerfile: arcane-bridge/Dockerfile | ||
container_name: spellbook_arcane_bridge | ||
volumes: | ||
- vault_share:/vault_share | ||
ports: | ||
- "3000:3000" | ||
depends_on: | ||
- vault | ||
- mariadb | ||
- rabbitmq | ||
networks: | ||
spellbook-net: | ||
ipv4_address: 10.23.82.7 | ||
|
||
golem: | ||
build: | ||
dockerfile: elemental-golem/Dockerfile-nogpu | ||
container_name: spellbook_golem | ||
environment: | ||
- GOLEM_ID=${GOLEM_ID} | ||
- GOLEM_AMQP_HOST=${GOLEM_AMQP_HOST} | ||
- GOLEM_VAULT_HOST=${GOLEM_VAULT_HOST} | ||
volumes: | ||
- vault_share:/vault_share | ||
- models_share:/server/data | ||
depends_on: | ||
- vault | ||
- rabbitmq | ||
networks: | ||
spellbook-net: | ||
ipv4_address: 10.23.82.5 | ||
|
||
rabbitmq: | ||
build: | ||
dockerfile: rabbitmq/Dockerfile | ||
container_name: spellbook_rabbitmq | ||
depends_on: | ||
- vault | ||
ports: | ||
- "15672:15672" | ||
- "5672:5672" | ||
- "5671:5671" | ||
volumes: | ||
- vault_share:/vault_share | ||
networks: | ||
spellbook-net: | ||
ipv4_address: 10.23.82.4 | ||
|
||
volumes: | ||
vault_share: | ||
models_share: | ||
|
||
networks: | ||
spellbook-net: | ||
ipam: | ||
config: | ||
- subnet: 10.23.82.0/16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
version: "3.8" | ||
|
||
services: | ||
|
||
golem: | ||
build: | ||
dockerfile: elemental-golem/Dockerfile-nogpu | ||
container_name: spellbook_golem_nogpu | ||
volumes: | ||
- vault_share:/vault_share | ||
- models_share:/server/data | ||
environment: | ||
- GOLEM_ID=${GOLEM_ID} | ||
- GOLEM_AMQP_HOST=${GOLEM_AMQP_HOST} | ||
- GOLEM_VAULT_HOST=${GOLEM_VAULT_HOST} | ||
networks: | ||
spellbook-net: | ||
ipv4_address: 10.23.82.5 | ||
|
||
volumes: | ||
vault_share: | ||
models_share: | ||
|
||
networks: | ||
spellbook-net: | ||
ipam: | ||
config: | ||
- subnet: 10.23.82.0/16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
version: "3.8" | ||
|
||
services: | ||
|
||
golem: | ||
build: | ||
dockerfile: elemental-golem/Dockerfile | ||
container_name: spellbook_golem | ||
volumes: | ||
- vault_share:/vault_share | ||
- models_share:/server/data | ||
environment: | ||
- GOLEM_ID=${GOLEM_ID} | ||
- GOLEM_AMQP_HOST=${GOLEM_AMQP_HOST} | ||
- GOLEM_VAULT_HOST=${GOLEM_VAULT_HOST} | ||
deploy: | ||
resources: | ||
reservations: | ||
devices: | ||
- driver: nvidia | ||
count: all | ||
capabilities: [gpu] | ||
networks: | ||
spellbook-net: | ||
ipv4_address: 10.23.82.5 | ||
|
||
volumes: | ||
vault_share: | ||
models_share: | ||
|
||
networks: | ||
spellbook-net: | ||
ipam: | ||
config: | ||
- subnet: 10.23.82.0/16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM ubuntu:22.04 | ||
|
||
RUN apt-get update && apt-get upgrade -y \ | ||
&& apt-get install -y git build-essential \ | ||
python3 python3-pip gcc tar wget \ | ||
ocl-icd-opencl-dev opencl-headers clinfo | ||
|
||
COPY . . | ||
RUN groupadd -r golem && useradd -r -m -g golem golem && mkdir /server && chown -R golem:golem /server | ||
RUN python3 -m pip install --upgrade pip pytest cmake scikit-build setuptools fastapi uvicorn sse-starlette pydantic-settings starlette-context | ||
RUN pip install llama-cpp-python | ||
RUN echo "Installing v0.2.1 of Elemental Golem" | ||
RUN git clone --depth 1 --branch v0.2.1 https://github.com/noco-ai/elemental-golem.git /server | ||
RUN pip install -r /server/requirements-nogpu.txt | ||
RUN mkdir -p /server/data/loras/ | ||
WORKDIR /server | ||
CMD python3 server.py --server-id $GOLEM_ID --amqp-ip $GOLEM_AMQP_HOST --vault-host $GOLEM_VAULT_HOST --vault-token-file /vault_share/read-token --vault-root spellbook --shared-models true --gpu-type nogpu | ||
# CMD tail -f /dev/null | ||
# python3 server.py --server-id golem1 --vault-host http://10.23.82.2:8200 --vault-token-file /vault_share/read-token --vault-root spellbook --shared-models true | ||
#CMD ["python3", "server.py", "--server-id", "$GOLEM_ID", "--amqp-ip", "$AMQP_IP", "--vault-host", "$VAULT_HOST", "--vault-token-file", "/vault_share/read-token", "--vault-root", "spellbook", "--shared-models", "true", "--gpu-type", "nogpu"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters