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.4.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.4.tar.gz.
File metadata
- Download URL: poly_attention-0.0.4.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 |
b3e7a287af40531bc6a702325ecf951a0e22db5b5ccd55738353c47992814831
|
|
| MD5 |
6c5c56eb8b05db314e3b4bc55c52dc4c
|
|
| BLAKE2b-256 |
49d9a2b5756f32f241ad06508cdf9c39926e09189de03c3425468bbdc5989748
|
File details
Details for the file poly_attention-0.0.4-py3-none-any.whl.
File metadata
- Download URL: poly_attention-0.0.4-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 |
6a1e585079caa2c79e8feebab376e388921511f081b73bb28d27cdef1c33a2e3
|
|
| MD5 |
f17e9de67e3007b824b5abd97f1a27fc
|
|
| BLAKE2b-256 |
400b7016493d2f660045da31145ff53039378db4a6318ad822d4f8d96af140cd
|