-
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> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
3f23bf5
commit ea72c94
Showing
31 changed files
with
962 additions
and
551 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
50 changes: 50 additions & 0 deletions
50
comps/llms/deployment/docker_compose/faq-generation_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,50 @@ | ||
# 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} --cuda-graphs 0 | ||
llm: | ||
image: opea/llm-faqgen:latest | ||
container_name: llm-faqgen-server | ||
depends_on: | ||
tgi-service: | ||
condition: service_healthy | ||
ports: | ||
- ${FAQ_PORT:-9000}:9000 | ||
ipc: host | ||
environment: | ||
no_proxy: ${no_proxy} | ||
http_proxy: ${http_proxy} | ||
https_proxy: ${https_proxy} | ||
LLM_ENDPOINT: ${LLM_ENDPOINT} | ||
LLM_MODEL_ID: ${LLM_MODEL_ID} | ||
HUGGINGFACEHUB_API_TOKEN: ${HUGGINGFACEHUB_API_TOKEN} | ||
FAQGen_COMPONENT_NAME: ${FAQGen_COMPONENT_NAME} | ||
LOGFLAG: ${LOGFLAG:-False} | ||
restart: unless-stopped | ||
|
||
networks: | ||
default: | ||
driver: bridge |
61 changes: 61 additions & 0 deletions
61
comps/llms/deployment/docker_compose/faq-generation_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,61 @@ | ||
# 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 1024 --max-total-tokens 2048 | ||
llm: | ||
image: opea/llm-faqgen:latest | ||
container_name: llm-faqgen-server | ||
depends_on: | ||
tgi-service: | ||
condition: service_healthy | ||
ports: | ||
- ${FAQ_PORT:-9000}:9000 | ||
ipc: host | ||
environment: | ||
no_proxy: ${no_proxy} | ||
http_proxy: ${http_proxy} | ||
https_proxy: ${https_proxy} | ||
LLM_ENDPOINT: ${LLM_ENDPOINT} | ||
LLM_MODEL_ID: ${LLM_MODEL_ID} | ||
HUGGINGFACEHUB_API_TOKEN: ${HUGGINGFACEHUB_API_TOKEN} | ||
FAQGen_COMPONENT_NAME: ${FAQGen_COMPONENT_NAME} | ||
LOGFLAG: ${LOGFLAG:-False} | ||
restart: unless-stopped | ||
|
||
networks: | ||
default: | ||
driver: bridge |
53 changes: 53 additions & 0 deletions
53
comps/llms/deployment/docker_compose/faq-generation_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,53 @@ | ||
# 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-faqgen:latest | ||
container_name: llm-faqgen-server | ||
depends_on: | ||
vllm-service: | ||
condition: service_healthy | ||
ports: | ||
- ${FAQ_PORT:-9000}:9000 | ||
ipc: host | ||
environment: | ||
no_proxy: ${no_proxy} | ||
http_proxy: ${http_proxy} | ||
https_proxy: ${https_proxy} | ||
LLM_ENDPOINT: ${LLM_ENDPOINT} | ||
LLM_MODEL_ID: ${LLM_MODEL_ID} | ||
HUGGINGFACEHUB_API_TOKEN: ${HUGGINGFACEHUB_API_TOKEN} | ||
FAQGen_COMPONENT_NAME: ${FAQGen_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 was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
comps/llms/faq-generation/tgi/langchain/docker_compose_llm.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.