minGRU
Project description
minGRU
Implementation of the proposed minGRU in Pytorch, only the log-space numerically stable version.
Install
$ pip install minGRU-pytorch
Usage
import torch
from minGRU_pytorch import minGRU
min_gru = minGRU(512)
x = torch.randn(2, 1024, 512)
out = min_gru(x)
assert x.shape == out.shape
Test
enwik8
$ python train.py
Citations
@inproceedings{Feng2024WereRA,
title = {Were RNNs All We Needed?},
author = {Leo Feng and Frederick Tung and Mohamed Osama Ahmed and Yoshua Bengio and Hossein Hajimirsadegh},
year = {2024},
url = {https://api.semanticscholar.org/CorpusID:273025630}
}
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
mingru_pytorch-0.0.5.tar.gz
(36.6 MB
view details)
Built Distribution
File details
Details for the file mingru_pytorch-0.0.5.tar.gz
.
File metadata
- Download URL: mingru_pytorch-0.0.5.tar.gz
- Upload date:
- Size: 36.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a8eee921c3ac220778352955bc52f1118c0cd90815f51d6cd45070c996de109 |
|
MD5 | 135a2ec11a033210797604059f2e88ad |
|
BLAKE2b-256 | 604bbbfe01e4de759f24e2aed21dc54aa5679c741dbe04d99162525803e44561 |
File details
Details for the file mingru_pytorch-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: mingru_pytorch-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d9e2fee1e6b55a7df29b42f57819221fb9626d88c4108652336d122a8fbf01d |
|
MD5 | 318864b2af051e6f6f95ff7486de2072 |
|
BLAKE2b-256 | a5c21de0a9ed1fc5da256b06e721b1fbc62c04f606cc2bbf56d401521971f67c |