From dd6f810cc72c2b597e8ae4395da52c0107c8da69 Mon Sep 17 00:00:00 2001 From: Takeshi Yoshimura Date: Thu, 29 May 2025 16:03:59 +0900 Subject: [PATCH 1/2] fix paddle test Signed-off-by: Takeshi Yoshimura --- .github/workflows/test-paddle.yaml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test-paddle.yaml b/.github/workflows/test-paddle.yaml index 838d9c6..38d979e 100644 --- a/.github/workflows/test-paddle.yaml +++ b/.github/workflows/test-paddle.yaml @@ -12,7 +12,7 @@ permissions: jobs: build-and-test-paddle: - name: Build and Test (${{ matrix.os }}, Python ${{ matrix.python-version }}), PaddlePaddle ${{ matrix.paddle-version }} + name: Test Python ${{ matrix.python-version }}) runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -26,23 +26,15 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Install system dependencies - if: matrix.os == 'ubuntu-latest' run: | sudo apt-get update sudo apt-get install -y libnuma-dev gcc g++ make - - name: Cache pip packages - uses: actions/cache@v3 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} - restore-keys: | - ${{ runner.os }}-pip- - name: Install Python dependencies run: | python -m pip install --upgrade pip pip install torch==2.5.1 --index-url https://download.pytorch.org/whl/cpu - pip install paddlepaddle==3.3.0 - pip install pytest pytest-cov setuptools_scm safetensors transformers=4.52 + pip install paddlepaddle==3.0.0 + pip install pytest pytest-cov setuptools_scm safetensors transformers==4.52 - name: Build Package run: | pip install . @@ -62,5 +54,5 @@ jobs: if: always() uses: actions/upload-artifact@v4 with: - name: pytest-log + name: pytest-log-paddle-${{ matrix.python-version }} path: /tmp/pytest-log \ No newline at end of file From ff2733e94ad8a8a9206db57fcbadc759e0f4c8e1 Mon Sep 17 00:00:00 2001 From: Takeshi Yoshimura Date: Thu, 29 May 2025 16:15:33 +0900 Subject: [PATCH 2/2] fix workflow Signed-off-by: Takeshi Yoshimura --- .github/workflows/test-paddle.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-paddle.yaml b/.github/workflows/test-paddle.yaml index 38d979e..3cb7881 100644 --- a/.github/workflows/test-paddle.yaml +++ b/.github/workflows/test-paddle.yaml @@ -12,7 +12,7 @@ permissions: jobs: build-and-test-paddle: - name: Test Python ${{ matrix.python-version }}) + name: Test Python ${{ matrix.python-version }} runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -47,7 +47,7 @@ jobs: COVERAGE_FILE=.coverage_1 CUDA_VISIBLE_DEVICES="" pytest -s --cov=${LIBDIR} test_fastsafetensors.py > /tmp/pytest-log/1.log 2>&1 COVERAGE_FILE=.coverage_2 torchrun --nnodes=2 --master_addr=0.0.0.0 --master_port=1234 --node_rank=0 --no-python pytest -s --cov=${LIBDIR} test_multi.py > /tmp/pytest-log/2.log 2>&1 & COVERAGE_FILE=.coverage_3 torchrun --nnodes=2 --master_addr=0.0.0.0 --master_port=1234 --node_rank=1 --no-python pytest -s --cov=${LIBDIR} test_multi.py > /tmp/pytest-log/3.log 2>&1 - coverage combine .coverage_0 .coverage_1 .coverage_2 .coverage_3 .coverage_4 + coverage combine .coverage_0 .coverage_1 .coverage_2 .coverage_3 coverage html mv htmlcov /tmp/pytest-log - name: upload pytest log