File tree Expand file tree Collapse file tree
microsoft-Phi-3.5-mini-instruct/QAIRT Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11
2+ #! /usr/bin/env bash
23
4+ # Check if "dev" argument is passed
5+ DEV_MODE=false
6+ if [[ " $1 " == " dev" ]]; then
7+ DEV_MODE=true
8+ fi
9+
10+ # Deactivate existing virtual environment if active
311if [[ " $VIRTUAL_ENV " != " " ]]; then
412 echo " Deactivating virtual environment: $VIRTUAL_ENV "
513 deactivate
614else
715 echo " No virtual environment is currently active."
816fi
917
18+ # Remove old virtual environment
1019VENV_DIR=" phi35-venv"
1120if [[ -d $VENV_DIR ]]; then
1221 echo " Deleting virtual environment directory: $VENV_DIR "
1524 echo " Virtual environment directory DNE: $VENV_DIR "
1625fi
1726
27+ # Create new virtual environment
1828uv venv -p 3.10 $VENV_DIR
1929source $VENV_DIR /bin/activate
2030
31+ # Install dependencies
2132uv pip install -r requirements.txt
22-
23- uv pip install ../../../../olive/Olive/dist/olive_ai-0.10.0.dev0-py3-none-any.whl
24-
33+ uv pip install ../../../../olive/Olive/dist/olive_ai-0.11.0.dev0-py3-none-any.whl
2534uv pip install qairt-dev[onnx]
2635
27- export QAIRT_SDK_ROOT=/opt/qcom/aistack/qairt/2.40.0.251030/
36+ # Set QAIRT SDK root
37+ export QAIRT_SDK_ROOT=/local/mnt2/workspace2/kromero/sdks/2.41.0.251128/
2838
39+ # Handle PYTHONPATH based on dev mode
40+ if $DEV_MODE ; then
41+ echo " Dev mode enabled: Setting PYTHONPATH"
42+ export PYTHONPATH=/local/mnt2/workspace2/kromero/qairt-tools/QAIRT_Tools/core/src/python/
43+ else
44+ echo " Dev mode not enabled: Unsetting PYTHONPATH"
45+ unset PYTHONPATH
46+ fi
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ cd ../../../../olive/Olive
33
44python setup.py build
55python setup.py bdist_wheel
6- uv pip install dist/olive_ai-0.10 .0.dev0-py3-none-any.whl
6+ uv pip install dist/olive_ai-0.11 .0.dev0-py3-none-any.whl
77
88cd -
Original file line number Diff line number Diff line change 11{
22 "input_model" : {
33 "type" : " QairtPreparedModel" ,
4- "model_path" : " /local/mnt2/workspace /kromero/models/phi35-nb1-20251030"
4+ "model_path" : " /local/mnt2/workspace2 /kromero/models/phi35-nb1-20251030"
55 },
66 "passes" : {
77 "qgab" : {
1313 }
1414 },
1515 "log_severity_level" : 1 ,
16- "output_dir" : " models/phi3_5-qnn-htp-glymur-lade" ,
16+ "output_dir" : " models/phi3_5-qnn-htp-glymur-lade-export " ,
1717 "cache_dir" : " cache" ,
1818 "no_artifacts" : true
1919}
You can’t perform that action at this time.
0 commit comments