-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ghstack-poisoned]
- Loading branch information
Showing
41 changed files
with
2,345 additions
and
620 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Run Float8nocompile Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'gh/**' | ||
paths: | ||
- 'torchao/prototype/float8nocompile/**' | ||
- '!torchao/prototype/float8nocompile/**' | ||
pull_request: | ||
branches: | ||
- main | ||
- 'gh/**' | ||
paths: | ||
- 'torchao/prototype/float8nocompile/**' | ||
- '!torchao/prototype/float8nocompile/**' | ||
|
||
concurrency: | ||
group: floatnocompile_test-${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- name: SM-89 | ||
runs-on: linux.g6.4xlarge.experimental.nvidia.gpu | ||
torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/cu121' | ||
gpu-arch-type: "cuda" | ||
gpu-arch-version: "12.1" | ||
|
||
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | ||
with: | ||
timeout: 300 | ||
runner: ${{ matrix.runs-on }} | ||
gpu-arch-type: ${{ matrix.gpu-arch-type }} | ||
gpu-arch-version: ${{ matrix.gpu-arch-version }} | ||
submodules: recursive | ||
script: | | ||
conda create -n venv python=3.9 -y | ||
conda activate venv | ||
export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH | ||
python -m pip install --upgrade pip | ||
pip install ${{ matrix.torch-spec }} | ||
pip install -r dev-requirements.txt | ||
pip install . | ||
cd torchao/prototype/float8nocompile | ||
pytest kernels/ --verbose -s | ||
pytest test/train_test.py --verbose -s |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.