-
Notifications
You must be signed in to change notification settings - Fork 197
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
add performance statistics for image generation #1405
base: master
Are you sure you want to change the base?
Conversation
Could you please provide example of such prints? |
@xufang-lisa let's add a custom struct struct OPENVINO_GENAI_EXPORTS ImageGenerationPerfMetrics {
float load_time; // model load time (includes reshape & read_model time)
float generate_duration; // duration of method generate(...)
MeanStdPair iteration_duration; // Mean-Std time of one generation iteration
std::map<std::string, float> encoder_inference_duration; // inference durations for each encoder
MeanStdPair unet_inference_duration; // inference duration for unet model, should be filled with zeros if we don't have unet
MeanStdPair transformer_inference_duration; // inference duration for transformer model, should be filled with zeros if we don't have transformer
float vae_encoder_inference_duration; // inference duration of vae_encoder model, should be filled with zeros if we don't use it
float vae_decoder_inference_duration; // inference duration of vae_decoder model
bool m_evaluated = false;
RawImageGenerationPerfMetrics raw_metrics;
};
struct OPENVINO_GENAI_EXPORTS RawImageGenerationPerfMetrics {
std::vector<MicroSeconds> unet_inference_durations; // unet durations for each step
std::vector<MicroSeconds> transformer_inference_durations; // transformer durations for each step
std::vector<MicroSeconds> iteration_durations; // durations of each step
}; I'd also like to propose return |
updated |
could you please add benchmark for image generation similar to benchmark for GenAI LLM, which can print all these detailed statistic? And provide here an output of such sample. BTW, original samples should be kept as is and avoid printed timings. |
@ilya-lavrenov Do you mean to add support for image generation in benchmark_genai? |
no, create dedicated benchmark application for image generation, which is similar to VLM / LLM benchmarks |
No description provided.