-
Notifications
You must be signed in to change notification settings - Fork 247
Support multi images for vlm benchmarking in samples and llm_bench #2197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
wgzintel
wants to merge
61
commits into
openvinotoolkit:master
Choose a base branch
from
wgzintel:guozhong/support_multi_files_for_vlm_test
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+195
−38
Open
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
bffaa94
support multi images for vlm test
wgzintel cdd8f90
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
wgzintel 9edc628
code format
wgzintel e512c31
using ov::genai::images to convert images
wgzintel 9fccf73
Merge branch 'master' of https://github.com/openvinotoolkit/openvino.…
wgzintel eed1dd7
fix none Type
wgzintel 82aa6aa
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
wgzintel 503b74e
fix NoneTyPE in optimim-intel pipeline
wgzintel 7c48e7e
Merge branch 'guozhong/support_multi_files_for_vlm_test' of https://g…
wgzintel fa68faa
Support read images from dir
wgzintel 98e90e4
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
wgzintel 8e62754
fix cmake_list.txt
wgzintel 3c8b091
Merge branch 'master' of https://github.com/openvinotoolkit/openvino.…
wgzintel 5585335
Output token size in benchmark_genai.cpp
wgzintel 2c13704
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
wgzintel fd8c859
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
wgzintel 771e928
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
wgzintel e902812
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
wgzintel f70ab0d
print ov version
wgzintel b6240fd
using load_image() in optimum pipeline
wgzintel 36e3dad
Merge branch 'master' of https://github.com/openvinotoolkit/openvino.…
wgzintel e004cea
Make it an error if prompt_file and prompt are given at the same time
wgzintel 537e2d6
Merge branch 'master' of https://github.com/openvinotoolkit/openvino.…
wgzintel 10c9940
revert get prompt from default args
wgzintel 65f5c02
Merge branch 'master' of https://github.com/openvinotoolkit/openvino.…
wgzintel 9bb9081
Remove redundant code
wgzintel e1e5326
get prompt token size from shape[1]
wgzintel 8a88215
Merge branch 'master' of https://github.com/openvinotoolkit/openvino.…
wgzintel 6688a09
remove if
wgzintel 16faddc
Update samples/cpp/text_generation/benchmark_genai.cpp
wgzintel f48ae43
Update samples/cpp/visual_language_chat/benchmark_vlm.cpp
wgzintel 9c7fa07
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
wgzintel 0936b50
Update benchmark_genai.py, benchmark_vlm.py and readme
wgzintel 2dbba1b
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
wgzintel 9d8aa7f
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
wgzintel d9000a9
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
wgzintel 41ce10c
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
peterchen-intel ac12a98
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
wgzintel 72e999f
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
peterchen-intel 1348dd1
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
peterchen-intel 9980152
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
wgzintel 8ac1fc5
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
wgzintel f484244
Update samples/cpp/text_generation/read_prompt_from_file.cpp
wgzintel cb07e0b
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
wgzintel 507f48a
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
wgzintel 624e8fc
default values
wgzintel 013fac4
Merge branch 'guozhong/support_multi_files_for_vlm_test' of https://g…
wgzintel 689d264
Merge branch 'master' of https://github.com/openvinotoolkit/openvino.…
wgzintel 5121bfb
Use the regular assignment for scheduler_config
wgzintel 4537a2b
Merge branch 'master' of https://github.com/openvinotoolkit/openvino.…
wgzintel d4da4b6
Update samples/cpp/text_generation/read_prompt_from_file.cpp
wgzintel 1b8ecba
Update tools/llm_bench/task/visual_language_generation.py
wgzintel 9cc975b
Update tools/llm_bench/task/visual_language_generation.py
wgzintel cf910e0
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
wgzintel 3e3a321
print input image nums for vlm
wgzintel 2c6872f
Remove the corresponding return
wgzintel 1a13411
remove if input_data.get("media", None)
wgzintel 9b692e3
Merge branch 'master' into guozhong/support_multi_files_for_vlm_test
wgzintel ed896f5
Merge branch 'master' of https://github.com/openvinotoolkit/openvino.…
wgzintel 61a2f22
Merge branch 'guozhong/support_multi_files_for_vlm_test' of https://g…
wgzintel 62e627a
resolve conflict
wgzintel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (C) 2023-2025 Intel Corporation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#include <iostream> | ||
#include <fstream> | ||
#include "read_prompt_from_file.h" | ||
|
||
std::string utils::read_prompt(const std::string& file_path) { | ||
std::ifstream file(file_path); | ||
if (file.is_open()) { | ||
std::stringstream buffer; | ||
buffer << file.rdbuf(); | ||
return buffer.str(); | ||
} else { | ||
std::stringstream error_message; | ||
error_message << "Error opening prompt file: '" << file_path << "'"; | ||
throw std::runtime_error{error_message.str()}; | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
// Copyright (C) 2023-2025 Intel Corporation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include <sstream> | ||
|
||
namespace utils { | ||
std::string read_prompt(const std::string& file_path); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wovchena marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.