Files changed (1) hide show
  1. README.md +8 -11
README.md CHANGED
@@ -32,9 +32,8 @@ huggingface-cli download microsoft/Phi-4-multimodal-instruct-onnx --include cpu_
32
  pip install --pre onnxruntime-genai
33
 
34
  # Please adjust the model directory (-m) accordingly
35
- curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/common.py -o common.py
36
- curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-mm.py -o model-mm.py
37
- python model-mm.py -m cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4 -e cpu
38
  ``` -->
39
 
40
  For CUDA:
@@ -46,10 +45,9 @@ huggingface-cli download microsoft/Phi-4-multimodal-instruct-onnx --include gpu/
46
  # Install the CUDA package of ONNX Runtime GenAI
47
  pip install --pre onnxruntime-genai-cuda
48
 
49
- # Please adjust the model directory (-m) accordingly
50
- curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/common.py -o common.py
51
- curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-mm.py -o model-mm.py
52
- python model-mm.py -m gpu/gpu-int4-rtn-block-32 -e cuda
53
  ```
54
 
55
  For DirectML:
@@ -61,10 +59,9 @@ huggingface-cli download microsoft/Phi-4-multimodal-instruct-onnx --include gpu/
61
  # Install the DML package of ONNX Runtime GenAI
62
  pip install --pre onnxruntime-genai-directml
63
 
64
- # Please adjust the model directory (-m) accordingly
65
- curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/common.py -o common.py
66
- curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-mm.py -o model-mm.py
67
- python model-mm.py -m gpu/gpu-int4-rtn-block-32 -e dml
68
  ```
69
 
70
  You will be prompted to provide any images, audios, and a prompt.
 
32
  pip install --pre onnxruntime-genai
33
 
34
  # Please adjust the model directory (-m) accordingly
35
+ curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/phi4-mm.py -o phi4-mm.py
36
+ python phi4-mm.py -m cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4 -e cpu
 
37
  ``` -->
38
 
39
  For CUDA:
 
45
  # Install the CUDA package of ONNX Runtime GenAI
46
  pip install --pre onnxruntime-genai-cuda
47
 
48
+ # Please adjust the model directory (-m) accordingly
49
+ curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/phi4-mm.py -o phi4-mm.py
50
+ python phi4-mm.py -m gpu/gpu-int4-rtn-block-32 -e cuda
 
51
  ```
52
 
53
  For DirectML:
 
59
  # Install the DML package of ONNX Runtime GenAI
60
  pip install --pre onnxruntime-genai-directml
61
 
62
+ # Please adjust the model directory (-m) accordingly
63
+ curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/phi4-mm.py -o phi4-mm.py
64
+ python phi4-mm.py -m gpu/gpu-int4-rtn-block-32 -e dml
 
65
  ```
66
 
67
  You will be prompted to provide any images, audios, and a prompt.