Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 520 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 520 Bytes

Multi-Modality

Infini Attention

install

$ pip install infini-torch

usage

import torch
from infini_torch.attention import InfiniAttention

# Create a random tensor of shape (1, 32, 64)
x = torch.randn(1, 32, 64)

# Create an instance of InfiniAttention with input size 64
attn = InfiniAttention(64)

# Apply the attention mechanism to the input tensor
out = attn(x)

# Print the shape of the output tensor
print(out.shape)

License

MIT