Downloads · 30 days
0
EmbeddedLLM/Phi-3-vision-128k-instruct-onnx
Phi-3-vision-128k-instruct-onnx is a text generation model from EmbeddedLLM. Use it when you need the model to write or continue text. The card lists the license as mit.
This repository hosts the optimized versions of microsoft/Phi-3-vision-128k-instruct to accelerate inference with ONNX Runtime. This repository is a clone from microsoft/Phi-3-vision-128k-instruct-onnx-cpu, with extra…
Downloads · 30 days
0
Access
Public
Updated Jun 20, 2024
Repo size
7.8 GB
Likes
0
Public
Click a slice to open those files.
.data3.2 GB · 98%
From the Hugging Face model README
This repository hosts the optimized versions of microsoft/Phi-3-vision-128k-instruct to accelerate inference with ONNX Runtime.
This repository is a clone from microsoft/Phi-3-vision-128k-instruct-onnx-cpu, with extra files necessary for deploying the model with OpenAI-API-Compatible endpoints through embeddedllm pypi library.
conda create -n onnx python=3.10
conda activate onnx
winget install -e --id GitHub.GitLFS
pip install huggingface-hub[cli]
huggingface-cli download EmbeddedLLM/Phi-3-vision-128k-instruct-onnx --include='onnx/cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4' --local-dir .\Phi-3-vision-128k-instruct-onnx
pip install numpy==1.26.4
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/phi3v.py" -OutFile "phi3v.py"
pip install onnxruntime
pip install --pre onnxruntime-genai==0.3.0rc2
python phi3v.py -m .\Phi-3-vision-128k-instruct-onnx
This repository hosts the optimized versions of microsoft/Phi-3-vision-128k-instruct to accelerate inference with DirectML and ONNX Runtime.
The Phi-3-Vision-128K-Instruct is a lightweight, state-of-the-art open multimodal model built upon datasets which include - synthetic data and filtered publicly available websites - with a focus on very high-quality, reasoning dense data both on text and vision.
The model belongs to the Phi-3 model family, and the multimodal version comes with 128K context length (in tokens) it can support. The model underwent a rigorous enhancement process, incorporating both supervised fine-tuning and direct preference optimization to ensure precise instruction adherence and robust safety measures.
Primary use cases
The model is intended for broad commercial and research use in English. The model provides uses for general purpose AI systems and applications with visual and text input capabilities which require
Our model is designed to accelerate research on efficient language and multimodal models, for use as a building block for generative AI powered features.
Use case considerations
Our models are not specifically designed or evaluated for all downstream purposes. Developers should consider common limitations of language models as they select use cases, and evaluate and mitigate for accuracy, safety, and fairness before using within a specific downstream use case, particularly for high-risk scenarios. Developers should be aware of and adhere to applicable laws or regulations (including privacy, trade compliance laws, etc.) that are relevant to their use case.
Nothing contained in this Model Card should be interpreted as or deemed a restriction or modification to the license the model is released under.
Here are some of the optimized configurations we have added:
To use the Phi-3-vision-128k-instruct ONNX model on Windows with DirectML, follow these steps:
conda create -n onnx python=3.10
conda activate onnx
winget install -e --id GitHub.GitLFS
pip install huggingface-hub[cli]
huggingface-cli download EmbeddedLLM/Phi-3-vision-128k-instruct-onnx --include="onnx/cpu_and_mobile/*" --local-dir .\Phi-3-vision-128k-instruct
pip install numpy==1.26.4
pip install onnxruntime
pip install --pre onnxruntime-genai==0.3.0rc2
conda install conda-forge::vs2015_runtime
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/phi3-qa.py" -OutFile "phi3-qa.py"
python phi3-qa.py -m .\Phi-3-vision-128k-instruct
Minimum Configuration:
Tested Configurations:
The model has been tested on:
Minimum Configuration Required:
The model is licensed under the MIT license.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft’s Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.