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)
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.3.tar.gz
(5.5 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.3.tar.gz.
File metadata
- Download URL: poly_attention-0.0.3.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c4fae14e38f651a50b4f7d717e1a82bc33f864bd1aaf9944e92fdb11d50b228
|
|
| MD5 |
67f5a8e0aa39700c9aecced2682e0b42
|
|
| BLAKE2b-256 |
d0d0d99f1099c66fbb637c26b7832d79d01de611cabf4d0b5e22e9aa3f761f7b
|
File details
Details for the file poly_attention-0.0.3-py3-none-any.whl.
File metadata
- Download URL: poly_attention-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c76a9a736c10c3d3e91a860dcbe8571d38b77e11730c2428f52676be2035057c
|
|
| MD5 |
2a208362f44abd4f924498fd7df7c945
|
|
| BLAKE2b-256 |
62284a103fc8aa6fab7b98248752a447dfddc86686ebfcda699f14018d3bc6e3
|