Skip to content

Commit 0c7d963

Browse files
committed
Wrap python around with no exit
1 parent 03c5d72 commit 0c7d963

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.ci/scripts/test_qnn_static_llama.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@ cp -f build-x86/backends/qualcomm/PyQnnManagerAdaptor.cpython-310-x86_64-linux-g
3333
cp -f build-x86/backends/qualcomm/PyQnnWrapperAdaptor.cpython-310-x86_64-linux-gnu.so backends/qualcomm/python
3434

3535

36+
set +e
3637
# Compile only as weight sharing is not applicable on x86
3738
$PYTHON_EXECUTABLE backends/qualcomm/tests/test_qnn_delegate.py -k TestExampleScript.test_stories_single_llama --model SM8650 --build_folder build-android/ --executorch_root . --artifact_dir . --compile_only
3839
exit_code1=$?
3940

4041
# Checks accuracy with weight sharing disabled since x86 does not support weight sharing.
4142
$PYTHON_EXECUTABLE backends/qualcomm/tests/test_qnn_delegate.py -k TestExampleScript.test_stories_single_llama --model SM8650 --build_folder build-android/ --executorch_root . --artifact_dir . --compile_only
4243
exit_code2=$?
44+
set -e
4345

4446
# Check the exit codes and print messages
4547
if [ $exit_code1 -ne 0 ]; then

backends/qualcomm/tests/test_qnn_delegate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3626,7 +3626,7 @@ def test_stories_single_llama(self):
36263626
if self.enable_x86_64:
36273627
cmds.extend(["--enable_x86_64"])
36283628

3629-
golden_start_with = "wOnce upon a time,"
3629+
golden_start_with = "sOnce upon a time,"
36303630
p = subprocess.Popen(cmds, stdout=subprocess.DEVNULL)
36313631
with Listener((self.ip, self.port)) as listener:
36323632
conn = listener.accept()
@@ -3641,7 +3641,7 @@ def test_stories_single_llama(self):
36413641
# x86 does not allow weight sharing, so we don't check pte size
36423642
if not self.enable_x86_64:
36433643
pte_size = msg["pte_size"]
3644-
self.assertLessEqual(pte_size, 130000000)
3644+
self.assertLessEqual(pte_size, 13) # 130000000
36453645

36463646
@unittest.skip("dynamic shape inputs appear in recent torch.export.export")
36473647
def test_mobilebert(self):

0 commit comments

Comments
 (0)