Sequence Layers neural network layer library from Google.
Project description
Sequence Layers
Note: This is not an officially supported Google product
Overview
A library for sequence modeling in Jax and TensorFlow 2, enabling easy creation of sequence models that can be executed both layer-by-layer (e.g. teacher forced training) and step-by-step (e.g. autoregressive sampling).
A key feature of the library is that layers support streaming (step-by-step)
operation. To achieve this, every layer has a notion of state when and a step
function in addition to the typical layer-wise processing feature found in other
libraries like Keras. When layers support a step method, their layer method
produces identical results for the same sequence of input blocks enabling easy
switching between step-wise and layer-wise processing depending on the use case.
Note: Only Jax support is installed by default. Use
pip install sequence_layers[tensorflow] for TensorFlow.
Goals
Increased development velocity for both research and production applications of sequence modeling.
- Support for layer-by-layer and step-by-step processing in a single implementation.
- Declarative API.
- Composable, thin abstractions.
- Easy mix-and-match of popular sequence modeling paradigms (convolutional, recurrent, attention architectures).
- A quick path to deployment with tf.lite support for every layer.
- Tracking of invalid timesteps (those computed from padding).
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sequence_layers-0.1.tar.gz.
File metadata
- Download URL: sequence_layers-0.1.tar.gz
- Upload date:
- Size: 277.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06a5d12b4c4e7132035825b73818e14d4b35c393594021a7e3ad5a77109aa6d6
|
|
| MD5 |
ac82f277de663b99ca56cab38deaf22e
|
|
| BLAKE2b-256 |
711a544fc9120fb0ab52bd307eddcddd93ecd99715f97d00d01f6776ab660e48
|
File details
Details for the file sequence_layers-0.1-py3-none-any.whl.
File metadata
- Download URL: sequence_layers-0.1-py3-none-any.whl
- Upload date:
- Size: 320.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83c5938045cbf7dffbf4aed0c00d8ceecea7937df2f94281a747276b58b09d74
|
|
| MD5 |
3a0550b9fe075ffbb3c6e510fbdea06c
|
|
| BLAKE2b-256 |
211114a213300162ca5d6db5541806f13746133781af1a71892f0cee80fd6ea3
|