You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(workbench) ➜ workbench git:(master) ✗ python phi3-qa.py -m cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4 -e cpu --verbose
Loading model...
Model loaded
Traceback (most recent call last):
File "/Users/qliu23/workspace/ml/workbench/phi3-qa.py", line 98, in <module>
main(args)
File "/Users/qliu23/workspace/ml/workbench/phi3-qa.py", line 20, in main
tokenizer = og.Tokenizer(model)
^^^^^^^^^^^^^^^^^^^
RuntimeError: Invalid regex: ?[^\s\p{L}\p{N}]+[\r\n/]*
The expression contained an invalid escaped character, or a trailing escape.
# Download the model directly using the Hugging Face CLI
huggingface-cli download microsoft/Phi-4-mini-instruct-onnx --include cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4/* --local-dir .
# Install the CPU package of ONNX Runtime GenAI
pip install --pre onnxruntime-genai
# Please adjust the model directory (-m) accordingly
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/phi3-qa.py -o phi3-qa.py
python phi3-qa.py -m cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4 -e cpu
The text was updated successfully, but these errors were encountered:
Output
Environment:
Instructions I've followed here on huggingface:
The text was updated successfully, but these errors were encountered: