Skip to content

Fix hadamard and FP4 gpu tests #10

Fix hadamard and FP4 gpu tests

Fix hadamard and FP4 gpu tests #10

Workflow file for this run

name: GPU tests
on:
push:
branches: ["pull-request/[0-9]+"]
# TODO: paths cannot be used since push happens to copied PR and only latest commit to PR is used
# paths:
# - ".github/workflows/gpu_tests.yml"
# - "modelopt/**"
# - "tests/gpu/**"
# - "setup.py"
# - "tox.ini"
# Cancel previous runs if new commit is pushed to the same PR
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
gpu-tests:
# Runner list at https://github.com/nv-gha-runners/enterprise-runner-configuration/blob/main/docs/runner-groups.md
runs-on: linux-amd64-gpu-h100-latest-1
timeout-minutes: 60
container:
image: nvcr.io/nvidia/pytorch:25.06-py3
env:
GIT_DEPTH: 1000 # For correct version for tests/gpu/torch/quantization/plugins/test_megatron.py
LD_LIBRARY_PATH: "/usr/lib/x86_64-linux-gnu:${LD_LIBRARY_PATH}" # Add libcudnn*.so and libnv*.so to path.
PIP_CONSTRAINT: "" # Disable pip constraint for upgrading packages
steps:
- uses: actions/checkout@v4
- name: Setup proxy cache
uses: nv-gha-runners/setup-proxy-cache@main
- name: Run gpu tests
run: pip install tox-current-env && tox -e py312-cuda12-gpu --current-env