Skip to content

Commit d07533e

Browse files
committed
fix test for granite
1 parent 029735f commit d07533e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/mtmd/tests.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ add_test_vision "ggml-org/InternVL2_5-1B-GGUF:Q8_0"
6969
add_test_vision "ggml-org/InternVL3-1B-Instruct-GGUF:Q8_0"
7070
add_test_vision "ggml-org/Qwen2.5-Omni-3B-GGUF:Q4_K_M"
7171
add_test_vision "ggml-org/LFM2-VL-450M-GGUF:Q8_0"
72-
# add_test_vision "ggml-org/granite-docling-258M-GGUF:Q8_0" # this model outputs structured format instead of text
72+
add_test_vision "ggml-org/granite-docling-258M-GGUF:Q8_0"
7373
add_test_vision "ggml-org/LightOnOCR-1B-1025-GGUF:Q8_0"
7474

7575
add_test_audio "ggml-org/ultravox-v0_5-llama-3_2-1b-GGUF:Q8_0"
@@ -139,7 +139,10 @@ for i in "${!arr_hf[@]}"; do
139139

140140
echo "$output" > $SCRIPT_DIR/output/$bin-$(echo "$hf" | tr '/' '-').log
141141

142-
if echo "$output" | grep -iq "new york"; then
142+
# either contains "new york" or both "men" and "walk"
143+
if echo "$output" | grep -iq "new york" \
144+
|| (echo "$output" | grep -iq "men" && echo "$output" | grep -iq "walk")
145+
then
143146
result="$prefix \033[32mOK\033[0m: $bin $hf"
144147
else
145148
result="$prefix \033[31mFAIL\033[0m: $bin $hf"

0 commit comments

Comments
 (0)