Update README.md
Browse files
README.md
CHANGED
|
@@ -58,6 +58,7 @@ huggingface-cli download microsoft/Phi-4-mini-instruct-onnx --include cpu_and_mo
|
|
| 58 |
pip install --pre onnxruntime-genai
|
| 59 |
|
| 60 |
# Please adjust the model directory (-m) accordingly
|
|
|
|
| 61 |
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-qa.py -o model-qa.py
|
| 62 |
python model-qa.py -m cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4 -e cpu
|
| 63 |
```
|
|
@@ -71,7 +72,8 @@ huggingface-cli download microsoft/Phi-4-mini-instruct-onnx --include gpu/* --lo
|
|
| 71 |
# Install the CUDA package of ONNX Runtime GenAI
|
| 72 |
pip install --pre onnxruntime-genai-cuda
|
| 73 |
|
| 74 |
-
# Please adjust the model directory (-m) accordingly
|
|
|
|
| 75 |
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-qa.py -o model-qa.py
|
| 76 |
python model-qa.py -m gpu/gpu-int4-rtn-block-32 -e cuda
|
| 77 |
```
|
|
@@ -85,7 +87,8 @@ huggingface-cli download microsoft/Phi-4-mini-instruct-onnx --include gpu/* --lo
|
|
| 85 |
# Install the DML package of ONNX Runtime GenAI
|
| 86 |
pip install --pre onnxruntime-genai-directml
|
| 87 |
|
| 88 |
-
# Please adjust the model directory (-m) accordingly
|
|
|
|
| 89 |
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-qa.py -o model-qa.py
|
| 90 |
python model-qa.py -m gpu/gpu-int4-rtn-block-32 -e dml
|
| 91 |
```
|
|
|
|
| 58 |
pip install --pre onnxruntime-genai
|
| 59 |
|
| 60 |
# Please adjust the model directory (-m) accordingly
|
| 61 |
+
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/common.py -o common.py
|
| 62 |
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-qa.py -o model-qa.py
|
| 63 |
python model-qa.py -m cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4 -e cpu
|
| 64 |
```
|
|
|
|
| 72 |
# Install the CUDA package of ONNX Runtime GenAI
|
| 73 |
pip install --pre onnxruntime-genai-cuda
|
| 74 |
|
| 75 |
+
# Please adjust the model directory (-m) accordingly
|
| 76 |
+
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/common.py -o common.py
|
| 77 |
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-qa.py -o model-qa.py
|
| 78 |
python model-qa.py -m gpu/gpu-int4-rtn-block-32 -e cuda
|
| 79 |
```
|
|
|
|
| 87 |
# Install the DML package of ONNX Runtime GenAI
|
| 88 |
pip install --pre onnxruntime-genai-directml
|
| 89 |
|
| 90 |
+
# Please adjust the model directory (-m) accordingly
|
| 91 |
+
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/common.py -o common.py
|
| 92 |
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-qa.py -o model-qa.py
|
| 93 |
python model-qa.py -m gpu/gpu-int4-rtn-block-32 -e dml
|
| 94 |
```
|