Skip to content

Commit 7098113

Browse files
committed
Add more updates
1 parent 61527f4 commit 7098113

3 files changed

Lines changed: 25 additions & 7 deletions

File tree

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
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
311
if [[ "$VIRTUAL_ENV" != "" ]]; then
412
echo "Deactivating virtual environment: $VIRTUAL_ENV"
513
deactivate
614
else
715
echo "No virtual environment is currently active."
816
fi
917

18+
# Remove old virtual environment
1019
VENV_DIR="phi35-venv"
1120
if [[ -d $VENV_DIR ]]; then
1221
echo "Deleting virtual environment directory: $VENV_DIR"
@@ -15,14 +24,23 @@ else
1524
echo "Virtual environment directory DNE: $VENV_DIR"
1625
fi
1726

27+
# Create new virtual environment
1828
uv venv -p 3.10 $VENV_DIR
1929
source $VENV_DIR/bin/activate
2030

31+
# Install dependencies
2132
uv 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
2534
uv 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

microsoft-Phi-3.5-mini-instruct/QAIRT/install_olive.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ cd ../../../../olive/Olive
33

44
python setup.py build
55
python 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

88
cd -

microsoft-Phi-3.5-mini-instruct/QAIRT/simple_config_htp_glymur.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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": {
@@ -13,7 +13,7 @@
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
}

0 commit comments

Comments
 (0)