tjellm commited on
Commit
ad210b7
1 Parent(s): 2768b0b

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +35 -0
README.md ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ pipeline_tag: text-generation
6
+ tags:
7
+ - pytorch
8
+ - ONNX
9
+ - DirectML
10
+ - DML
11
+ - conversational
12
+ - ONNXRuntime
13
+ - custom_code
14
+ ---
15
+
16
+ # Yi-1.5-6B-Chat ONNX models for DirectML
17
+ This repository hosts the optimized versions of [01-ai/Yi-1.5-6B-Chat](https://huggingface.co/01-ai/Yi-1.5-6B-Chat) to accelerate inference with ONNX Runtime for DirectML.
18
+
19
+ ## Usage on Windows (Intel / AMD / Nvidia / Qualcomm)
20
+ ```powershell
21
+ conda create -n onnx python=3.10
22
+ conda activate onnx
23
+ winget install -e --id GitHub.GitLFS
24
+ pip install huggingface-hub[cli]
25
+ 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
26
+ pip install numpy==1.26.4
27
+ Invoke-WebRequest -Uri "https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/phi3-qa.py" -OutFile "phi3-qa.py"
28
+ pip install onnxruntime-directml
29
+ pip install --pre onnxruntime-genai-directml
30
+ conda install conda-forge::vs2015_runtime
31
+ python phi3-qa.py -m .\01-ai_Yi-1.5-6B-Chat-int4
32
+ ```
33
+
34
+ ## What is DirectML
35
+ 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.