-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Xinyao Wang <xinyao.wang@intel.com>
- Loading branch information
Showing
29 changed files
with
1,195 additions
and
961 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
52 changes: 52 additions & 0 deletions
52
comps/llms/deployment/docker_compose/doc-summarization_tgi.yaml
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,52 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
version: "3.8" | ||
|
||
services: | ||
tgi-service: | ||
image: ghcr.io/huggingface/text-generation-inference:2.4.0-intel-cpu | ||
container_name: tgi-server | ||
ports: | ||
- ${LLM_ENDPOINT_PORT:-8008}:80 | ||
volumes: | ||
- "./data:/data" | ||
shm_size: 1g | ||
environment: | ||
no_proxy: ${no_proxy} | ||
http_proxy: ${http_proxy} | ||
https_proxy: ${https_proxy} | ||
HF_TOKEN: ${HUGGINGFACEHUB_API_TOKEN} | ||
host_ip: ${host_ip} | ||
LLM_ENDPOINT_PORT: ${LLM_ENDPOINT_PORT} | ||
healthcheck: | ||
test: ["CMD-SHELL", "curl -f http://${host_ip}:${LLM_ENDPOINT_PORT}/health || exit 1"] | ||
interval: 10s | ||
timeout: 10s | ||
retries: 100 | ||
command: --model-id ${LLM_MODEL_ID} --max-input-length ${MAX_INPUT_TOKENS} --max-total-tokens ${MAX_TOTAL_TOKENS} | ||
llm: | ||
image: opea/llm-docsum:latest | ||
container_name: llm-docsum-server | ||
depends_on: | ||
tgi-service: | ||
condition: service_healthy | ||
ports: | ||
- ${DOCSUM_PORT:-9000}:9000 | ||
ipc: host | ||
environment: | ||
no_proxy: ${no_proxy} | ||
http_proxy: ${http_proxy} | ||
https_proxy: ${https_proxy} | ||
HUGGINGFACEHUB_API_TOKEN: ${HUGGINGFACEHUB_API_TOKEN} | ||
MAX_INPUT_TOKENS: ${MAX_INPUT_TOKENS} | ||
MAX_TOTAL_TOKENS: ${MAX_TOTAL_TOKENS} | ||
LLM_ENDPOINT: ${LLM_ENDPOINT} | ||
LLM_MODEL_ID: ${LLM_MODEL_ID} | ||
DocSum_COMPONENT_NAME: ${DocSum_COMPONENT_NAME} | ||
LOGFLAG: ${LOGFLAG:-False} | ||
restart: unless-stopped | ||
|
||
networks: | ||
default: | ||
driver: bridge |
63 changes: 63 additions & 0 deletions
63
comps/llms/deployment/docker_compose/doc-summarization_tgi_on_intel_hpu.yaml
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,63 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
version: "3.8" | ||
|
||
services: | ||
tgi-service: | ||
image: ghcr.io/huggingface/tgi-gaudi:2.3.1 | ||
container_name: tgi_gaudi_server | ||
ports: | ||
- ${LLM_ENDPOINT_PORT:-8008}:80 | ||
volumes: | ||
- "./data:/data" | ||
environment: | ||
no_proxy: ${no_proxy} | ||
http_proxy: ${http_proxy} | ||
https_proxy: ${https_proxy} | ||
HUGGING_FACE_HUB_TOKEN: ${HUGGINGFACEHUB_API_TOKEN} | ||
HF_HUB_DISABLE_PROGRESS_BARS: 1 | ||
HF_HUB_ENABLE_HF_TRANSFER: 0 | ||
HABANA_VISIBLE_DEVICES: all | ||
OMPI_MCA_btl_vader_single_copy_mechanism: none | ||
ENABLE_HPU_GRAPH: true | ||
LIMIT_HPU_GRAPH: true | ||
USE_FLASH_ATTENTION: true | ||
FLASH_ATTENTION_RECOMPUTE: true | ||
host_ip: ${host_ip} | ||
LLM_ENDPOINT_PORT: ${LLM_ENDPOINT_PORT} | ||
runtime: habana | ||
cap_add: | ||
- SYS_NICE | ||
ipc: host | ||
healthcheck: | ||
test: ["CMD-SHELL", "curl -f http://${host_ip}:${LLM_ENDPOINT_PORT}/health || exit 1"] | ||
interval: 10s | ||
timeout: 10s | ||
retries: 100 | ||
command: --model-id ${LLM_MODEL_ID} --max-input-length ${MAX_INPUT_TOKENS} --max-total-tokens ${MAX_TOTAL_TOKENS} | ||
llm: | ||
image: opea/llm-docsum:latest | ||
container_name: llm-docsum-server | ||
depends_on: | ||
tgi-service: | ||
condition: service_healthy | ||
ports: | ||
- ${DOCSUM_PORT:-9000}:9000 | ||
ipc: host | ||
environment: | ||
no_proxy: ${no_proxy} | ||
http_proxy: ${http_proxy} | ||
https_proxy: ${https_proxy} | ||
HUGGINGFACEHUB_API_TOKEN: ${HUGGINGFACEHUB_API_TOKEN} | ||
MAX_INPUT_TOKENS: ${MAX_INPUT_TOKENS} | ||
MAX_TOTAL_TOKENS: ${MAX_TOTAL_TOKENS} | ||
LLM_ENDPOINT: ${LLM_ENDPOINT} | ||
LLM_MODEL_ID: ${LLM_MODEL_ID} | ||
DocSum_COMPONENT_NAME: ${DocSum_COMPONENT_NAME} | ||
LOGFLAG: ${LOGFLAG:-False} | ||
restart: unless-stopped | ||
|
||
networks: | ||
default: | ||
driver: bridge |
55 changes: 55 additions & 0 deletions
55
comps/llms/deployment/docker_compose/doc-summarization_vllm.yaml
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,55 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
version: "3.8" | ||
|
||
services: | ||
vllm-service: | ||
image: opea/vllm:latest | ||
container_name: vllm-server | ||
ports: | ||
- ${LLM_ENDPOINT_PORT:-8008}:80 | ||
volumes: | ||
- "./data:/data" | ||
shm_size: 128g | ||
environment: | ||
no_proxy: ${no_proxy} | ||
http_proxy: ${http_proxy} | ||
https_proxy: ${https_proxy} | ||
HF_TOKEN: ${HUGGINGFACEHUB_API_TOKEN} | ||
LLM_MODEL_ID: ${LLM_MODEL_ID} | ||
VLLM_TORCH_PROFILER_DIR: "/mnt" | ||
host_ip: ${host_ip} | ||
LLM_ENDPOINT_PORT: ${LLM_ENDPOINT_PORT} | ||
VLLM_SKIP_WARMUP: ${VLLM_SKIP_WARMUP:-false} | ||
healthcheck: | ||
test: ["CMD-SHELL", "curl -f http://${host_ip}:${LLM_ENDPOINT_PORT}/health || exit 1"] | ||
interval: 10s | ||
timeout: 10s | ||
retries: 100 | ||
command: --model $LLM_MODEL_ID --host 0.0.0.0 --port 80 | ||
llm: | ||
image: opea/llm-docsum:latest | ||
container_name: llm-docsum-server | ||
depends_on: | ||
vllm-service: | ||
condition: service_healthy | ||
ports: | ||
- ${DOCSUM_PORT:-9000}:9000 | ||
ipc: host | ||
environment: | ||
no_proxy: ${no_proxy} | ||
http_proxy: ${http_proxy} | ||
https_proxy: ${https_proxy} | ||
HUGGINGFACEHUB_API_TOKEN: ${HUGGINGFACEHUB_API_TOKEN} | ||
MAX_INPUT_TOKENS: ${MAX_INPUT_TOKENS} | ||
MAX_TOTAL_TOKENS: ${MAX_TOTAL_TOKENS} | ||
LLM_ENDPOINT: ${LLM_ENDPOINT} | ||
LLM_MODEL_ID: ${LLM_MODEL_ID} | ||
DocSum_COMPONENT_NAME: ${DocSum_COMPONENT_NAME} | ||
LOGFLAG: ${LOGFLAG:-False} | ||
restart: unless-stopped | ||
|
||
networks: | ||
default: | ||
driver: bridge |
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
Oops, something went wrong.