openvino/src/core
Ivan Tikhonov 55c11c6324
Port SDPA to PagedAttention transformation (#24336)
### Details:
Ported SDPA to PagedAttention transformation from python to C++ code.

the related PRs:
https://github.com/openvinotoolkit/openvino/pull/24127
https://github.com/openvinotoolkit/openvino/pull/24177

Tested model scope:
- [x]          "hf-internal-testing/tiny-random-BloomForCausalLM",
- [x]          "hf-internal-testing/tiny-random-FalconForCausalLM",
- [x]          "hf-internal-testing/tiny-random-Starcoder2ForCausalLM",
- [x]          "hf-internal-testing/tiny-random-GPTJForCausalLM",
- [x]          "hf-internal-testing/tiny-random-StableLmForCausalLM",
- [x]          "hf-internal-testing/tiny-random-LlamaForCausalLM",
- [x]          "hf-internal-testing/tiny-random-MistralForCausalLM",
- [x]          "hf-internal-testing/tiny-random-OPTForCausalLM",
- [x]          "hf-internal-testing/tiny-random-PhiForCausalLM",
- [x]          "hf-internal-testing/tiny-random-StableLmForCausalLM",
- [x]          "facebook/opt-125m",
- [x]          "llama2",
- [x]          "bigcode/starcoder2-7b"
- [ ] "mosaicml/mpt-7b-chat" (FAILED both py/c++) - acceptable for this
PR
Issue: RuntimeError: Check '(axis_range_min <= axis) && (axis <=
axis_range_max)' failed at src/core/src/validation_util.cpp:386:
Concat Parameter axis 2 out of the tensor rank range [0, 0].
- [x] _means, that the response to the dedicated prompt is the same for
the py and c++ transformations._




### Tickets:
 - *CVS-138664*

---------

Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>
Co-authored-by: Andrii Staikov <andrii.staikov@intel.com>
2024-05-02 16:02:04 +04:00
..
dev_api/openvino Port SDPA to PagedAttention transformation (#24336) 2024-05-02 16:02:04 +04:00
docs [DOCS] Update of hyperlinks to 2024 + new ov homepage diagram image for master (#23091) 2024-02-28 07:54:04 +00:00
include/openvino Port SDPA to PagedAttention transformation (#24336) 2024-05-02 16:02:04 +04:00
reference [Op]: ROIAlignRotated ref implementation (#23607) 2024-04-25 07:08:33 +00:00
shape_inference Fix coverity issues: `AUTO_CAUSES_COPY` and `UNINIT_CTOR` (#24196) 2024-04-24 14:05:54 +00:00
src Port SDPA to PagedAttention transformation (#24336) 2024-05-02 16:02:04 +04:00
template_extension copyright year update (#23370) 2024-03-14 09:37:02 +00:00
tests Fixes for Ubuntu 24.04 (#24310) 2024-04-30 08:29:46 +00:00
CMakeLists.txt copyright year update (#23370) 2024-03-14 09:37:02 +00:00
README.md [DOCS] Update of hyperlinks to 2024 + new ov homepage diagram image for master (#23091) 2024-02-28 07:54:04 +00:00

README.md

OpenVINO™ Core

OpenVINO Core is a part of OpenVINO Runtime library. The component is responsible for:

OpenVINO Core supports conditional compilation feature and uses the common coding style rules.

Key person

People from the openvino-ngraph-maintainers allows to approve and merge PRs to the core component. These guys can help in case of any questions about core component.

Components

OpenVINO Core has the next structure:

  • dev_api contains developer API. In order to use this API, you need to link your component against openvino::runtime::dev.
  • docs contains developer documentation pages for the component.
  • include contains public API. Detailed information about provided API can be found here.
  • reference is a library which provides reference implementations for all supported operations. Operations with evaluate method use these implementations inside.
  • shape_inference library contains implementation of shape inference for OpenVINO operations.
  • src folder contains sources of the core component.
  • tests contains tests for OpenVINO Core components. More information about OpenVINO Core tests can be found here.

Tutorials

See also