File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
scripts/snapdragon/qdc/tests Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1- import pytest ,subprocess ,sys
1+ import pytest
2+ import subprocess
3+ import sys
24
35tmp_path = '/data/local/tmp'
46pkg_path = f'{ tmp_path } /llama.cpp'
@@ -23,10 +25,9 @@ def test_install():
2325
2426## Basic cli tests
2527def run_llama_cli (dev , opts ):
26- run_cmd ([ 'adb' , 'shell' ,
27- f'{ cli_pref } /llama-cli -m { model } --device { dev } -ngl 99 --batch-size 128 -n 128 -t 4 -no-cnv --seed 42 { opts } ' +
28- f'-p "what is the most popular cookie in the world?\n Please provide a very brief bullet point summary.\n Begin your answer with **BEGIN**."'
29- ])
28+ prompt = 'what is the most popular cookie in the world?\n Please provide a very brief bullet point summary.\n Begin your answer with **BEGIN**.'
29+ opts = '--batch-size 128 -n 128 -no-cnv --seed 42 ' + opts
30+ run_cmd (['adb' , 'shell' , f'{ cli_pref } /llama-cli -m { model } --device { dev } -ngl 99 -t 4 { opts } -p "{ prompt } "' ])
3031
3132
3233@pytest .mark .dependency (depends = ['test_install' ])
You can’t perform that action at this time.
0 commit comments