Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
language:
|
4 |
+
- multilingual
|
5 |
+
tags:
|
6 |
+
- nlp
|
7 |
+
- code
|
8 |
+
- audio
|
9 |
+
- automatic-speech-recognition
|
10 |
+
- speech-summarization
|
11 |
+
- speech-translation
|
12 |
+
- visual-question-answering
|
13 |
+
- phi-4-multimodal
|
14 |
+
- phi
|
15 |
+
- phi-4-mini
|
16 |
+
---
|
17 |
+
|
18 |
+
## microsoft/Phi-4- multimodal -instruct-onnx
|
19 |
+
|
20 |
+
### Introduction
|
21 |
+
|
22 |
+
This repository hosts the optimized versions Phi4 multi modal model to accelerate inference with ONNX Runtime. This repository hosts the optimized versions Phi4 multimodal model to accelerate inference with ONNX Runtime. Optimized models are published here in ONNX format to run with ONNX Runtime on CPU and GPU across devices, including server platforms, Windows, Linux and Mac desktops, and mobile CPUs, with the precision best suited to each of these targets.
|
23 |
+
|
24 |
+
Here are some of the optimized configurations we have added:
|
25 |
+
|
26 |
+
1. ONNX model for int4 CUDA and DML GPU devices using int4 quantization via RTN.
|
27 |
+
|
28 |
+
You can see how to run examples with ORT GenAI <to add link>
|
29 |
+
|
30 |
+
The performance of the text component is similar the [phi4 mini ONNX models] (https://huggingface.co/microsoft/Phi-4-mini-instruct-onnx/blob/main/README.md)
|
31 |
+
|
32 |
+
### Model Description
|
33 |
+
|
34 |
+
- Developed by: Microsoft
|
35 |
+
- Model type: ONNX
|
36 |
+
- License: MIT
|
37 |
+
- Model Description: This is a conversion of Phi4 mini model for ONNX Runtime inference.
|
38 |
+
|
39 |
+
Disclaimer: Model is only an optimization of the base model, any risk associated with the model is the responsibility of the user of the model. Please verify and test for you scenarios. There may be a slight difference in output from the base model with the optimizations applied.
|
40 |
+
|
41 |
+
### Base Model
|
42 |
+
|
43 |
+
Phi-4-multimodal-instruct is a lightweight open multimodal foundation model that leverages the language, vision, and speech research and datasets used for Phi-3.5 and 4.0 models. The model processes text, image, and audio inputs, generating text outputs, and comes with 128K token context length. The model underwent an enhancement process, incorporating both supervised fine-tuning, and direct preference optimization to support precise instruction adherence and safety measures.
|
44 |
+
|
45 |
+
See details [here](https://huggingface.co/microsoft/Phi-4-multimodal-instruct/blob/main/README.md)
|