onnxruntime/onnxruntime/test/python/transformers
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
..
test_data update gpt2 attention fusion for past pattern (#8375) 2021-07-14 12:04:53 -07:00
bert_model_generator.py Attention kernel update to handle different Q,K,V hidden sizes (#8039) 2021-07-19 12:21:33 -07:00
conftest.py
gpt2_model_generator.py update gpt2 attention fusion for past pattern (#8375) 2021-07-14 12:04:53 -07:00
test_attention_fusion.py update gpt2 attention fusion for past pattern (#8375) 2021-07-14 12:04:53 -07:00
test_gelu_fusions.py
test_gpt2.py
test_optimizer.py
test_profiler.py
test_shape_infer_helper.py