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.1.tar.gz
(5.4 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.1.tar.gz.
File metadata
- Download URL: poly_attention-0.0.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db3f379518efe62aa547b3f109a57577ee242c4c11a3c76090efa7ebd0c3afcb
|
|
| MD5 |
605ca002918eeb067a3edb3a947b5acf
|
|
| BLAKE2b-256 |
d694ec17c3e1ddbc97f0d6d9e45e72a97d6f3f5544d1f5c3476b2993c47e6bcb
|
File details
Details for the file poly_attention-0.0.1-py3-none-any.whl.
File metadata
- Download URL: poly_attention-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
836e8f7d395730b52239a14d0cec0a8d83402edf2e78cb70d539ab6882af2a5e
|
|
| MD5 |
66f6ce8db27ca9076c8bd695cede1459
|
|
| BLAKE2b-256 |
f007566f2b282d9e814388d85c8e76317727b9fc50c774b5c23f08a681a1d555
|