This repository was archived by the owner on Oct 25, 2024. It is now read-only.
File tree 4 files changed +14
-4
lines changed
.github/workflows/script/unitTest
4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,11 @@ function pytest() {
71
71
if [ $( grep -c " Segmentation fault" ${ut_log_name} ) != 0 ]; then
72
72
$BOLD_RED && echo " Segmentation Fault found in UT, please check the output..." && $RESET
73
73
exit 1
74
- fi
74
+ fi
75
+ if [ $( grep -c " ImportError:" ${ut_log_name} ) != 0 ]; then
76
+ $BOLD_RED && echo " ImportError found in UT, please check the output..." && $RESET
77
+ exit 1
78
+ fi
75
79
$BOLD_GREEN && echo " UT finished successfully! " && $RESET
76
80
}
77
81
Original file line number Diff line number Diff line change @@ -22,7 +22,10 @@ function neuralspeed_test() {
22
22
[ $( grep -c " Segmentation fault" ${ut_log_name} ) != 0 ] ||
23
23
[ $( grep -c " core dumped" ${ut_log_name} ) != 0 ] ||
24
24
[ $( grep -c " ==ERROR:" ${ut_log_name} ) != 0 ] ||
25
- [ $( grep -c " ModuleNotFoundError:" ${ut_log_name} ) != 0 ]; then
25
+ [ $( grep -c " ModuleNotFoundError:" ${ut_log_name} ) != 0 ] ||
26
+ [ $( grep -c " ImportError:" ${ut_log_name} ) != 0 ]; then
27
+ exit 1
28
+ fi ; then
26
29
$BOLD_RED && echo " Find errors in engine test, please check the output..." && $RESET
27
30
exit 1
28
31
else
Original file line number Diff line number Diff line change @@ -67,7 +67,10 @@ function pytest() {
67
67
$BOLD_RED && echo " Segmentation Fault found in UT, please check the output..." && $RESET
68
68
exit 1
69
69
fi
70
-
70
+ if [ $( grep -c " ImportError:" ${ut_log_name} ) != 0 ]; then
71
+ $BOLD_RED && echo " ImportError found in UT, please check the output..." && $RESET
72
+ exit 1
73
+ fi
71
74
$BOLD_GREEN && echo " UT finished successfully! " && $RESET
72
75
}
73
76
Original file line number Diff line number Diff line change 14
14
15
15
import os
16
16
import unittest
17
- from intel_extension_for_transformers .transformers .modeling .llava_models import LlavaMistralForCausalLM
17
+ from intel_extension_for_transformers .transformers .modeling .llava_models . llava_mistral import LlavaMistralForCausalLM
18
18
from accelerate import init_empty_weights
19
19
from transformers import AutoConfig , AutoTokenizer
20
20
import torch
You can’t perform that action at this time.
0 commit comments