From 4a7b8f4248b1b7ad750b18ecf0d78ffc2dda52ca Mon Sep 17 00:00:00 2001 From: Abolfazl Shahbazi Date: Mon, 19 Aug 2024 18:38:32 -0700 Subject: [PATCH] adding entrypoint.sh to faq-generation comp (#525) Signed-off-by: Abolfazl Shahbazi --- comps/llms/faq-generation/tgi/Dockerfile | 2 +- comps/llms/faq-generation/tgi/entrypoint.sh | 8 ++++++++ comps/llms/faq-generation/tgi/requirements-runtime.txt | 1 + comps/llms/faq-generation/tgi/requirements.txt | 1 - 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 comps/llms/faq-generation/tgi/entrypoint.sh create mode 100644 comps/llms/faq-generation/tgi/requirements-runtime.txt diff --git a/comps/llms/faq-generation/tgi/Dockerfile b/comps/llms/faq-generation/tgi/Dockerfile index 0c1ee8e7e..ff48db471 100644 --- a/comps/llms/faq-generation/tgi/Dockerfile +++ b/comps/llms/faq-generation/tgi/Dockerfile @@ -24,4 +24,4 @@ ENV PYTHONPATH=$PYTHONPATH:/home/user WORKDIR /home/user/comps/llms/faq-generation/tgi -ENTRYPOINT ["python", "llm.py"] +ENTRYPOINT ["bash", "entrypoint.sh"] diff --git a/comps/llms/faq-generation/tgi/entrypoint.sh b/comps/llms/faq-generation/tgi/entrypoint.sh new file mode 100644 index 000000000..d60eddd36 --- /dev/null +++ b/comps/llms/faq-generation/tgi/entrypoint.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +pip --no-cache-dir install -r requirements-runtime.txt + +python llm.py diff --git a/comps/llms/faq-generation/tgi/requirements-runtime.txt b/comps/llms/faq-generation/tgi/requirements-runtime.txt new file mode 100644 index 000000000..225adde27 --- /dev/null +++ b/comps/llms/faq-generation/tgi/requirements-runtime.txt @@ -0,0 +1 @@ +langserve diff --git a/comps/llms/faq-generation/tgi/requirements.txt b/comps/llms/faq-generation/tgi/requirements.txt index fbe54af95..78b323c73 100644 --- a/comps/llms/faq-generation/tgi/requirements.txt +++ b/comps/llms/faq-generation/tgi/requirements.txt @@ -2,7 +2,6 @@ docarray[full] fastapi huggingface_hub langchain==0.1.16 -langserve opentelemetry-api opentelemetry-exporter-otlp opentelemetry-sdk