Skip to content
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

Fix abi #460

Closed
wants to merge 203 commits into from
Closed

Fix abi #460

wants to merge 203 commits into from

Conversation

Wovchena
Copy link
Collaborator

No description provided.

src/python/CMakeLists.txt Outdated Show resolved Hide resolved
src/cpp/CMakeLists.txt Outdated Show resolved Hide resolved
@ilya-lavrenov ilya-lavrenov added this to the 2024.2 milestone May 27, 2024

import os
build_dir = os.getenv('GENAI_BUILD_DIR', 'build')
ov_tokenizers_path = f'{build_dir}/openvino_tokenizers/src/'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use relative path instead?
E.g. tokenizers, genai and python files are copies to the same directory where we can find tokenizer.so relatively to python files.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. To do the same in C++ I'd need a path to the current library. Does openvino have have a function for that or an implementation I could copy?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -33,7 +33,7 @@ jobs:
echo "$models" | while read -r model_name model_path; do
optimum-cli export openvino --trust-remote-code --weight-format fp16 --model "$model_name" "$model_path"
done
python -m pytest test_generate_api.py
GENAI_BUILD_DIR=../../build python -m pytest test_generate_api.py
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests are example of user code.
users should not know about tokenizers, etc and that some vars need to set, except PYTHONPATH

@Wovchena Wovchena closed this May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants