AMD PD/D PR ci (#17183)
Co-authored-by: YC Tseng <yctseng@amd.com> Co-authored-by: Bingxu Chen <bingxche@amd.com> Co-authored-by: bingxche <Bingxu.Chen@amd.com>
This commit is contained in:
113
.github/workflows/pr-test-amd.yml
vendored
113
.github/workflows/pr-test-amd.yml
vendored
@@ -734,6 +734,118 @@ jobs:
|
||||
run: |
|
||||
bash scripts/ci/amd/amd_ci_exec.sh -w "/sglang-checkout/test" python3 run_suite.py --hw amd --suite stage-c-test-large-8-gpu-amd-mi35x --auto-partition-id ${{ matrix.part }} --auto-partition-size 1 --timeout-per-file 3600
|
||||
|
||||
# =============================================== Disaggregation ====================================================
|
||||
stage-b-test-large-8-gpu-35x-disaggregation-amd:
|
||||
needs: [check-changes, stage-a-test-1-amd]
|
||||
if: |
|
||||
always() &&
|
||||
(
|
||||
(inputs.target_stage == 'stage-b-test-large-8-gpu-disaggregation-amd') ||
|
||||
(
|
||||
!inputs.target_stage &&
|
||||
(!failure() && !cancelled()) &&
|
||||
((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true'))
|
||||
)
|
||||
)
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
runner: [linux-mi35x-gpu-8.fabric]
|
||||
|
||||
runs-on: ${{matrix.runner}}
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.pr_head_sha || inputs.ref || github.sha }}
|
||||
|
||||
- name: Ensure VRAM is clear
|
||||
run: bash scripts/ensure_vram_clear.sh rocm
|
||||
|
||||
- name: Check Host RDMA Environment
|
||||
id: rdma_detect
|
||||
run: |
|
||||
set +e
|
||||
echo "=== Checking Host RDMA Environment ==="
|
||||
|
||||
echo ""
|
||||
echo "=== 1. Ionic driver library check ==="
|
||||
ls -l /usr/lib/x86_64-linux-gnu/libibverbs/libionic* 2>/dev/null || echo "libionic not found in standard path"
|
||||
|
||||
echo ""
|
||||
echo "=== 2. Infiniband devices ==="
|
||||
ls -la /dev/infiniband/ 2>/dev/null || echo "/dev/infiniband not found"
|
||||
ls -la /sys/class/infiniband/ 2>/dev/null || echo "/sys/class/infiniband not found"
|
||||
|
||||
echo ""
|
||||
echo "=== 3. ibv_devinfo ==="
|
||||
which ibv_devinfo 2>/dev/null && ibv_devinfo 2>&1 || echo "ibv_devinfo not available"
|
||||
|
||||
echo ""
|
||||
echo "=== 4. Kernel modules ==="
|
||||
lsmod 2>/dev/null | grep -E "ib_|rdma|ionic" || echo "No RDMA kernel modules loaded"
|
||||
|
||||
echo ""
|
||||
echo "=== 5. Detect RDMA Devices for test environment ==="
|
||||
if [ -d "/sys/class/infiniband" ]; then
|
||||
RDMA_DEVS=$(ls /sys/class/infiniband | paste -sd "," -)
|
||||
echo "Detected RDMA Devices: $RDMA_DEVS"
|
||||
echo "SGLANG_TEST_RDMA_DEVICE=$RDMA_DEVS" >> $GITHUB_ENV
|
||||
else
|
||||
echo "No RDMA devices found in /sys/class/infiniband"
|
||||
echo "SGLANG_TEST_RDMA_DEVICE=" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "=== Host RDMA Check Complete ==="
|
||||
|
||||
- name: Start Special Container
|
||||
run: bash scripts/ci/amd/amd_ci_start_container_disagg.sh
|
||||
env:
|
||||
GITHUB_WORKSPACE: ${{ github.workspace }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: bash scripts/ci/amd/amd_ci_install_dependency.sh
|
||||
|
||||
- name: Verify RDMA in Container
|
||||
run: |
|
||||
docker exec -u root ci_sglang bash -c '
|
||||
echo "=== Container RDMA Verification ==="
|
||||
echo "Device nodes:"
|
||||
ls -la /dev/infiniband/
|
||||
echo ""
|
||||
echo "Provider libraries:"
|
||||
ls /usr/lib/x86_64-linux-gnu/libibverbs/ | grep -E "ionic|mlx" || echo "No Ionic/Mellanox providers"
|
||||
echo ""
|
||||
echo "HCA devices:"
|
||||
HCA_COUNT=$(ibv_devinfo -list 2>&1 | grep -oE "^[0-9]+ HCAs? found" | grep -oE "^[0-9]+" || echo "0")
|
||||
ibv_devinfo -list
|
||||
if [ "$HCA_COUNT" -gt 0 ]; then
|
||||
echo ""
|
||||
echo "=== SUCCESS: RDMA setup complete. Found $HCA_COUNT HCA(s) ==="
|
||||
else
|
||||
echo ""
|
||||
echo "=== WARNING: No HCAs detected. RDMA tests may fail ==="
|
||||
fi
|
||||
'
|
||||
|
||||
- name: Run Aiter Op Test (RMSNorm)
|
||||
timeout-minutes: 10
|
||||
run: |
|
||||
echo "Running pre-check: test_rmsnorm2d.py"
|
||||
docker exec \
|
||||
-e MAX_JOBS=192 \
|
||||
ci_sglang \
|
||||
python /sgl-workspace/aiter/op_tests/test_rmsnorm2d.py
|
||||
|
||||
- name: Run test_disaggregation
|
||||
timeout-minutes: 60
|
||||
run: |
|
||||
bash scripts/ci/amd/amd_ci_exec.sh \
|
||||
-e SGLANG_TEST_RDMA_DEVICE="${{ env.SGLANG_TEST_RDMA_DEVICE }}" \
|
||||
-w "/sglang-checkout/test" python3 run_suite.py --hw amd --suite stage-b-test-large-8-gpu-35x-disaggregation-amd --timeout-per-file 1800
|
||||
|
||||
pr-test-amd-finish:
|
||||
needs:
|
||||
[
|
||||
@@ -750,6 +862,7 @@ jobs:
|
||||
stage-b-test-small-1-gpu-amd-mi35x,
|
||||
stage-b-test-large-1-gpu-amd,
|
||||
stage-b-test-large-2-gpu-amd,
|
||||
stage-b-test-large-8-gpu-35x-disaggregation-amd,
|
||||
stage-c-test-large-8-gpu-amd,
|
||||
stage-c-test-large-8-gpu-amd-mi35x,
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user