This package contains a Keras 3 implementation of the minGRU layer, a minimal and parallelizable version of the gated recurrent unit (GRU).
Project description
MinGRU Implementation in Keras
This repository contains a Keras implementation of the minGRU model, a minimal and parallelizable version of the traditional Gated Recurrent Unit (GRU) architecture. The minGRU model is based on the research paper "Were RNNs All We Needed?" that revisits traditional recurrent neural networks and modifies them to be efficiently trained in parallel.
Features
- Minimal GRU architecture with significantly fewer parameters than traditional GRUs.
- Fully parallelizable during training, achieving faster training times.
- Compatible with Keras 3.
Installation
This project uses uv to manage dependencies. To install the required dependencies, run:
pip install --upgrade mingru-keras
Usage
To use the MinGRU model in your own project, simply import the MinGRU
class
and use it as you would any other Keras layer.
Example
>>> import keras
>>> from mingru_keras import MinGRU
>>> layer = MinGRU(units=64)
>>> X = keras.random.normal((32, 1000, 8))
>>> layer(X).shape
(32, 1000, 64)
Contributing
Contributions are welcome! If you'd like to report a bug or suggest a feature, please open an issue or submit a pull request.
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
Built Distribution
File details
Details for the file mingru_keras-0.1.2.tar.gz
.
File metadata
- Download URL: mingru_keras-0.1.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4688148e772795649c95f06c3237bd38c987af114a4492eccddbf90b45afe75 |
|
MD5 | e3809566a2d8b89c0852ab8adba358ee |
|
BLAKE2b-256 | 43ec0bb0cc62582fecf9ae2288ac258c9ed36ccff5de32ff57b57f607861b9c0 |
Provenance
The following attestation bundles were made for mingru_keras-0.1.2.tar.gz
:
Publisher:
python-publish.yml
on breuderink/mingru-keras
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
mingru_keras-0.1.2.tar.gz
- Subject digest:
f4688148e772795649c95f06c3237bd38c987af114a4492eccddbf90b45afe75
- Sigstore transparency entry: 150116306
- Sigstore integration time:
- Predicate type:
File details
Details for the file mingru_keras-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: mingru_keras-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21a87fe0178e9fcac693608cf99066b760b1d8be18009593090c22f4f0fe8b5f |
|
MD5 | 739dee3855ad35ab612fcdc36683046f |
|
BLAKE2b-256 | f5d73c9f871a63202f9d6c2c7dc01d9a62c12899a80936bdf91a6b45c4d62c11 |
Provenance
The following attestation bundles were made for mingru_keras-0.1.2-py3-none-any.whl
:
Publisher:
python-publish.yml
on breuderink/mingru-keras
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
mingru_keras-0.1.2-py3-none-any.whl
- Subject digest:
21a87fe0178e9fcac693608cf99066b760b1d8be18009593090c22f4f0fe8b5f
- Sigstore transparency entry: 150116307
- Sigstore integration time:
- Predicate type: