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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mingru_keras-0.1.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mingru_keras-0.1.3.tar.gz
Algorithm Hash digest
SHA256 52f0e540668867df5f2cdd6d40e608b00f6aa97e47832e48c202014ba14d6fb8
MD5 682a8a18d189f91a2bdfcb9deaf5c88d
BLAKE2b-256 d3f1cf0eaf474cd8a3b4b0246d1a37158006072b6755db9d7e226325daf76517

See more details on using hashes here.

Provenance

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

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: mingru_keras-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mingru_keras-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0b665c6ff4877929686cf1f400f44a7cb13ca205f5ef3c0a1ac814119e5d0aba
MD5 2bffa079d867357d4273e347e86d3d04
BLAKE2b-256 39bbe1e7440a73932d698e9248177a5b4b1287870b6264acfc8dc99a38e68a2a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mingru_keras-0.1.3-py3-none-any.whl:

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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