GenAIExample code structure reorg (#207)

Signed-off-by: Tian, Feng <feng.tian@intel.com>
Signed-off-by: chensuyue <suyue.chen@intel.com>
This commit is contained in:
Tian, Feng
2024-05-30 00:13:49 +08:00
committed by GitHub
parent f3d61d4246
commit 169fe96332
187 changed files with 42 additions and 40 deletions

View File

Before

Width:  |  Height:  |  Size: 944 B

After

Width:  |  Height:  |  Size: 944 B

View File

Before

Width:  |  Height:  |  Size: 69 KiB

After

Width:  |  Height:  |  Size: 69 KiB

View File

@@ -17,17 +17,17 @@ function build_docker_images() {
docker pull ghcr.io/huggingface/tgi-gaudi:1.2.1
cd $WORKPATH
cd $WORKPATH/docker
docker build --no-cache -t opea/codetrans:latest -f Dockerfile .
cd $WORKPATH/ui
cd $WORKPATH/docker/ui
docker build --no-cache -t opea/codetrans-ui:latest -f docker/Dockerfile .
docker images
}
function start_services() {
cd $WORKPATH/docker-composer/gaudi
cd $WORKPATH/docker/gaudi
export http_proxy=${http_proxy}
export https_proxy=${http_proxy}
@@ -97,7 +97,7 @@ function validate_megaservice() {
}
function stop_docker() {
cd $WORKPATH/docker-composer/gaudi
cd $WORKPATH/docker/gaudi
container_list=$(cat docker_compose.yaml | grep container_name | cut -d':' -f2)
for container_name in $container_list; do
cid=$(docker ps -aq --filter "name=$container_name")

View File

@@ -15,17 +15,17 @@ function build_docker_images() {
docker build -t opea/llm-tgi:latest -f comps/llms/text-generation/tgi/Dockerfile .
cd $WORKPATH
cd $WORKPATH/docker
docker build --no-cache -t opea/codetrans:latest -f Dockerfile .
cd $WORKPATH/ui
cd $WORKPATH/docker/ui
docker build --no-cache -t opea/codetrans-ui:latest -f docker/Dockerfile .
docker images
}
function start_services() {
cd $WORKPATH/docker-composer/xeon
cd $WORKPATH/docker/xeon
export http_proxy=${http_proxy}
export https_proxy=${http_proxy}
export LLM_MODEL_ID="HuggingFaceH4/mistral-7b-grok"
@@ -80,7 +80,7 @@ function validate_megaservice() {
}
function stop_docker() {
cd $WORKPATH/docker-composer/xeon
cd $WORKPATH/docker/xeon
container_list=$(cat docker_compose.yaml | grep container_name | cut -d':' -f2)
for container_name in $container_list; do
cid=$(docker ps -aq --filter "name=$container_name")