Fara-7B ONNX models
Introduction
This repository hosts the optimized versions of the Fara-7B models to accelerate inference with ONNX Runtime.
Optimized models are published here in ONNX format to run with ONNX Runtime on NPU.
Here are some of the optimized configurations we have added:
- ONNX model for int4 NPU: ONNX model for Qualcomm NPU using int4 quantization.
Model Run
You can see how to run this model with ORT GenAI here.
For NPU:
# Download the model directly using the Hugging Face CLI
hf download microsoft/Fara-7B-onnx --include npu/qnn-int4/* --local-dir .
# Install ONNX Runtime GenAI
pip install --pre onnxruntime-genai
# Please adjust the model directory (-m) accordingly
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-vision.py -o model-vision.py
python model-vision.py -m npu/qnn-int4 --max_length 4096 --use-winml
Model Description
- Developed by: Microsoft
- Model type: ONNX
- License: MIT
- Model Description: This is a conversion of the Fara-7B model for ONNX Runtime inference.
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 your scenarios. There may be a slight difference in output from the base model with the optimizations applied.
- Downloads last month
- -
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
๐
Ask for provider support
Model tree for microsoft/Fara-7B-onnx
Base model
microsoft/Fara-7B