Skip to content

Commit 02c928e

Browse files
committed
setuvars
1 parent 44f21c0 commit 02c928e

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

.github/workflows/causal_lm_cpp.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,9 @@ jobs:
703703
&& brew install coreutils scons
704704
- run: OpenVINO_DIR=./ov/runtime/cmake/ cmake -DCMAKE_BUILD_TYPE=Release -B ./build/ ./
705705
- 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
707709
- run: >
708710
source ./ov/setupvars.sh
709711
&& python ./samples/cpp/visual_language_chat/export_MiniCPM-V-2_6.py ./miniCPM-V-2_6/

samples/cpp/visual_language_chat/visual_language_chat.cpp

+11-11
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ bool print_subword(std::string&& subword) {
99
return !(std::cout << subword << std::flush);
1010
}
1111

12-
int main(int argc, char* argv[]) try {
12+
int main(int argc, char* argv[]) {
1313
if (3 != argc) {
1414
throw std::runtime_error(std::string{"Usage "} + argv[0] + " <MODEL_DIR> <IMAGE_FILE>");
1515
}
@@ -42,14 +42,14 @@ int main(int argc, char* argv[]) try {
4242
"question:\n";
4343
}
4444
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;
5555
}

src/cpp/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ ov_genai_build_jinja2cpp()
4747

4848
# Library
4949

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")
5151

5252
set(TARGET_NAME openvino_genai)
5353
add_library(${TARGET_NAME} SHARED ${SOURCE_FILES})

0 commit comments

Comments
 (0)