Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mingru_keras-0.1.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

mingru_keras-0.1.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

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

Hashes for mingru_keras-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f4688148e772795649c95f06c3237bd38c987af114a4492eccddbf90b45afe75
MD5 e3809566a2d8b89c0852ab8adba358ee
BLAKE2b-256 43ec0bb0cc62582fecf9ae2288ac258c9ed36ccff5de32ff57b57f607861b9c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for mingru_keras-0.1.2.tar.gz:

Publisher: python-publish.yml on breuderink/mingru-keras

Attestations:

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

Hashes for mingru_keras-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 21a87fe0178e9fcac693608cf99066b760b1d8be18009593090c22f4f0fe8b5f
MD5 739dee3855ad35ab612fcdc36683046f
BLAKE2b-256 f5d73c9f871a63202f9d6c2c7dc01d9a62c12899a80936bdf91a6b45c4d62c11

See more details on using hashes here.

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

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page