Metadata-Version: 2.2
Name: morphottention
Version: 0.1.0
Summary: CUDA attention & morphology kernels for PyTorch (sm_90/100/120)
Keywords: attention,cuda,pytorch,transformer,morfologfy,flash-attention,ViT
Author-Email: Vedran Hrabar <vedran.hrabar@outlook.com>
License: MIT
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: GPU
Classifier: Environment :: GPU :: NVIDIA CUDA
Classifier: Environment :: GPU :: NVIDIA CUDA :: 13
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: C++
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Scientific/Engineering :: Image Recognition
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Project-URL: repository, https://github.com/vhrabar/morphottention
Project-URL: documentation, https://github.com/vhrabar/morphottention/wiki
Project-URL: Bug Tracker, https://github.com/vhrabar/morphottention/issues
Requires-Python: ==3.14.*
Requires-Dist: torch>=2.12
Description-Content-Type: text/markdown

# Morphottention
Mathematical Morphology-based self-attention module for PyTorch using Flash-style kernel fusion.

## Install

Prebuilt wheels are published for CPython 3.14 on Linux (x86_64, aarch64) and
Windows (x86_64). A working CUDA-enabled PyTorch (`torch >= 2.12`) must already
be installed in the environment.

```bash
pip install morphottention
```

## Building from source

Requires the CUDA 13.X toolkit (`nvcc`) and a matching `torch` build:

```bash
uv sync --package morphottention --no-dev --group build
uv build --package morphottention --wheel --no-build-isolation
```

## License

MIT

Copyright © 2026 Vedran Hrabar.
