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.4.tar.gz
(36.6 MB
view details)
Built Distribution
File details
Details for the file mingru_pytorch-0.0.4.tar.gz
.
File metadata
- Download URL: mingru_pytorch-0.0.4.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 | f185facabc528bf9fabda4e68bbc40643d9f4ccab9e0a78b3d8eec85b7b0f29a |
|
MD5 | 3bf2fd4ee70df6b9054693ee3389cde1 |
|
BLAKE2b-256 | 38c4e7f3897061a242fce9dfe79247e8681a4dbadfc4be350188cbe119f0bff1 |
File details
Details for the file mingru_pytorch-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: mingru_pytorch-0.0.4-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 | 298c9f3423d8c8119c1bbe0deb6b1cf00ab1293b262c4197ccab41d3699aa11d |
|
MD5 | a67ef237d2c7130d9eb5fec5f321bdec |
|
BLAKE2b-256 | 2be57fc44e10ca6b1456319f8fbbe0fa6e478b75966d19d77bf0e2a418024fe4 |