EmbeddedLLM/01-ai_Yi-1.5-6B-Chat-onnx
By EmbeddedLLM · ↓ 0 · ♥ 0 · Updated 2024-06-20
What's in this repo
This page lists the files in EmbeddedLLM/01-ai_Yi-1.5-6B-Chat-onnx, including model.onnx.
- 1 ONNX models (.onnx files)
- 10 files, including 5 .json, 1 .md, 1 .onnx, 1 .data, 1 .model
- Last updated 2024-06-20
ONNX files
| File | Size | Download |
|---|---|---|
| onnx/directml/01-ai_Yi-1.5-6B-Chat-int4/model.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
Yi-1.5-6B-Chat ONNX models for DirectML
This repository hosts the optimized versions of 01-ai/Yi-1.5-6B-Chat to accelerate inference with ONNX Runtime for DirectML.
Usage on Windows (Intel / AMD / Nvidia / Qualcomm)
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/01-ai_Yi-1.5-6B-Chat-onnx --include=onnx/directml/01-ai_Yi-1.5-6B-Chat-int4 --local-dir .\01-ai_Yi-1.5-6B-Chat-int4
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 .\01-ai_Yi-1.5-6B-Chat-int4
What is DirectML
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.
Model info
Created: 2024-06-18
Updated: 2024-06-20
View on Hugging Face