-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add make dev and related files Signed-off-by: cbh778899 <[email protected]> * update README Signed-off-by: cbh778899 <[email protected]> --------- Signed-off-by: cbh778899 <[email protected]>
- Loading branch information
Showing
7 changed files
with
83 additions
and
9 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
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
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,8 @@ | ||
FROM node:20.15.1-slim | ||
WORKDIR /app | ||
COPY . . | ||
|
||
HEALTHCHECK --interval=300s --timeout=30s --start-period=5s --retries=3 CMD [ "node", "healthy-check.js" ] | ||
RUN npm install -g pnpm nodemon && pnpm install | ||
EXPOSE 8000 | ||
ENTRYPOINT [ "npm", "run", "dev" ] |
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,48 @@ | ||
services: | ||
llamacpp: | ||
container_name: ${INFERENCE_ENG} | ||
image: gclub/llama.cpp:${INFERENCE_ENG_VERSION} | ||
restart: always | ||
deploy: # https://github.com/compose-spec/compose-spec/blob/master/deploy.md | ||
resources: | ||
reservations: | ||
cpus: "${NUM_CPU_CORES}" | ||
volumes: | ||
- "${DOCKER_VOLUME_DIRECTORY:-.}/${MODEL_SAVE_PATH}:/models" | ||
expose: | ||
- ${ENG_ACCESS_PORT} | ||
ports: | ||
- ${INFERENCE_ENG_PORT}:${ENG_ACCESS_PORT} | ||
command: ["-m", "models/${LANGUAGE_MODEL_NAME}","-c","8192"] | ||
|
||
embedding_eng: | ||
container_name: ${EMBEDDING_ENG} | ||
image: gclub/llama.cpp:${INFERENCE_ENG_VERSION} | ||
restart: always | ||
deploy: # https://github.com/compose-spec/compose-spec/blob/master/deploy.md | ||
resources: | ||
reservations: | ||
cpus: "${NUM_CPU_CORES_EMBEDDING}" | ||
volumes: | ||
- "${DOCKER_VOLUME_DIRECTORY:-.}/${MODEL_SAVE_PATH}:/models" | ||
expose: | ||
- ${ENG_ACCESS_PORT} | ||
ports: | ||
- ${EMBEDDING_ENG_PORT}:${ENG_ACCESS_PORT} | ||
command: ["-m", "models/${EMBEDDING_MODEL_NAME}","--embeddings","--pooling","mean","-c","512"] | ||
|
||
voyager: | ||
container_name: voyager | ||
restart: always | ||
build: | ||
dockerfile: devDockerfile | ||
context: . | ||
volumes: | ||
- .:/app | ||
expose: | ||
- ${APP_PORT} | ||
ports: | ||
- ${APP_PORT}:${APP_PORT} | ||
depends_on: | ||
- llamacpp | ||
- embedding_eng |
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 |
---|---|---|
|
@@ -37,8 +37,6 @@ services: | |
build: | ||
dockerfile: Dockerfile | ||
context: . | ||
volumes: | ||
- .:/app | ||
expose: | ||
- ${APP_PORT} | ||
ports: | ||
|