File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 13
13
#
14
14
# Usage:
15
15
#
16
- # ./tests/run-tests.sh <model_name>
16
+ # ./tests/run-tests.sh <model_name> [threads]
17
17
#
18
18
19
19
cd ` dirname $0 `
@@ -32,7 +32,7 @@ function list_models {
32
32
}
33
33
34
34
if [ $# -eq 0 ]; then
35
- printf " Usage: $0 [model]\n\n"
35
+ printf " Usage: $0 [model] [threads] \n\n"
36
36
printf " No model specified. Aborting\n"
37
37
list_models
38
38
exit 1
41
41
model=$1
42
42
main=" ../main"
43
43
44
+ threads=" "
45
+ if [ $# -eq 2 ]; then
46
+ threads=" -t $2 "
47
+ fi
48
+
44
49
if [ ! -f ../models/ggml-$model .bin ]; then
45
50
printf " Model $model not found. Aborting\n"
46
51
list_models
@@ -105,7 +110,7 @@ function run_lang() {
105
110
fi
106
111
fi
107
112
108
- $main -m ../models/ggml-$model .bin -f $fname_dst -l $lang -otxt 2> /dev/null
113
+ $main -m ../models/ggml-$model .bin $threads -f $fname_dst -l $lang -otxt 2> /dev/null
109
114
110
115
git diff --no-index --word-diff=color --word-diff-regex=. $lang -$i -ref.txt $fname_dst .txt
111
116
You can’t perform that action at this time.
0 commit comments