-
Notifications
You must be signed in to change notification settings - Fork 200
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
Issues with documentation and failure to tokenize #1069
Comments
@AdamMiltonBarker could you please provide link on article which you follow? |
@AdamMiltonBarker looks like you were following this one right? If so the command already has double quotes. For the tokenizers issue to be compatible with 4.45 and higher you should use nightly versions of the components or downgrade transformers to avoid conflicts |
Hi Andrej. It did not last night. If you look in the comments it was changed to '' and then I replied to say it still needs "". That part of the comment was just to help you update the article. The main issue is the installation is not working, in the comments there is someone else with the same issue also. |
It does not work, you end up with the initial issue. There is another person in the comments on the article is facing the same. If the article is followed exactly you end up with the error provided above and in the article:
pip install --force-reinstall openvino openvino-tokenizers also does not work. |
Something has changed in the documentation since last night, The steps provided were followed 4 times prior to attempting the fixes I list above. Whatever has been updated in the article has fixed the issue. |
I am opening again. Fresh installation of AI Dev Kit on Khadas AI PC (https://github.com/intel/aipc-devkit-install) Install GenAI per the README on this repo. Run the LLM Chatbot example:
Notebook does not fail and continues to this:
I have been successful with creating a separate venv and just running the installation from this repository, but possibly some notes should be added to both repositories, saying that if you have used the ai pc installation it will fail. |
The documentation in the article has the following issues.
The following will not work:
optimum-cli export openvino --model meta-llama/Llama-3.2-3B-Instruct --task text-generation-with-past --weight-format int4 --group-size 64 --ratio 1.0 --sym --awq --scale-estimation --dataset 'wikitext2' --all-layers llama-3.2-3b-instruct-INT4
Solution:
'wikitext2' must be wrapped in double quotes "wikitext2"
After about 30 minutes installation (Windows) it decides to check the versions and then fails. There is no OpenVINO 2024.5 so the commands provided will not work.
If you downgrade you then get the following:
openvino-genai 2024.5.0.0.dev20241024 requires openvino_tokenizers~=2024.5.0.0.dev, but you have openvino-tokenizers 2024.4.1.0.dev20240926 which is incompatible.
Solution:
pip install openvino==2024.4.0 openvino-tokenizers==2024.4.0.0 openvino-genai==2024.4.0
Then things go a little more smoothly, until you notice this little gem on the last line:
Exporting tokenizers to OpenVINO is not supported for tokenizers version > 0.19 and openvino version <= 2024.4. Please downgrade to tokenizers version <= 0.19 to export tokenizers to OpenVINO.
So you think OK, no biggy, just downgrade:
After deleting the venv and starting again:
All good, after optimum-cli command:
Try to get it back to 2024.5.0.dev20241024:
pip install --force-reinstall openvino==2024.5.0.dev20241024
Yet pip list:
The text was updated successfully, but these errors were encountered: