PolyAttention
Project description
Poly Attention (wip)
Implementation of Poly-Attention, a general scheme for higher-order self-attention
Install
$ pip install poly-attention
Usage
import torch
from poly_attention import PolyAttention
attn = PolyAttention(
dim = 512,
heads = 8,
dim_head = 64,
causal = False
)
x = torch.randn(1, 1024, 512)
out = attn(x) # (1, 1024, 512)
Appreciation
- @dillfrescott for submitting a stability fix
Citations
@inproceedings{chakrabarti2026poly,
title = {Poly-attention: a general scheme for higher-order self-attention},
author = {Chakrabarti, Sayak and Pitassi, Toniann and Alman, Josh},
booktitle = {International Conference on Learning Representations (ICLR)},
year = {2026}
}
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
poly_attention-0.0.5.tar.gz
(6.3 kB
view details)
Built Distribution
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 poly_attention-0.0.5.tar.gz.
File metadata
- Download URL: poly_attention-0.0.5.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3fe2bd0ad8ffb86f253c7ab3980c486bfe1adc6781180ab8c42de562eb2bc41
|
|
| MD5 |
861ea00d55a65e6b51ce8f8f9fc4927e
|
|
| BLAKE2b-256 |
5a0dedc7ccfdb46603bcc912a796ac662225c1f77f875acb35e213e5aa3f4a93
|
File details
Details for the file poly_attention-0.0.5-py3-none-any.whl.
File metadata
- Download URL: poly_attention-0.0.5-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a595c1b01cba968604fc532ce9aa8c791f7634e390ccb6869911565a708a9fb7
|
|
| MD5 |
319b00a7be9064ad0d64242dd20f4897
|
|
| BLAKE2b-256 |
1702bfb3eacd2a822bf9ab5bf89b78ea8efb5a77ad13380cc3555e1572c543fd
|