Skip to content

Commit da4183b

Browse files
committed
Merge branch 'main' into feature/2246-e2e-accuracy-subset
2 parents 3122341 + 4c5296d commit da4183b

File tree

189 files changed

+8290
-1996
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+8290
-1996
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
BlenderbotSmallForCausalLM
2+
CamemBert
3+
DistilBertForMaskedLM
4+
ElectraForCausalLM
5+
GPT2ForSequenceClassification
6+
MobileBertForMaskedLM
7+
MobileBertForQuestionAnswering
8+
Speech2Text2ForCausalLM
9+
T5ForConditionalGeneration
10+
XLNetLMHeadModel
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
beit_base_patch16_224
2+
fbnetv3_b
3+
gmixer_24_224
4+
mobilenetv3_large_100
5+
nfnet_l0
6+
tnt_s_patch16_224
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
resnet50
2+
hf_T5
3+
densenet121
4+
mobilenet_v2

.github/pins/pytorch-upstream.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0a2685160140656e3e53818611dd2c65c4397be5
1+
8321eec009c8c79145ebccd51fdfc336e5f8b848

.github/workflows/auto-update-translator-cid.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
uses: actions/checkout@v4
2525
with:
2626
fetch-depth: 0
27+
token: ${{ secrets.BOT_TOKEN }}
2728

2829
# search the opened PR that has branch "bot/update_translator_cid", no new PR as long as the target PR is open
2930
- name: Search the opened PR that has branch ${{ env.PR_BRANCH }}
@@ -98,8 +99,8 @@ jobs:
9899
env:
99100
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
100101
run: |
101-
git config --global user.name 'github-actions[bot]'
102-
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
102+
git config --global user.name 'glados-intel'
103+
git config --global user.email 'glados@intel.com'
103104
104105
if git show-ref --verify --quiet "refs/remotes/origin/${PR_BRANCH}"; then
105106
echo "${PR_BRANCH} already exist, deleting..."

.github/workflows/build-test-reusable.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ jobs:
159159
echo "TRANSFORMERS_VERSION=$TRANSFORMERS_VERSION" | tee -a $GITHUB_ENV
160160
161161
- name: Install transformers
162-
if: ${{ inputs.python_version != '3.12' }}
163162
uses: ./.github/actions/install-dependency
164163
with:
165164
package: transformers
@@ -168,7 +167,6 @@ jobs:
168167
try-tag-prefix: v
169168

170169
- name: Run E2E test
171-
if: ${{ inputs.python_version != '3.12' }}
172170
run: |
173171
# Set WORKSPACE for inductor_xpu_test.sh to make sure it creates "inductor_log" outside of pytorch cloned directory
174172
export WORKSPACE=$GITHUB_WORKSPACE

.github/workflows/e2e-reusable.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,16 +222,15 @@ jobs:
222222
cd pytorch
223223
224224
# if "only_one_model" is set, then test this model
225-
# if "models" == "subset", then test the models from .github/models/performance/{suite}.txt
225+
# if "models" == "subset", then test the models from .github/models/{accuracy,performance}/{suite}.txt
226226
# otherwise test all models.
227227
228228
if [[ "${{ inputs.only_one_model }}" ]]; then
229229
bash -e $GITHUB_WORKSPACE/scripts/inductor_xpu_test.sh ${{ inputs.suite }} ${{ inputs.dtype }} ${{ inputs.mode }} ${{ inputs.test_mode }} xpu 0 static 1 0 ${{ inputs.only_one_model }}
230230
elif [[ "${{ inputs.models }}" == "subset" ]]; then
231231
while read model; do
232232
bash -e $GITHUB_WORKSPACE/scripts/inductor_xpu_test.sh ${{ inputs.suite }} ${{ inputs.dtype }} ${{ inputs.mode }} ${{ inputs.test_mode }} xpu 0 static 1 0 $model
233-
grep ,$model, $WORKSPACE/inductor_log/*/*/*.csv | grep -q ,pass, || ${{ inputs.test_all_subset_models }}
234-
done < $GITHUB_WORKSPACE/.github/models/performance/${{ inputs.suite }}.txt
233+
done < $GITHUB_WORKSPACE/.github/models/${{ inputs.test_mode }}/${{ inputs.suite }}.txt
235234
else
236235
bash -e $GITHUB_WORKSPACE/scripts/inductor_xpu_test.sh ${{ inputs.suite }} ${{ inputs.dtype }} ${{ inputs.mode }} ${{ inputs.test_mode }} xpu 0 static 1 0
237236
fi

.github/workflows/integration-tests.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ jobs:
226226
- name: Install pip dependencies
227227
run: |
228228
python3 -m pip install --upgrade pip
229-
python3 -m pip install wheel cmake==3.24 ninja pytest-xdist lit
229+
python3 -m pip install cython setuptools wheel cmake==3.24 ninja pytest-forked pytest-xdist lit
230230
- name: Install Triton
231231
env:
232232
TRITON_BUILD_WITH_CCACHE: "true"
@@ -245,18 +245,19 @@ jobs:
245245
lit -v "${LIT_TEST_DIR}"
246246
- name: Run python tests on CUDA
247247
run: |
248-
SHARED_LIB_DIR="${GITHUB_WORKSPACE}/python/build/$(ls python/build | grep -i lib)/triton/_C"
249-
if [ ! -d "${SHARED_LIB_DIR}" ]; then
250-
echo "Coult not find '${SHARED_LIB_DIR}'" ; exit -1
248+
INSTRUMENTATION_LIB_DIR="${GITHUB_WORKSPACE}/python/build/$(ls python/build | grep -i lib)/triton/instrumentation"
249+
if [ ! -d "${INSTRUMENTATION_LIB_DIR}" ]; then
250+
echo "Coult not find '${INSTRUMENTATION_LIB_DIR}'" ; exit -1
251251
fi
252252
cd python/test/unit
253-
python3 -m pytest -s -n 8 --ignore=hopper/test_flashattention.py --ignore=language/test_line_info.py --ignore=language/test_subprocess.py
253+
python3 -m pytest -s -n 8 --ignore=hopper/test_flashattention.py --ignore=language/test_line_info.py --ignore=language/test_subprocess.py --ignore=test_debug.py
254254
python3 -m pytest -s -n 8 language/test_subprocess.py
255+
python3 -m pytest -s -n 8 test_debug.py --forked
255256
# Run test_line_info.py separately with TRITON_DISABLE_LINE_INFO=0
256257
TRITON_DISABLE_LINE_INFO=0 python3 -m pytest -s language/test_line_info.py
257258
# Run hopper/test_flashattention.py separately to avoid out of gpu memory
258259
python3 -m pytest -s hopper/test_flashattention.py
259-
TRITON_ALWAYS_COMPILE=1 TRITON_DISABLE_LINE_INFO=0 LLVM_PASS_PLUGIN_PATH=${SHARED_LIB_DIR}/libGPUHello.so \
260+
TRITON_ALWAYS_COMPILE=1 TRITON_DISABLE_LINE_INFO=0 LLVM_PASS_PLUGIN_PATH=${INSTRUMENTATION_LIB_DIR}/libGPUInstrumentationTestLib.so \
260261
python3 -m pytest --capture=tee-sys -rfs -vvv instrumentation/test_gpuhello.py
261262
- name: Run interpreter tests
262263
if: ${{ matrix.runner[0] == 'h100-runner-set' }}
@@ -400,15 +401,18 @@ jobs:
400401
lit -v "${LIT_TEST_DIR}"
401402
- name: Run python tests on HIP
402403
run: |
403-
SHARED_LIB_DIR="${GITHUB_WORKSPACE}/python/triton/_C"
404-
if [ ! -d "${SHARED_LIB_DIR}" ]; then
405-
echo "Coult not find '${SHARED_LIB_DIR}'" ; exit -1
404+
INSTRUMENTATION_LIB_DIR="${GITHUB_WORKSPACE}/python/triton/instrumentation"
405+
if [ ! -d "${INSTRUMENTATION_LIB_DIR}" ]; then
406+
echo "Coult not find '${INSTRUMENTATION_LIB_DIR}'" ; exit -1
406407
fi
407408
pytest --capture=tee-sys -rfs python/tutorials/06-fused-attention.py
408409
cd python/test/unit
409410
pytest --capture=tee-sys -rfs -n 16 language runtime \
410-
--ignore=language/test_line_info.py
411-
TRITON_ALWAYS_COMPILE=1 TRITON_DISABLE_LINE_INFO=0 LLVM_PASS_PLUGIN_PATH=${SHARED_LIB_DIR}/libGPUHello.so \
411+
--ignore=language/test_line_info.py \
412+
--ignore=test_debug.py
413+
# TODO: uncomment
414+
# pytest --capture=tee-sys -rfs test_debug.py
415+
TRITON_ALWAYS_COMPILE=1 TRITON_DISABLE_LINE_INFO=0 LLVM_PASS_PLUGIN_PATH=${INSTRUMENTATION_LIB_DIR}/libGPUInstrumentationTestLib.so \
412416
pytest --capture=tee-sys -rfs -vvv instrumentation/test_gpuhello.py
413417
414418
# Run test_line_info.py separately with TRITON_DISABLE_LINE_INFO=0

.github/workflows/integration-tests.yml.in

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ jobs:
256256
- name: Install pip dependencies
257257
run: |
258258
python3 -m pip install --upgrade pip
259-
python3 -m pip install wheel cmake==3.24 ninja pytest-xdist lit
259+
python3 -m pip install cython setuptools wheel cmake==3.24 ninja pytest-forked pytest-xdist lit
260260

261261
- name: Install Triton
262262
env:
@@ -279,18 +279,19 @@ jobs:
279279

280280
- name: Run python tests on CUDA
281281
run: |
282-
SHARED_LIB_DIR="${GITHUB_WORKSPACE}/python/build/$(ls python/build | grep -i lib)/triton/_C"
283-
if [ ! -d "${SHARED_LIB_DIR}" ]; then
284-
echo "Coult not find '${SHARED_LIB_DIR}'" ; exit -1
282+
INSTRUMENTATION_LIB_DIR="${GITHUB_WORKSPACE}/python/build/$(ls python/build | grep -i lib)/triton/instrumentation"
283+
if [ ! -d "${INSTRUMENTATION_LIB_DIR}" ]; then
284+
echo "Coult not find '${INSTRUMENTATION_LIB_DIR}'" ; exit -1
285285
fi
286286
cd python/test/unit
287-
python3 -m pytest -s -n 8 --ignore=hopper/test_flashattention.py --ignore=language/test_line_info.py --ignore=language/test_subprocess.py
287+
python3 -m pytest -s -n 8 --ignore=hopper/test_flashattention.py --ignore=language/test_line_info.py --ignore=language/test_subprocess.py --ignore=test_debug.py
288288
python3 -m pytest -s -n 8 language/test_subprocess.py
289+
python3 -m pytest -s -n 8 test_debug.py --forked
289290
# Run test_line_info.py separately with TRITON_DISABLE_LINE_INFO=0
290291
TRITON_DISABLE_LINE_INFO=0 python3 -m pytest -s language/test_line_info.py
291292
# Run hopper/test_flashattention.py separately to avoid out of gpu memory
292293
python3 -m pytest -s hopper/test_flashattention.py
293-
TRITON_ALWAYS_COMPILE=1 TRITON_DISABLE_LINE_INFO=0 LLVM_PASS_PLUGIN_PATH=${SHARED_LIB_DIR}/libGPUHello.so \
294+
TRITON_ALWAYS_COMPILE=1 TRITON_DISABLE_LINE_INFO=0 LLVM_PASS_PLUGIN_PATH=${INSTRUMENTATION_LIB_DIR}/libGPUInstrumentationTestLib.so \
294295
python3 -m pytest --capture=tee-sys -rfs -vvv instrumentation/test_gpuhello.py
295296

296297
- name: Run interpreter tests
@@ -396,15 +397,18 @@ jobs:
396397

397398
- name: Run python tests on HIP
398399
run: |
399-
SHARED_LIB_DIR="${GITHUB_WORKSPACE}/python/triton/_C"
400-
if [ ! -d "${SHARED_LIB_DIR}" ]; then
401-
echo "Coult not find '${SHARED_LIB_DIR}'" ; exit -1
400+
INSTRUMENTATION_LIB_DIR="${GITHUB_WORKSPACE}/python/triton/instrumentation"
401+
if [ ! -d "${INSTRUMENTATION_LIB_DIR}" ]; then
402+
echo "Coult not find '${INSTRUMENTATION_LIB_DIR}'" ; exit -1
402403
fi
403404
pytest --capture=tee-sys -rfs python/tutorials/06-fused-attention.py
404405
cd python/test/unit
405406
pytest --capture=tee-sys -rfs -n 16 language runtime \
406-
--ignore=language/test_line_info.py
407-
TRITON_ALWAYS_COMPILE=1 TRITON_DISABLE_LINE_INFO=0 LLVM_PASS_PLUGIN_PATH=${SHARED_LIB_DIR}/libGPUHello.so \
407+
--ignore=language/test_line_info.py \
408+
--ignore=test_debug.py
409+
# TODO: uncomment
410+
# pytest --capture=tee-sys -rfs test_debug.py
411+
TRITON_ALWAYS_COMPILE=1 TRITON_DISABLE_LINE_INFO=0 LLVM_PASS_PLUGIN_PATH=${INSTRUMENTATION_LIB_DIR}/libGPUInstrumentationTestLib.so \
408412
pytest --capture=tee-sys -rfs -vvv instrumentation/test_gpuhello.py
409413

410414
# Run test_line_info.py separately with TRITON_DISABLE_LINE_INFO=0

.github/workflows/llvm-build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ jobs:
107107
-DLLVM_INSTALL_UTILS=ON
108108
-DLLVM_TARGETS_TO_BUILD="host;NVPTX;AMDGPU"
109109
-DLLVM_ENABLE_TERMINFO=OFF
110-
-DLLVM_ABI_BREAKING_CHECKS=FORCE_OFF
111110
llvm-project/llvm
112111
113112
ninja -C llvm-project/build check-mlir install
@@ -131,7 +130,6 @@ jobs:
131130
-DLLVM_INSTALL_UTILS=ON
132131
-DLLVM_TARGETS_TO_BUILD="host;NVPTX;AMDGPU"
133132
-DLLVM_ENABLE_TERMINFO=OFF
134-
-DLLVM_ABI_BREAKING_CHECKS=FORCE_OFF
135133
llvm-project/llvm
136134
137135
ninja -C llvm-project/build check-mlir install

0 commit comments

Comments
 (0)