Skip to content

Commit c75c93b

Browse files
committed
Checkpointing
1 parent 9bf113e commit c75c93b

4 files changed

Lines changed: 39 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@ uv pip install -r requirements.txt
2222

2323
uv pip install ../../../../olive/Olive/dist/olive_ai-0.10.0.dev0-py3-none-any.whl
2424

25-
uv pip install qairt_dev-0.1.0.dev0-py3-none-manylinux2014_x86_64.whl[onnx]
25+
uv pip install qairt-dev[onnx]
26+
27+
export QAIRT_SDK_ROOT=/opt/qcom/aistack/qairt/2.40.0.251030/
2628

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"input_model": { "type": "HfModel", "model_path": "microsoft/Phi-3.5-mini-instruct" },
3+
"passes": {
4+
"qgab": {
5+
"type": "QairtGenAIBuilder",
6+
"backend": "CPU",
7+
"cache_dir": "./cache/qairt",
8+
"log_level": "debug"
9+
}
10+
},
11+
"log_severity_level": 1,
12+
"output_dir": "models/phi3_5-qnn-cpu",
13+
"cache_dir": "cache",
14+
"no_artifacts": true
15+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"input_model": {
3+
"type": "QairtPreparedModel",
4+
"model_path": "/local/mnt2/workspace/kromero/models/phi35-nb1-20251030"
5+
},
6+
"passes": {
7+
"qgab": {
8+
"type": "QairtGenAIBuilder",
9+
"backend": "HTP",
10+
"soc_details": "chipset:SC8480XP",
11+
"cache_dir": "./cache/qairt",
12+
"log_level": "debug"
13+
}
14+
},
15+
"log_severity_level": 1,
16+
"output_dir": "models/phi3_5-qnn-htp-glymur-lade",
17+
"cache_dir": "cache",
18+
"no_artifacts": true
19+
}

microsoft-Phi-3.5-mini-instruct/QAIRT/simple_config.json renamed to microsoft-Phi-3.5-mini-instruct/QAIRT/simple_config_htp_hamoa.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/HF-Microsoft-Phi-3.5-mini-instruct"
4+
"model_path": "/local/mnt2/workspace/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",
16+
"output_dir": "models/phi3_5-qnn-htp-hamoa",
1717
"cache_dir": "cache",
1818
"no_artifacts": true
1919
}

0 commit comments

Comments
 (0)