Skip to content

Commit b262497

Browse files
Add common download to Phi-3 tutorial (#1973)
### Description This PR adds a missing documentation step to download `common.py` in the Phi-3 tutorial. ### Motivation and Context This PR is a follow-up to [this PR](#1939).
1 parent 5cc8402 commit b262497

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/python/phi-3-tutorial.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Are you on a Windows machine with GPU?
6969
Run the model with [model-qa.py](https://github.com/microsoft/onnxruntime-genai/blob/main/examples/python/model-qa.py). If you are using a stable version of ONNX Runtime GenAI then you need to download from the release branch (example for main is given below).
7070

7171
```bash
72+
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/common.py -o common.py
7273
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-qa.py -o model-qa.py
7374
python model-qa.py -m directml\directml-int4-awq-block-128 -e dml
7475
```
@@ -108,6 +109,7 @@ Are you on a Windows machine with GPU?
108109
Run the model with [model-qa.py](https://github.com/microsoft/onnxruntime-genai/blob/main/examples/python/model-qa.py). If you are using a stable version of ONNX Runtime GenAI then you need to download from the release branch (example for main is given below).
109110
110111
```bash
112+
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/common.py -o common.py
111113
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-qa.py -o model-qa.py
112114
python model-qa.py -m cuda/cuda-int4-rtn-block-32 -e cuda
113115
```
@@ -141,6 +143,7 @@ Are you on a Windows machine with GPU?
141143
Run the model with [model-qa.py](https://github.com/microsoft/onnxruntime-genai/blob/main/examples/python/model-qa.py). If you are using a stable version of ONNX Runtime GenAI then you need to download from the release branch (example for main is given below).
142144

143145
```bash
146+
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/common.py -o common.py
144147
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-qa.py -o model-qa.py
145148
python model-qa.py -m cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4 -e cpu
146149
```

0 commit comments

Comments
 (0)