Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

morphottention-0.1.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

morphottention-0.1.0-cp314-cp314-win_amd64.whl (168.1 kB view details)

Uploaded CPython 3.14Windows x86-64

morphottention-0.1.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (46.1 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

morphottention-0.1.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (43.9 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

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

Hashes for morphottention-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0c11fb30b00feb9c88cee7d34722e9b95c679c3b6369062a119a142f3d2140e9
MD5 9329b2556e262ce97ee06904a865158c
BLAKE2b-256 791c49a096e342d064b30af1cb22757f857162c24d67cd2929ceda6007a83529

See more details on using hashes here.

Provenance

The following attestation bundles were made for morphottention-0.1.0.tar.gz:

Publisher: publish-pypi.yml on vhrabar/Morphottention

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file morphottention-0.1.0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for morphottention-0.1.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 5464f68c838c5533204a219d5b90588745759bd43c98ee4486da3555820079c4
MD5 31c19fb5612878d7bab9ee8f105e18f7
BLAKE2b-256 f60e725e2d39a7c3daa55d0d2432116e7dbfdf1a00ffdf5433be26ad98f733d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for morphottention-0.1.0-cp314-cp314-win_amd64.whl:

Publisher: publish-pypi.yml on vhrabar/Morphottention

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

File hashes

Hashes for morphottention-0.1.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8b4a2f4803aebc943e158d27290e4bc574efc37114a38a347a8a2fa67e0db79b
MD5 1e418a69d32dc452c36c7bf2eddac5bf
BLAKE2b-256 9c88f81778f83644cbdbca33ed05c23f321da2b423b4dfd168aa5af673c6388c

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file morphottention-0.1.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for morphottention-0.1.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9833fc3a90c726a0c1c2af501ae0b622fac911f47122f8d2a8432c44adce3506
MD5 85d4e64c1c0ef3bc252bf4b670d37962
BLAKE2b-256 9d7a664da52ed5044eb730e592d9ac98d60863be66c9c443fc243fc236b926da

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page