Downloads · 30 days
10
3% of all-time downloads
EmbeddedLLM/mistral-7b-instruct-v0.3-int4-onnx-directml
mistral-7b-instruct-v0.3-int4-onnx-directml is a text generation model from EmbeddedLLM. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This repository hosts the optimized versions of Mistral-7B-Instruct-v0.3 to accelerate inference with ONNX Runtime for DirectML.
Downloads · 30 days
10
3% of all-time downloads
All-time downloads
303
Public
Repo size
4.3 GB
Likes
3
Public
Click a slice to open those files.
.data4.3 GB · 100%
From the Hugging Face model README
This repository hosts the optimized versions of Mistral-7B-Instruct-v0.3 to accelerate inference with ONNX Runtime for DirectML.
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/mistral-7b-instruct-v0.3-int4-onnx-directml --local-dir .\mistral-7b-instruct-v0.3
pip install numpy==1.26.4
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/phi3-qa.py" -OutFile "phi3-qa.py"
pip install onnxruntime-directml
pip install --pre onnxruntime-genai-directml
conda install conda-forge::vs2015_runtime
python phi3-qa.py -m .\mistral-7b-instruct-v0.3
DirectML is a high-performance, hardware-accelerated DirectX 12 library for machine learning. DirectML provides GPU acceleration for common machine learning tasks across a broad range of supported hardware and drivers, including all DirectX 12-capable GPUs from vendors such as AMD, Intel, NVIDIA, and Qualcomm.