An open API service indexing awesome lists of open source software.

https://github.com/lucidrains/remixer-pytorch

Implementation of the Remixer Block from the Remixer paper, in Pytorch
https://github.com/lucidrains/remixer-pytorch

artificial-intelligence deep-learning transformers

Last synced: about 1 year ago
JSON representation

Implementation of the Remixer Block from the Remixer paper, in Pytorch

Awesome Lists containing this project

README

          

## Remixer - Pytorch

Implementation of the Remixer Block from the Remixer paper, in Pytorch. It claims that substituting the feedforwards in transformers with sequence wide mixing followed by multiplication and subtraction leads to better language understanding results.

## Install

```bash
$ pip install remixer-pytorch
```

## Usage

```python
import torch
from remixer_pytorch import RemixerBlock

block = RemixerBlock(
dim = 512,
seq_len = 1024
)

x = torch.randn(1, 1024, 512)
block(x) # (1, 1024, 512)
```

## Citations

```bibtex
@inproceedings{anonymous,
title = {Remixers: A Mixer-Transformer Architecture with Compositional Operators for Natural Language Understanding },
author = {Anonymous},
year = {2021},
url = {https://openreview.net/forum?id=9FHQHJnRtfL}
}
```