Fix Github workflows issues #14556
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
| # Copyright (c) 2022-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | |
| # | |
| # See LICENSE for license information. | |
| # A workflow to trigger TE build on GitHub | |
| name: 'Build' | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| core: | |
| name: 'Core' | |
| runs-on: ubuntu-latest | |
| container: | |
| image: nvcr.io/nvidia/cuda:12.1.0-devel-ubuntu22.04 | |
| options: --user root | |
| steps: | |
| - name: 'Dependencies' | |
| run: | | |
| apt-get update | |
| apt-get install -y git python3.9 pip cudnn9-cuda-12 | |
| pip install cmake==3.21.0 pybind11[global] ninja | |
| - name: 'Checkout' | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: ccache | |
| uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad | |
| - name: 'Build' | |
| run: NVTE_USE_CCACHE=1 NVTE_CCACHE_BIN=sccache pip install --no-build-isolation . -v | |
| env: | |
| NVTE_FRAMEWORK: none | |
| MAX_JOBS: 1 | |
| SCCACHE_GHA_ENABLED: "true" | |
| SCCACHE_CACHE_SIZE: "2G" | |
| - name: 'Sanity check' | |
| run: python3 -c "import transformer_engine" | |
| working-directory: / | |
| pytorch: | |
| name: 'PyTorch' | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/nvidia/jax:jax | |
| options: --user root | |
| steps: | |
| - name: 'Dependencies' | |
| run: | | |
| pip install --no-cache-dir cmake==3.21.0 pybind11[global] ninja pydantic importlib-metadata>=1.0 packaging numpy einops onnxscript | |
| pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cu130 | |
| - name: 'Checkout' | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: ccache | |
| uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad | |
| - name: 'Build' | |
| run: NVTE_USE_CCACHE=1 NVTE_CCACHE_BIN=sccache pip install --no-build-isolation . -v --no-deps | |
| env: | |
| NVTE_FRAMEWORK: pytorch | |
| MAX_JOBS: 1 | |
| SCCACHE_GHA_ENABLED: "true" | |
| SCCACHE_CACHE_SIZE: "2G" | |
| - name: 'Sanity check' | |
| run: python3 tests/pytorch/test_sanity_import.py | |
| jax: | |
| name: 'JAX' | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/nvidia/jax:jax | |
| options: --user root | |
| steps: | |
| - name: 'Dependencies' | |
| run: pip install cmake==3.21.0 pybind11[global] | |
| - name: 'Checkout' | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: ccache | |
| uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad | |
| - name: 'Build' | |
| run: | | |
| NVTE_CCACHE_BIN=sccache NVTE_USE_CCACHE=1 pip install --no-build-isolation . -v | |
| env: | |
| NVTE_FRAMEWORK: jax | |
| MAX_JOBS: 1 | |
| SCCACHE_GHA_ENABLED: "true" | |
| SCCACHE_CACHE_SIZE: "2G" | |
| - name: 'Sanity check' | |
| run: python3 tests/jax/test_sanity_import.py | |
| all: | |
| name: 'All' | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/nvidia/jax:jax | |
| options: --user root | |
| steps: | |
| - name: 'Dependencies' | |
| run: | | |
| pip install --no-cache-dir cmake==3.21.0 pybind11[global] einops onnxscript | |
| pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cu130 | |
| - name: 'Checkout' | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: ccache | |
| uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad | |
| - name: 'Build' | |
| run: NVTE_USE_CCACHE=1 NVTE_CCACHE_BIN=sccache pip install --no-build-isolation . -v --no-deps | |
| env: | |
| NVTE_FRAMEWORK: all | |
| MAX_JOBS: 1 | |
| SCCACHE_GHA_ENABLED: "true" | |
| SCCACHE_CACHE_SIZE: "2G" | |
| - name: 'Sanity check' | |
| run: | | |
| python3 tests/pytorch/test_sanity_import.py | |
| python3 tests/jax/test_sanity_import.py |