ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
Find a file
Viswanath Boga afce0e2543
Attention kernel update to handle different Q,K,V hidden sizes (#8039)
* changes working to convert akv nodes

* changes to replace nodes

* changes to accomodate qkv hidden sizes as attributes

* kernel to accept qkv_hidden_size attributes

* Working till compute for varied dimension, todo applyattention()

* changes to make all regression tests work

* inference running successfully without prepack

* success inference with pre-pack weights

* add test for diff sizes

* bias shape need not be a mul of 3

* get the output_hidden_size from input

* infer output shape from input

* merge with master

* cleaning up files that got merged wrong

* accurancy at accepted level

* added unit test case for different dimensions

* all unit tests passing

* packed weights working for attention

* prepacked weights working

* added test case for newly added extra qk input

* updated unit test to test only extra add qk

* fixing build error

* removing few debugs

* reverting test changes

* all python test passing

* cleaning up

* new unit test added, major clean up of code

* removed extra code

* minor

* minor fix to tests

* prepack weights code cleaned up

* compacted compute() in attention.cc

* reformat compute()

* making a parameter T

* adding 3 q,k,v buffers in all cases

* fixing build

* running tests only on cpu

* Updating docs

* trigger ci builds

* Addressing comments in PR

* addressing some more comments

* get add_qk_str from add_qk node directly

* updating docs, added extra check to verify attn inputs

* Optimized the extra add by parallelizing

* added attention_shape to symbolic_shape_infer.py

* minor refactoring to address comments
2021-07-19 12:21:33 -07:00
.github Update issue template to ask users to check known issues to avoid repetition. (#8288) 2021-07-02 15:36:14 -07:00
cgmanifests Update submodule onnxruntime-extensions. (#8282) 2021-07-13 10:21:11 +08:00
cmake [OpenVINO-EP] 2021.4 Release (#8369) 2021-07-19 10:40:56 -07:00
csharp Enable TRT provider option configuration for C# (updated version) (#7808) 2021-06-25 03:21:22 -07:00
dockerfiles Update Dockerfile.cuda: remove compute capability 30 2021-07-12 15:19:48 -07:00
docs Attention kernel update to handle different Q,K,V hidden sizes (#8039) 2021-07-19 12:21:33 -07:00
include/onnxruntime/core Enable cast propagation with level one by default. (#8286) 2021-07-08 14:38:09 -07:00
java [Java] Fixing the creation of OnnxTensors from scalars, adding tests (#8023) 2021-06-24 13:21:35 -07:00
js [js/node] remove unused dependency node-pre-gyp-github (#8388) 2021-07-14 14:30:44 -07:00
objectivec [Objective-C API] Fix ORTIsCoreMLExecutionProviderAvailable link error when used from Swift. (#8350) 2021-07-14 18:38:58 -07:00
onnxruntime Attention kernel update to handle different Q,K,V hidden sizes (#8039) 2021-07-19 12:21:33 -07:00
orttraining Update ORTModule frontend code owner file (#8335) 2021-07-14 09:26:04 -07:00
package/rpm bumping up version number to 1.8 (#7733) 2021-05-18 09:03:37 -07:00
samples Move the samples to a new repo (#8374) 2021-07-14 11:16:39 -07:00
server fix boost download url (#7843) 2021-05-26 16:08:57 -07:00
tools [OpenVINO-EP] 2021.4 Release (#8369) 2021-07-19 10:40:56 -07:00
winml Enable string attributes for experimental model building (#8428) 2021-07-19 11:48:41 -07:00
.clang-format
.clang-tidy
.dockerignore
.flake8 Add ability to track per operator types in reduced build config. (#6428) 2021-01-29 07:59:51 +10:00
.gitattributes
.gitignore Add auto doc gen for ORTModule API during CI build (#7046) 2021-03-22 10:20:33 -07:00
.gitmodules Adding pytorch cpuinfo as dependency (#8178) 2021-07-12 14:21:12 -07:00
build.amd64.1411.bat
build.bat
build.sh
CODEOWNERS Update ORTModule frontend code owner file (#8335) 2021-07-14 09:26:04 -07:00
CONTRIBUTING.md Add README for docs (#6626) 2021-03-12 15:14:40 -08:00
LICENSE Remove year from license (#6658) 2021-02-12 00:25:56 -08:00
NuGet.config Delete nuget extra configs (#6477) 2021-01-27 20:25:45 -08:00
ort.wprp
packages.config Update DirectML version to 1.5.1 and enable ARM/ARM64 builds with DML (#7511) 2021-04-30 00:49:30 -07:00
README.md Fix readme page (#7659) 2021-05-12 14:30:23 -07:00
requirements-dev.txt Add post-install command to build PyTorch CPP extensions from within onnxruntime package (#8027) 2021-06-28 18:11:58 -07:00
requirements-doc.txt Add auto doc gen for ORTModule API during CI build (#7046) 2021-03-22 10:20:33 -07:00
requirements-training.txt Add post-install command to build PyTorch CPP extensions from within onnxruntime package (#8027) 2021-06-28 18:11:58 -07:00
requirements.txt.in Chang how numpy version is handled. (#8130) 2021-06-23 14:08:37 -07:00
setup.py fix ld_preload for rocm (#8290) 2021-07-02 17:15:28 -07:00
ThirdPartyNotices.txt Adding pytorch cpuinfo as dependency (#8178) 2021-07-12 14:21:12 -07:00
VERSION_NUMBER bumping up version number to 1.8 (#7733) 2021-05-18 09:03:37 -07:00

ONNX Runtime is a cross-platform inference and training machine-learning accelerator.

ONNX Runtime inference can enable faster customer experiences and lower costs, supporting models from deep learning frameworks such as PyTorch and TensorFlow/Keras as well as classical machine learning libraries such as scikit-learn, LightGBM, XGBoost, etc. ONNX Runtime is compatible with different hardware, drivers, and operating systems, and provides optimal performance by leveraging hardware accelerators where applicable alongside graph optimizations and transforms. Learn more →

ONNX Runtime training can accelerate the model training time on multi-node NVIDIA GPUs for transformer models with a one-line addition for existing PyTorch training scripts. Learn more →

Get Started

http://onnxruntime.ai/

Build Pipeline Status

System CPU GPU EPs
Windows Build Status Build Status Build Status
Linux Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Mac Build Status
Build Status
Android Build Status
iOS Build Status
WebAssembly Build Status

Data/Telemetry

Windows distributions of this project may collect usage data and send it to Microsoft to help improve our products and services. See the privacy statement for more details.

Contributions and Feedback

We welcome contributions! Please see the contribution guidelines.

For feature requests or bug reports, please file a GitHub Issue.

For general discussion or questions, please use Github Discussions.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

License

This project is licensed under the MIT License.