Update README.md
Browse files
README.md
CHANGED
@@ -6,11 +6,27 @@ license: mit
|
|
6 |
|
7 |
This is a Phi-3.5-mini-instruct version of ONNX CPU, based on ONNX Runtime for GenAI [https://github.com/microsoft/onnxruntime-genai](https://github.com/microsoft/onnxruntime-genai). Convert with the following command
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
```bash
|
10 |
|
11 |
python3 -m onnxruntime_genai.models.builder -m microsoft/Phi-3.5-vision-instruct -o ./onnx-cpu -p int4 -e cpu -c ./Phi-3.5-vision-instruct
|
12 |
|
13 |
```
|
14 |
|
15 |
-
This is a conversion, but no specific optimization has been done. Please look forward to the official version.
|
16 |
|
|
|
|
|
|
6 |
|
7 |
This is a Phi-3.5-mini-instruct version of ONNX CPU, based on ONNX Runtime for GenAI [https://github.com/microsoft/onnxruntime-genai](https://github.com/microsoft/onnxruntime-genai). Convert with the following command
|
8 |
|
9 |
+
## **1. Install the SDK**
|
10 |
+
|
11 |
+
|
12 |
+
```
|
13 |
+
|
14 |
+
pip install torch transformers onnx onnxruntime
|
15 |
+
|
16 |
+
|
17 |
+
pip install --pre onnxruntime-genai
|
18 |
+
|
19 |
+
```
|
20 |
+
|
21 |
+
## **2. Convert CPU ONNX Support**
|
22 |
+
|
23 |
+
|
24 |
```bash
|
25 |
|
26 |
python3 -m onnxruntime_genai.models.builder -m microsoft/Phi-3.5-vision-instruct -o ./onnx-cpu -p int4 -e cpu -c ./Phi-3.5-vision-instruct
|
27 |
|
28 |
```
|
29 |
|
|
|
30 |
|
31 |
+
|
32 |
+
This is a conversion, but no specific optimization has been done. Please look forward to the official version.
|