Portions of this project are based on or inspired by designs and code from the following projects:

Notice for triton-lang/triton
-----------------------------
MIT License

Copyright contributors to the Triton project

Licensed under the MIT License, whose full license text is available below.

Notice for ROCm/gfx950-gluon-tutorials
--------------------------------------
MIT License

Copyright (c) 2026 AMD ROCm(TM) Software

Licensed under the MIT License, whose full license text is available below.

Notice for ROCm/aiter
---------------------
MIT License

Copyright (c) 2024-2026 Advanced Micro Devices, Inc. All rights reserved.

The GFX950 FP8 MLA decode layout and pipeline are adapted from ROCm/AITER
commit ae0bae8954110b12655e3232f68262dd63cd694e.
Source:
https://github.com/ROCm/aiter/blob/ae0bae8954110b12655e3232f68262dd63cd694e/aiter/ops/triton/gluon/mla_gluon.py

The GFX1250 MLA decode and cached-extend kernels are adapted from ROCm/AITER commit
4a1cc773f34cbfc74387259e51262556ee38edd0.
Source:
https://github.com/ROCm/aiter/blob/4a1cc773f34cbfc74387259e51262556ee38edd0/aiter/ops/triton/_gluon_kernels/gfx1250/attention/mla.py

The GFX1250 DSA indexer-logit, sparse decode, and sparse prefill kernels are
adapted from ROCm/AITER commit 00b271b95f8a3405fa211e509c63441040557305.
Sources:
https://github.com/ROCm/aiter/blob/00b271b95f8a3405fa211e509c63441040557305/aiter/ops/triton/_gluon_kernels/gfx1250/attention/fp8_mqa_logits.py
https://github.com/ROCm/aiter/blob/00b271b95f8a3405fa211e509c63441040557305/aiter/ops/triton/gluon/pa_mqa_logits.py
https://github.com/ROCm/aiter/blob/00b271b95f8a3405fa211e509c63441040557305/aiter/ops/triton/_gluon_kernels/gfx1250/attention/pa_decode_sparse.py
https://github.com/ROCm/aiter/blob/00b271b95f8a3405fa211e509c63441040557305/aiter/ops/triton/_gluon_kernels/gfx1250/attention/pa_prefill_sparse.py

The GFX950 standard-cache DSA scorer scheduling and FP8 matrix structure are
informed by ROCm/AITER commit b5c5912cb2bbab5d8c0cc12b08dec391a27bf8df.
Sources:
https://github.com/ROCm/aiter/blob/b5c5912cb2bbab5d8c0cc12b08dec391a27bf8df/aiter/ops/triton/_gluon_kernels/gfx950/attention/fp8_mqa_logits.py
https://github.com/ROCm/aiter/blob/b5c5912cb2bbab5d8c0cc12b08dec391a27bf8df/aiter/ops/triton/gluon/pa_mqa_logits.py

Licensed under the MIT License, whose full license text is available below.

================================================================================
                              MIT LICENSE
================================================================================

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
