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.11.tar.gz
(36.6 MB
view details)
Built Distribution
File details
Details for the file mingru_pytorch-0.0.11.tar.gz
.
File metadata
- Download URL: mingru_pytorch-0.0.11.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 | 61a2b443d9c4a6f0a17ec106dc6dc208ecd27e256ce879e6a87c27c9af86782b |
|
MD5 | 247278a1a63d9fe67b4cd409a5537d21 |
|
BLAKE2b-256 | 8500dc225319973cabe7fd67c73d9cedd286e8526b073ed63317805b9e5ffe43 |
File details
Details for the file mingru_pytorch-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: mingru_pytorch-0.0.11-py3-none-any.whl
- Upload date:
- Size: 5.5 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 | 3a6defc6f505512a619e5f4f1b0c88b2bf512c06cf8aff8375c600da1465f696 |
|
MD5 | a478e84d9558e612513543a4e028fe23 |
|
BLAKE2b-256 | 955532a031d1f1110fd0826194bed974caf3b9f2a4ae5bd5b94ae2ed257ca059 |