Skip to content

Commit fb683d1

Browse files
committed
test sdxl ci
Signed-off-by: Vivek Agrawal <197589114+amd-vivekag@users.noreply.github.com>
1 parent 3e8e700 commit fb683d1

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.github/workflows/ci_sdxl_flux_serving.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ name: Release SDXL and FLUX Shortfin Serving Tests
88

99
on:
1010
workflow_dispatch:
11+
push:
12+
branches:
13+
- branch-name
1114
schedule:
1215
# Weekdays at 11:00 AM UTC = 03:00 AM PST / 04:00 AM PDT
1316
- cron: "0 9 * * *"
@@ -38,7 +41,7 @@ jobs:
3841
shell: bash
3942
env:
4043
VENV_DIR: ${{ github.workspace }}/.venv
41-
HF_HOME: "/amdshark-cache/data/huggingface"
44+
HF_HOME: "/amdshark-dev/data/huggingface"
4245
HF_TOKEN: ${{ secrets.HF_FLUX_TOKEN }}
4346
steps:
4447
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -56,15 +59,17 @@ jobs:
5659
- name: Install pip deps
5760
run: bash scripts/setenv.sh --nightly
5861

59-
- name: Run SDXL (precompiled)
62+
- name: Run SDXL (export)
6063
run: |
64+
mkdir -p output_artifacts/sdxl
6165
bash scripts/run_sdxl_flux.sh \
6266
--model sdxl \
63-
--build_preference precompiled 2>&1 | tee output_artifacts/sdxl/sdxl_precompile.log
67+
--build_preference export --force-update 2>&1 | tee output_artifacts/sdxl/sdxl_precompile.log
6468
6569
- name: Run Flux-Dev (precompiled)
6670
if: always()
6771
run: |
72+
mkdir -p output_artifacts/flux_dev
6873
bash scripts/run_sdxl_flux.sh \
6974
--model flux_dev \
7075
--build_preference precompiled \
@@ -73,6 +78,7 @@ jobs:
7378
- name: Run Flux-Dev (compile)
7479
if: always()
7580
run: |
81+
mkdir -p output_artifacts/flux_dev
7682
bash scripts/run_sdxl_flux.sh \
7783
--model flux_dev \
7884
--build_preference compile \
@@ -81,6 +87,7 @@ jobs:
8187
- name: Run Flux-Schnell (precompiled)
8288
if: always()
8389
run: |
90+
mkdir -p output_artifacts/flux_schnell
8491
bash scripts/run_sdxl_flux.sh \
8592
--model flux_schnell \
8693
--build_preference precompiled \
@@ -89,6 +96,7 @@ jobs:
8996
- name: Run Flux-Schnell (compile)
9097
if: always()
9198
run: |
99+
mkdir -p output_artifacts/flux_schnell
92100
bash scripts/run_sdxl_flux.sh \
93101
--model flux_schnell \
94102
--build_preference compile \

scripts/run_sdxl_flux.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
export BUILD_PREFERENCE="precompiled"
44
export PORT=8112
5+
export FORCE_UPDATE=False
56
SCRIPT_DIR=$(dirname $(realpath "$0"))
67
SHORTFIN_SRC=$SCRIPT_DIR/../shortfin
78
HF_HOME_DIR=${HF_HOME:-"$HOME/.cache/huggingface"}
@@ -15,7 +16,7 @@ function run_sdxl_model() {
1516
--device=hip \
1617
--device_ids=0 \
1718
--build_preference=$BUILD_PREFERENCE \
18-
--port $PORT &
19+
--port $PORT --force_update=$FORCE_UPDATE &
1920

2021
SHORTFIN_PROCESS=$!
2122
wait_for_server $PORT
@@ -112,6 +113,10 @@ while [[ "$1" != "" ]]; do
112113
shift
113114
export HF_TOKEN=$1
114115
;;
116+
--force-update)
117+
shift
118+
export FORCE_UPDATE=True
119+
;;
115120
-h | --help)
116121
echo "Usage: $0 [--<different flags>] "
117122
echo "--build_preference : Preference for builder artifact generation, default: compile"

0 commit comments

Comments
 (0)