Skip to content

Commit a216a1c

Browse files
authored
Add validated matrix for AgentQnA (opea-project#2080)
Signed-off-by: chensuyue <[email protected]>
1 parent 530b1b6 commit a216a1c

File tree

3 files changed

+20
-73
lines changed

3 files changed

+20
-73
lines changed

AgentQnA/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,3 +300,12 @@ The [tools](./tools) folder contains YAML and Python files for additional tools
300300

301301
Follow [OpenTelemetry OPEA Guide](https://opea-project.github.io/latest/tutorial/OpenTelemetry/OpenTelemetry_OPEA_Guide.html) to understand how to use OpenTelemetry tracing and metrics in OPEA.
302302
For AgentQnA specific tracing and metrics monitoring, follow [OpenTelemetry on AgentQnA](https://opea-project.github.io/latest/tutorial/OpenTelemetry/deploy/AgentQnA.html) section.
303+
304+
## Validated Configurations
305+
306+
| **Deploy Method** | **LLM Engine** | **LLM Model** | **Hardware** |
307+
| ----------------- | -------------- | ----------------------------------- | ------------ |
308+
| Docker Compose | vLLM | meta-llama/Llama-3.3-70B-Instruct | Intel Gaudi |
309+
| Docker Compose | vLLM, TGI | Intel/neural-chat-7b-v3-3 | AMD ROCm |
310+
| Helm Charts | vLLM | meta-llama/Llama-3.3-70B-Instruct | Intel Gaudi |
311+
| Helm Charts | vLLM | meta-llama/Meta-Llama-3-8B-Instruct | Intel Xeon |

AgentQnA/docker_compose/intel/hpu/gaudi/compose.telemetry.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
services:
5-
tei-embedding-service:
6-
command: --model-id ${EMBEDDING_MODEL_ID} --auto-truncate --otlp-endpoint $OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
7-
tei-reranking-service:
8-
command: --model-id ${RERANK_MODEL_ID} --auto-truncate --otlp-endpoint $OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
95
jaeger:
106
image: jaegertracing/all-in-one:1.67.0
117
container_name: jaeger

AgentQnA/tests/test_compose_on_gaudi.sh

Lines changed: 11 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -18,76 +18,21 @@ export REGISTRY=${IMAGE_REPO}
1818
export TAG=${IMAGE_TAG}
1919
export MODEL_CACHE=${model_cache:-"./data"}
2020

21+
function stop_docker() {
22+
echo "Stopping Retrieval tool"
23+
cd $WORKPATH/../DocIndexRetriever/docker_compose/intel/cpu/xeon/
24+
docker compose -f compose.yaml down
2125

22-
function stop_crag() {
23-
cid=$(docker ps -aq --filter "name=kdd-cup-24-crag-service")
24-
echo "Stopping container kdd-cup-24-crag-service with cid $cid"
25-
if [[ ! -z "$cid" ]]; then docker rm $cid -f && sleep 1s; fi
26-
}
27-
28-
function stop_agent_containers() {
29-
cd $WORKPATH/docker_compose/intel/hpu/gaudi/
30-
container_list=$(cat compose.yaml | grep container_name | cut -d':' -f2)
31-
for container_name in $container_list; do
32-
cid=$(docker ps -aq --filter "name=$container_name")
33-
echo "Stopping container $container_name"
34-
if [[ ! -z "$cid" ]]; then docker rm $cid -f && sleep 1s; fi
35-
done
36-
}
37-
38-
function stop_telemetry_containers(){
39-
cd $WORKPATH/docker_compose/intel/hpu/gaudi/
40-
container_list=$(cat compose.telemetry.yaml | grep container_name | cut -d':' -f2)
41-
for container_name in $container_list; do
42-
cid=$(docker ps -aq --filter "name=$container_name")
43-
echo "Stopping container $container_name"
44-
if [[ ! -z "$cid" ]]; then docker rm $cid -f && sleep 1s; fi
45-
done
46-
container_list=$(cat compose.telemetry.yaml | grep container_name | cut -d':' -f2)
47-
48-
}
49-
50-
function stop_llm(){
51-
cd $WORKPATH/docker_compose/intel/hpu/gaudi/
52-
container_list=$(cat tgi_gaudi.yaml | grep container_name | cut -d':' -f2)
53-
for container_name in $container_list; do
54-
cid=$(docker ps -aq --filter "name=$container_name")
55-
echo "Stopping container $container_name"
56-
if [[ ! -z "$cid" ]]; then docker rm $cid -f && sleep 1s; fi
57-
done
58-
59-
cid=$(docker ps -aq --filter "name=vllm-gaudi-server")
60-
echo "Stopping container $cid"
61-
if [[ ! -z "$cid" ]]; then docker rm $cid -f && sleep 1s; fi
62-
63-
cid=$(docker ps -aq --filter "name=test-comps-vllm-gaudi-service")
64-
echo "Stopping container $cid"
65-
if [[ ! -z "$cid" ]]; then docker rm $cid -f && sleep 1s; fi
66-
26+
cd $WORKPATH/docker_compose/intel/hpu/gaudi
27+
docker compose -f compose.yaml -f compose.telemetry.yaml down
6728
}
6829

69-
function stop_retrieval_tool() {
70-
echo "Stopping Retrieval tool"
71-
local RETRIEVAL_TOOL_PATH=$WORKPATH/../DocIndexRetriever
72-
cd $RETRIEVAL_TOOL_PATH/docker_compose/intel/cpu/xeon/
73-
container_list=$(cat compose.yaml | grep container_name | cut -d':' -f2)
74-
for container_name in $container_list; do
75-
cid=$(docker ps -aq --filter "name=$container_name")
76-
echo "Stopping container $container_name"
77-
if [[ ! -z "$cid" ]]; then docker rm $cid -f && sleep 1s; fi
78-
done
79-
}
8030
echo "workpath: $WORKPATH"
8131
echo "::group::=================== Stop containers ===================="
82-
stop_llm
83-
stop_crag
84-
stop_agent_containers
85-
stop_retrieval_tool
86-
stop_telemetry_containers
32+
stop_docker
8733
echo "::endgroup::"
8834

8935
cd $WORKPATH/tests
90-
9136
echo "::group::=================== Building docker images===================="
9237
bash step1_build_images.sh gaudi_vllm > docker_image_build.log
9338
echo "::endgroup::"
@@ -96,13 +41,10 @@ echo "::group::=================== Start agent, API server, retrieval, and inges
9641
bash step4_launch_and_validate_agent_gaudi.sh
9742
echo "::endgroup::"
9843

99-
echo "::group::=================== Stop agent and API server===================="
100-
stop_llm
101-
stop_crag
102-
stop_agent_containers
103-
stop_retrieval_tool
104-
stop_telemetry_containers
105-
echo y | docker system prune
44+
echo "::group::=================== Stop containers ===================="
45+
stop_docker
10646
echo "::endgroup::"
10747

48+
docker system prune -f
49+
10850
echo "ALL DONE!!"

0 commit comments

Comments
 (0)