Skip to content

Commit

Permalink
Merge pull request openvinotoolkit#80 from wgzintel/guozhong/print_ov…
Browse files Browse the repository at this point in the history
…_version_in_convert

Add openvino version printing in convert.py
  • Loading branch information
eaidova authored Dec 15, 2023
2 parents 2c00bb4 + c3a096c commit 650d421
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion llm_bench/python/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def main():
os.system('echo OPENVINO_TORCH_BACKEND_DEVICE=$OPENVINO_TORCH_BACKEND_DEVICE')

if framework == 'ov':
log.info(f'model_path={model_path}, openvino runtime version:{get_version()}')
log.info(f'model_path={model_path}, openvino runtime version: {get_version()}')
if model_args['config'].get('PREC_BF16') and model_args['config']['PREC_BF16'] is True:
log.warning('[Warning] Param bf16/prec_bf16 only work for framework pt. It will be disabled.')
if args.memory_consumption:
Expand Down
3 changes: 2 additions & 1 deletion llm_bench/python/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from diffusers import UNet2DConditionModel, AutoencoderTiny, LCMScheduler
from nncf import compress_weights
from openvino import Type, PartialShape, save_model, convert_model
from openvino.runtime import Core
from openvino.runtime import Core, get_version
from optimum.exporters import TasksManager
from optimum.exporters.tasks import make_backend_config_constructor_for_task
from optimum.exporters.onnx.config import TextDecoderOnnxConfig
Expand Down Expand Up @@ -1512,6 +1512,7 @@ def main():
)

args = parser.parse_args()
log.info(f'openvino runtime version: {get_version()}')
model_type = get_convert_model_type(args.model_id.lower())
converter = converters[model_type]
converter(args)
Expand Down

0 comments on commit 650d421

Please sign in to comment.