Downloads · 30 days
0
EmbeddedLLM/Phi-3-small-128k-instruct-onnx
Phi-3-small-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-small-128k-instruct to accelerate inference with DirectML and ONNX Runtime. The Phi-3-Small-128K-Instruct is a state-of-the-art, lightweight open model d…
Downloads · 30 days
0
Access
Public
Updated Jun 18, 2024
Repo size
5.1 GB
Likes
0
Public
Click a slice to open those files.
.data5 GB · 99%
From the Hugging Face model README
This repository hosts the optimized versions of microsoft/Phi-3-small-128k-instruct to accelerate inference with DirectML and ONNX Runtime. The Phi-3-Small-128K-Instruct is a state-of-the-art, lightweight open model developed by Microsoft, featuring 7B parameters.
Key Features:
Attention Mechanism:
Here are some of the optimized configurations we have added:
To use the Phi-3-small-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-small-128k-instruct-onnx --include="onnx/directml/*" --local-dir .\Phi-3-small-128k-instruct
pip install numpy==1.26.4
pip install onnxruntime-directml
pip install --pre onnxruntime-genai-directml
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-small-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.