[codex] remove init stages in qwen3 scope3 #212
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - uses: pre-commit/action@v3.0.0 | |
| a2a3sim: | |
| runs-on: ubuntu-latest | |
| env: | |
| PTOAS_ROOT: ${{ github.workspace }}/ptoas-bin | |
| SIMPLER_ROOT: ${{ github.workspace }}/simpler | |
| PTO_ISA_ROOT: ${{ github.workspace }}/pto-isa | |
| steps: | |
| - name: Checkout pypto-lib | |
| uses: actions/checkout@v4 | |
| - name: Set up C++ compiler | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y g++-15 || sudo apt-get install -y g++ | |
| if ! command -v g++-15; then sudo ln -s $(which g++) /usr/local/bin/g++-15; fi | |
| - name: Set up Python 3.10 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install nanobind | |
| pip install torch --index-url https://download.pytorch.org/whl/cpu | |
| - name: Install pypto | |
| run: | | |
| git clone --recurse-submodules --depth=1 https://github.com/hw-native-sys/pypto.git /tmp/pypto | |
| pip install -v /tmp/pypto | |
| - name: Install ptoas | |
| run: | | |
| PTOAS_VERSION=v0.24 | |
| curl --fail --location --retry 3 --retry-all-errors \ | |
| https://github.com/hw-native-sys/PTOAS/releases/download/${PTOAS_VERSION}/ptoas-bin-x86_64.tar.gz \ | |
| -o /tmp/ptoas-bin-x86_64.tar.gz | |
| mkdir -p $GITHUB_WORKSPACE/ptoas-bin | |
| tar -xzf /tmp/ptoas-bin-x86_64.tar.gz -C $GITHUB_WORKSPACE/ptoas-bin | |
| chmod +x $GITHUB_WORKSPACE/ptoas-bin/ptoas | |
| chmod +x $GITHUB_WORKSPACE/ptoas-bin/bin/ptoas | |
| - name: Clone pto-isa repository | |
| run: git clone --depth 1 https://github.com/PTO-ISA/pto-isa.git $GITHUB_WORKSPACE/pto-isa | |
| - name: Install simpler (stable) | |
| run: | | |
| git clone --branch stable --depth 1 https://github.com/hw-native-sys/simpler.git $GITHUB_WORKSPACE/simpler | |
| cd $GITHUB_WORKSPACE/simpler | |
| pip install -v . | |
| - name: Run a2a3sim tests | |
| run: | | |
| for f in $(find examples/beginner examples/intermediate -name '*.py' | sort); do | |
| echo "::group::$f" | |
| python "$f" -p a2a3sim | |
| echo "::endgroup::" | |
| done | |
| a5sim: | |
| runs-on: ubuntu-latest | |
| env: | |
| PTOAS_ROOT: ${{ github.workspace }}/ptoas-bin | |
| SIMPLER_ROOT: ${{ github.workspace }}/simpler | |
| PTO_ISA_ROOT: ${{ github.workspace }}/pto-isa | |
| steps: | |
| - name: Checkout pypto-lib | |
| uses: actions/checkout@v4 | |
| - name: Set up C++ compiler | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y g++-15 || sudo apt-get install -y g++ | |
| if ! command -v g++-15; then sudo ln -s $(which g++) /usr/local/bin/g++-15; fi | |
| - name: Set up Python 3.10 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install nanobind | |
| pip install torch --index-url https://download.pytorch.org/whl/cpu | |
| - name: Install pypto | |
| run: | | |
| git clone --recurse-submodules --depth=1 https://github.com/hw-native-sys/pypto.git /tmp/pypto | |
| pip install -v /tmp/pypto | |
| - name: Install ptoas | |
| run: | | |
| PTOAS_VERSION=v0.24 | |
| curl --fail --location --retry 3 --retry-all-errors \ | |
| https://github.com/hw-native-sys/PTOAS/releases/download/${PTOAS_VERSION}/ptoas-bin-x86_64.tar.gz \ | |
| -o /tmp/ptoas-bin-x86_64.tar.gz | |
| mkdir -p $GITHUB_WORKSPACE/ptoas-bin | |
| tar -xzf /tmp/ptoas-bin-x86_64.tar.gz -C $GITHUB_WORKSPACE/ptoas-bin | |
| chmod +x $GITHUB_WORKSPACE/ptoas-bin/ptoas | |
| chmod +x $GITHUB_WORKSPACE/ptoas-bin/bin/ptoas | |
| - name: Clone pto-isa repository | |
| run: git clone --depth 1 https://github.com/PTO-ISA/pto-isa.git $GITHUB_WORKSPACE/pto-isa | |
| - name: Install simpler (stable) | |
| run: | | |
| git clone --branch stable --depth 1 https://github.com/hw-native-sys/simpler.git $GITHUB_WORKSPACE/simpler | |
| cd $GITHUB_WORKSPACE/simpler | |
| pip install -v . | |
| - name: Run a5sim tests | |
| run: | | |
| for f in $(find examples/beginner examples/intermediate -name '*.py' | sort); do | |
| echo "::group::$f" | |
| python "$f" -p a5sim | |
| echo "::endgroup::" | |
| done | |
| a2a3: | |
| runs-on: [self-hosted, linux, arm64, npu] | |
| env: | |
| ASCEND_HOME_PATH: /usr/local/Ascend/cann-8.5.0 | |
| PTOAS_ROOT: ${{ github.workspace }}/ptoas-bin | |
| SIMPLER_ROOT: ${{ github.workspace }}/simpler | |
| PTO_ISA_ROOT: ${{ github.workspace }}/pto-isa | |
| container: | |
| image: localhost:5000/ci-device-py310:latest | |
| options: >- | |
| --privileged | |
| -v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi:ro | |
| -v /usr/local/Ascend:/usr/local/Ascend:ro | |
| -v /dev:/dev | |
| -e ASCEND_HOME_PATH=/usr/local/Ascend/cann-8.5.0 | |
| -e DEVICE_ID | |
| steps: | |
| - name: Checkout pypto-lib | |
| uses: actions/checkout@v4 | |
| - name: Check NPU | |
| run: npu-smi info | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install nanobind | |
| pip install torch | |
| - name: Install pypto | |
| run: | | |
| git clone --recurse-submodules --depth=1 https://github.com/hw-native-sys/pypto.git /tmp/pypto | |
| pip install -v /tmp/pypto | |
| - name: Install ptoas | |
| run: | | |
| PTOAS_VERSION=v0.24 | |
| curl --fail --location --retry 3 --retry-all-errors \ | |
| https://github.com/hw-native-sys/PTOAS/releases/download/${PTOAS_VERSION}/ptoas-bin-aarch64.tar.gz \ | |
| -o /tmp/ptoas-bin-aarch64.tar.gz | |
| mkdir -p $GITHUB_WORKSPACE/ptoas-bin | |
| tar -xzf /tmp/ptoas-bin-aarch64.tar.gz -C $GITHUB_WORKSPACE/ptoas-bin | |
| chmod +x $GITHUB_WORKSPACE/ptoas-bin/ptoas | |
| chmod +x $GITHUB_WORKSPACE/ptoas-bin/bin/ptoas | |
| - name: Add Ascend tools to PATH | |
| run: echo "$ASCEND_HOME_PATH/bin" >> $GITHUB_PATH | |
| - name: Clone pto-isa repository | |
| run: git clone --depth 1 https://github.com/PTO-ISA/pto-isa.git $GITHUB_WORKSPACE/pto-isa | |
| - name: Install simpler (stable) | |
| run: | | |
| git clone --branch stable --depth 1 https://github.com/hw-native-sys/simpler.git $GITHUB_WORKSPACE/simpler | |
| cd $GITHUB_WORKSPACE/simpler | |
| pip install -v . | |
| - name: Run a2a3 tests | |
| run: | | |
| for f in $(find examples/beginner examples/intermediate -name '*.py' | sort); do | |
| echo "::group::$f" | |
| python "$f" -p a2a3 -d $DEVICE_ID | |
| echo "::endgroup::" | |
| done |