mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-22 16:07:51 +08:00
[CI] Modify 4-card container startup config and move test case (#7363)
This commit is contained in:
@@ -181,11 +181,17 @@ jobs:
|
||||
docker rm -f ${runner_name} || true
|
||||
fi
|
||||
|
||||
export RDMA_DEVICES=$(find /dev/infiniband/uverbs* -maxdepth 1 -not -type d | xargs -I{} echo '--device {}:{}')
|
||||
|
||||
docker run --rm --net=host \
|
||||
--shm-size=64g \
|
||||
--sysctl kernel.msgmax=1048576 \
|
||||
--sysctl kernel.msgmnb=268435456 \
|
||||
--name ${runner_name} \
|
||||
--cap-add=SYS_PTRACE --cap-add=IPC_LOCK \
|
||||
--shm-size=64G \
|
||||
${RDMA_DEVICES} \
|
||||
--device=/dev/infiniband/rdma_cm \
|
||||
--ulimit memlock=-1:-1 \
|
||||
-v $(pwd):/workspace -w /workspace \
|
||||
-v "${CACHE_DIR}/gitconfig:/etc/gitconfig:ro" \
|
||||
-v "${CACHE_DIR}/.cache:/root/.cache" \
|
||||
@@ -197,6 +203,10 @@ jobs:
|
||||
-e "FD_METRICS_PORT=${FD_METRICS_PORT}" \
|
||||
-e "FLASK_PORT=${FLASK_PORT}" \
|
||||
-e "FD_CACHE_QUEUE_PORT=${FD_CACHE_QUEUE_PORT}" \
|
||||
-e "FD_ROUTER_PORT=${FD_ROUTER_PORT}" \
|
||||
-e "FD_CONNECTOR_PORT=${FD_CONNECTOR_PORT}" \
|
||||
-e "FD_RDMA_PORT=${FD_RDMA_PORT}" \
|
||||
-e "CLEAN_CUDA=1" \
|
||||
-e TZ="Asia/Shanghai" \
|
||||
-e "fd_wheel_url=${fd_wheel_url}" \
|
||||
-e "BASE_REF=${BASE_REF}" \
|
||||
|
||||
+3
-3
@@ -26,7 +26,7 @@ import time
|
||||
|
||||
import pytest
|
||||
import requests
|
||||
from utils.serving_utils import (
|
||||
from e2e.utils.serving_utils import (
|
||||
FD_API_PORT,
|
||||
FD_CACHE_QUEUE_PORT,
|
||||
FD_ENGINE_QUEUE_PORT,
|
||||
@@ -90,7 +90,7 @@ def setup_and_run_server():
|
||||
|
||||
# get rdma nics
|
||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
shell_path = os.path.join(current_dir, "utils/get_rdma_nics.sh")
|
||||
shell_path = os.path.join(current_dir, "../utils/get_rdma_nics.sh")
|
||||
output = subprocess.check_output(["bash", shell_path, "gpu"], text=True)
|
||||
_, rdma_nics = output.split("=")
|
||||
print(f"shell_path: {shell_path}, rdma_nics: {rdma_nics}")
|
||||
@@ -171,7 +171,7 @@ def setup_and_run_server():
|
||||
# decode实例
|
||||
print("start decode...")
|
||||
env_decode = os.environ.copy()
|
||||
env_decode["CUDA_VISIBLE_DEVICES"] = "1"
|
||||
env_decode["CUDA_VISIBLE_DEVICES"] = "2"
|
||||
env_decode["FD_LOG_DIR"] = os.path.join(base_log_dir, "log_decode")
|
||||
# env_decode["KVCACHE_RDMA_NICS"] = rdma_nics
|
||||
|
||||
Reference in New Issue
Block a user