File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,15 @@ cp -f build-x86/backends/qualcomm/PyQnnManagerAdaptor.cpython-310-x86_64-linux-g
3333cp -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
3839exit_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
4243exit_code2=$?
44+ set -e
4345
4446# Check the exit codes and print messages
4547if [ $exit_code1 -ne 0 ]; then
Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments