File tree 3 files changed +15
-13
lines changed
samples/cpp/visual_language_chat
3 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -703,7 +703,9 @@ jobs:
703
703
&& brew install coreutils scons
704
704
- run : OpenVINO_DIR=./ov/runtime/cmake/ cmake -DCMAKE_BUILD_TYPE=Release -B ./build/ ./
705
705
- run : LD_LIBRARY_PATH=${{ github.workspace }}/ov/runtime/3rdparty/tbb/lib/:$LD_LIBRARY_PATH cmake --build ./build/ --config Release --target visual_language_chat -j
706
- - run : OpenVINO_DIR=./ov/runtime/cmake/ python -m pip install --upgrade-strategy eager ./thirdparty/openvino_tokenizers/[transformers] -r ./samples/requirements.txt --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly
706
+ - run : >
707
+ source ./ov/setupvars.sh
708
+ && python -m pip install --upgrade-strategy eager ./thirdparty/openvino_tokenizers/[transformers] -r ./samples/requirements.txt --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly
707
709
- run : >
708
710
source ./ov/setupvars.sh
709
711
&& python ./samples/cpp/visual_language_chat/export_MiniCPM-V-2_6.py ./miniCPM-V-2_6/
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ bool print_subword(std::string&& subword) {
9
9
return !(std::cout << subword << std::flush);
10
10
}
11
11
12
- int main (int argc, char * argv[]) try {
12
+ int main (int argc, char * argv[]) {
13
13
if (3 != argc) {
14
14
throw std::runtime_error (std::string{" Usage " } + argv[0 ] + " <MODEL_DIR> <IMAGE_FILE>" );
15
15
}
@@ -42,14 +42,14 @@ int main(int argc, char* argv[]) try {
42
42
" question:\n " ;
43
43
}
44
44
pipe .finish_chat ();
45
- } catch (const std::exception & error) {
46
- try {
47
- std::cerr << error.what () << ' \n ' ;
48
- } catch (const std::ios_base::failure&) {}
49
- return EXIT_FAILURE;
50
- } catch (...) {
51
- try {
52
- std::cerr << " Non-exception object thrown\n " ;
53
- } catch (const std::ios_base::failure&) {}
54
- return EXIT_FAILURE;
45
+ // } catch (const std::exception& error) {
46
+ // try {
47
+ // std::cerr << error.what() << '\n';
48
+ // } catch (const std::ios_base::failure&) {}
49
+ // return EXIT_FAILURE;
50
+ // } catch (...) {
51
+ // try {
52
+ // std::cerr << "Non-exception object thrown\n";
53
+ // } catch (const std::ios_base::failure&) {}
54
+ // return EXIT_FAILURE;
55
55
}
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ ov_genai_build_jinja2cpp()
47
47
48
48
# Library
49
49
50
- file (GLOB_RECURSE SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR} /src/*.cpp" , "${CMAKE_CURRENT_SOURCE_DIR} /src/*.c" )
50
+ file (GLOB_RECURSE SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR} /src/*.cpp" "${CMAKE_CURRENT_SOURCE_DIR} /src/*.c" )
51
51
52
52
set (TARGET_NAME openvino_genai)
53
53
add_library (${TARGET_NAME} SHARED ${SOURCE_FILES} )
You can’t perform that action at this time.
0 commit comments