CUDA attention & morphology kernels for PyTorch (sm_90/100/120)
Project description
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.
pip install morphottention
Building from source
Requires the CUDA 13.X toolkit (nvcc) and a matching torch build:
uv sync --package morphottention --no-dev --group build
uv build --package morphottention --wheel --no-build-isolation
License
MIT
Copyright © 2026 Vedran Hrabar.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file morphottention-0.1.0.tar.gz.
File metadata
- Download URL: morphottention-0.1.0.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c11fb30b00feb9c88cee7d34722e9b95c679c3b6369062a119a142f3d2140e9
|
|
| MD5 |
9329b2556e262ce97ee06904a865158c
|
|
| BLAKE2b-256 |
791c49a096e342d064b30af1cb22757f857162c24d67cd2929ceda6007a83529
|
Provenance
The following attestation bundles were made for morphottention-0.1.0.tar.gz:
Publisher:
publish-pypi.yml on vhrabar/Morphottention
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
morphottention-0.1.0.tar.gz -
Subject digest:
0c11fb30b00feb9c88cee7d34722e9b95c679c3b6369062a119a142f3d2140e9 - Sigstore transparency entry: 2010208992
- Sigstore integration time:
-
Permalink:
vhrabar/Morphottention@5ff3582ce70680279d3625369f9a6265aaa692ed -
Branch / Tag:
refs/heads/main - Owner: https://github.com/vhrabar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@5ff3582ce70680279d3625369f9a6265aaa692ed -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file morphottention-0.1.0-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: morphottention-0.1.0-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 168.1 kB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5464f68c838c5533204a219d5b90588745759bd43c98ee4486da3555820079c4
|
|
| MD5 |
31c19fb5612878d7bab9ee8f105e18f7
|
|
| BLAKE2b-256 |
f60e725e2d39a7c3daa55d0d2432116e7dbfdf1a00ffdf5433be26ad98f733d5
|
Provenance
The following attestation bundles were made for morphottention-0.1.0-cp314-cp314-win_amd64.whl:
Publisher:
publish-pypi.yml on vhrabar/Morphottention
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
morphottention-0.1.0-cp314-cp314-win_amd64.whl -
Subject digest:
5464f68c838c5533204a219d5b90588745759bd43c98ee4486da3555820079c4 - Sigstore transparency entry: 2010209371
- Sigstore integration time:
-
Permalink:
vhrabar/Morphottention@5ff3582ce70680279d3625369f9a6265aaa692ed -
Branch / Tag:
refs/heads/main - Owner: https://github.com/vhrabar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@5ff3582ce70680279d3625369f9a6265aaa692ed -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file morphottention-0.1.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: morphottention-0.1.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 46.1 MB
- Tags: CPython 3.14, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b4a2f4803aebc943e158d27290e4bc574efc37114a38a347a8a2fa67e0db79b
|
|
| MD5 |
1e418a69d32dc452c36c7bf2eddac5bf
|
|
| BLAKE2b-256 |
9c88f81778f83644cbdbca33ed05c23f321da2b423b4dfd168aa5af673c6388c
|
Provenance
The following attestation bundles were made for morphottention-0.1.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
publish-pypi.yml on vhrabar/Morphottention
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
morphottention-0.1.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
8b4a2f4803aebc943e158d27290e4bc574efc37114a38a347a8a2fa67e0db79b - Sigstore transparency entry: 2010209230
- Sigstore integration time:
-
Permalink:
vhrabar/Morphottention@5ff3582ce70680279d3625369f9a6265aaa692ed -
Branch / Tag:
refs/heads/main - Owner: https://github.com/vhrabar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@5ff3582ce70680279d3625369f9a6265aaa692ed -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file morphottention-0.1.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.
File metadata
- Download URL: morphottention-0.1.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 43.9 MB
- Tags: CPython 3.14, manylinux: glibc 2.24+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9833fc3a90c726a0c1c2af501ae0b622fac911f47122f8d2a8432c44adce3506
|
|
| MD5 |
85d4e64c1c0ef3bc252bf4b670d37962
|
|
| BLAKE2b-256 |
9d7a664da52ed5044eb730e592d9ac98d60863be66c9c443fc243fc236b926da
|
Provenance
The following attestation bundles were made for morphottention-0.1.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl:
Publisher:
publish-pypi.yml on vhrabar/Morphottention
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
morphottention-0.1.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl -
Subject digest:
9833fc3a90c726a0c1c2af501ae0b622fac911f47122f8d2a8432c44adce3506 - Sigstore transparency entry: 2010209118
- Sigstore integration time:
-
Permalink:
vhrabar/Morphottention@5ff3582ce70680279d3625369f9a6265aaa692ed -
Branch / Tag:
refs/heads/main - Owner: https://github.com/vhrabar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@5ff3582ce70680279d3625369f9a6265aaa692ed -
Trigger Event:
workflow_run
-
Statement type: