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.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file mingru_keras-0.1.1.tar.gz.

File metadata

  • Download URL: mingru_keras-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 c82cb05b5ee1b9e6d894eb97b7a35aab0a7f71537690a76243bcdc5b18ed6238
MD5 8ec5a87e2387dd8041ed128c0f4cc9b1
BLAKE2b-256 c9b08772c4a13ecc8de977cb5569c8537675137f870e782111d157cdd995e7f7

See more details on using hashes here.

Provenance

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

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

Attestations:

File details

Details for the file mingru_keras-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mingru_keras-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 71df501af77a1892781343e2cfa15d4447b97a5b21e0b2c4c00191ea6725e4c8
MD5 7e7f9bb93573f94a614e9bc87a5f4f42
BLAKE2b-256 89447df568df4023767ba6f4dd281e653ab39d424ecee3a6a6f9e96a6aee0d71

See more details on using hashes here.

Provenance

The following attestation bundles were made for mingru_keras-0.1.1-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