Skip to content

Commit

Permalink
Phi-4 Multimodal PR Cherry Pick (#1285)
Browse files Browse the repository at this point in the history
### Description

This PR cherry picks [this
PR](#1284) into the
0.7.0-rc1 branch.

### Motivation and Context

The file names in the branch's tutorial are wrong.
  • Loading branch information
kunal-vaishnavi authored Feb 27, 2025
1 parent 2061afa commit adf0e14
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/python/phi-4-multi-modal.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ $ huggingface-cli download microsoft/Phi-4-multimodal-instruct-onnx --include on
$ rm pytorch/config.json
$ mv onnx/config.json pytorch/

# In our `modeling_phio.py`, we modified some classes for exporting to ONNX
$ rm pytorch/modeling_phio.py
$ mv onnx/modeling_phio.py pytorch/
# In our `modeling_phi4mm.py`, we modified some classes for exporting to ONNX
$ rm pytorch/modeling_phi4mm.py
$ mv onnx/modeling_phi4mm.py pytorch/

# In our `speech_conformer_encoder.py`, we modified some classes for exporting to ONNX
$ rm pytorch/speech_conformer_encoder.py
Expand All @@ -119,9 +119,9 @@ $ mv onnx/speech_conformer_encoder.py pytorch/
$ rm pytorch/vision_siglip_navit.py
$ mv onnx/vision_siglip_navit.py pytorch/

# In our `processing_phio.py`, we modified some classes for exporting to ONNX
$ rm pytorch/processing_phio.py
$ mv onnx/processing_phio.py pytorch/
# In our `processing_phi4mm.py`, we modified some classes for exporting to ONNX
$ rm pytorch/processing_phi4mm.py
$ mv onnx/processing_phi4mm.py pytorch/

# Move the builder script to the root directory
$ mv onnx/builder.py .
Expand Down

0 comments on commit adf0e14

Please sign in to comment.