Skip to content

Commit

Permalink
get openvino_tokenizers._ext_path
Browse files Browse the repository at this point in the history
  • Loading branch information
Wovchena committed May 27, 2024
1 parent d94ba2e commit 501cb8b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/python_tests/test_generate_api.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright (C) 2023-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import openvino_tokenizers
import pytest
from list_test_models import models_list

Expand Down Expand Up @@ -31,10 +32,7 @@ def run_hf_ov_genai_comparison(model_fixture, generation_config, prompt):
device = 'CPU'
# pipe = ov_genai.LLMPipeline(path, device)

import os
build_dir = os.getenv('GENAI_BUILD_DIR', 'build')
ov_tokenizers_path = f'{build_dir}/openvino_tokenizers/src/'
pipe = ov_genai.LLMPipeline(path, device, {}, ov_tokenizers_path)
pipe = ov_genai.LLMPipeline(path, device, {}, str(openvino_tokenizers._ext_path))

ov_output = pipe.generate(prompt, **generation_config)

Expand Down

0 comments on commit 501cb8b

Please sign in to comment.