Skip to content

Commit 92c5d1e

Browse files
committed
Wrap python around with no exit
1 parent ca7bd80 commit 92c5d1e

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
@@ -3804,7 +3804,7 @@ def test_stories_single_llama(self):
38043804
if self.enable_x86_64:
38053805
cmds.extend(["--enable_x86_64"])
38063806

3807-
golden_start_with = "wOnce upon a time,"
3807+
golden_start_with = "sOnce upon a time,"
38083808
p = subprocess.Popen(cmds, stdout=subprocess.DEVNULL)
38093809
with Listener((self.ip, self.port)) as listener:
38103810
conn = listener.accept()
@@ -3819,7 +3819,7 @@ def test_stories_single_llama(self):
38193819
# x86 does not allow weight sharing, so we don't check pte size
38203820
if not self.enable_x86_64:
38213821
pte_size = msg["pte_size"]
3822-
self.assertLessEqual(pte_size, 130000000)
3822+
self.assertLessEqual(pte_size, 13) # 130000000
38233823

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

0 commit comments

Comments
 (0)