Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pr test to run operators on h100 #25

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
build-push-docker:
if: ${{ github.repository_owner == 'pytorch-labs' }}
runs-on: 32-core-ubuntu
environment: docker-s3-upload
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: TritonBench PR Test
on:
pull_request:
paths:
- .ci/*
- tritonbench/*
- .github/workflows/pr.yaml

jobs:
h100-pytorch-test:
# Don't run on forked repos
if: github.repository_owner == 'pytorch-labs'
runs-on: [gcp-h100-runner]
timeout-minutes: 240
environment: docker-s3-upload
env:
CONDA_ENV: "pytorch"
SETUP_SCRIPT: "/workspace/setup_instance.sh"
steps:
- name: Checkout Tritonbench
uses: actions/checkout@v3
with:
# no need to checkout submodules recursively
submodules: true
- name: Tune Nvidia GPU
run: |
sudo nvidia-smi -pm 1
sudo ldconfig
nvidia-smi
- name: Test Tritonbench operators
run: |
bash ./.ci/tritonbench/test-operators.sh
2 changes: 1 addition & 1 deletion tritonbench/operators/ragged_attention/hstu.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

try:
# Internal Import
from hammer.generative_recommenders.ops.triton.triton_ragged_hstu_attention import (
from hammer.oss.generative_recommenders.ops.triton.triton_ragged_hstu_attention import (
_ragged_hstu_attn_fwd,
_ragged_hstu_attn_fwd_persistent,
)
Expand Down
2 changes: 0 additions & 2 deletions tritonbench/operators/sum/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import os
from typing import Callable, Generator, List, Optional, Tuple

import matplotlib.pyplot as plt

import torch
import triton
import triton.language as tl
Expand Down
2 changes: 1 addition & 1 deletion tritonbench/utils/path_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from pathlib import Path

REPO_PATH = Path(os.path.abspath(__file__)).parent.parent
REPO_PATH = Path(os.path.abspath(__file__)).parent.parent.parent
SUBMODULE_PATH = REPO_PATH.joinpath("submodules")


Expand Down
Loading