Include SAM Fast in torch.compile nightly benchmark workflow #26
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
name: Benchmark torch.compile models nightly | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
merge_group: | |
# run every day at 9:15pm | |
schedule: | |
- cron: '15 21 * * *' | |
jobs: | |
nightly: | |
strategy: | |
fail-fast: false | |
runs-on: [self-hosted, gpu] | |
timeout-minutes: 1320 | |
steps: | |
- name: Clean up previous run | |
run: | | |
echo "Cleaning up previous run" | |
cd $RUNNER_WORKSPACE | |
pwd | |
cd .. | |
pwd | |
rm -rf _tool | |
- name: Setup Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
architecture: x64 | |
- name: Setup Java 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Checkout TorchServe | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install dependencies | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y apache2-utils | |
pip install -r benchmarks/requirements-ab.txt | |
chmod +x install_segment_anything_fast.sh | |
source install_segment_anything_fast.sh | |
export SEGMENT_ANYTHING_FAST_USE_FLASH_4=0 | |
- name: Benchmark gpu nightly | |
run: python benchmarks/auto_benchmark.py --input benchmarks/benchmark_config_torch_compile_gpu.yaml --skip false --nightly True |