Skip to main content

No project description provided

Project description

Multibackend GLU and its variants

A Keras 3 port of Gated Linear Units and its variants. Ported from Rishit Dagli's Implementation

Installation

pip install glu_keras --upgrade

Usage

import keras
from glu_keras import SwiGLU

model = keras.Sequential()
model.add(keras.layers.Dense(units=10))
model.add(SwiGLU(bias = False, dim=-1, name='swiglu'))

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

glu_keras-0.0.2.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

glu_keras-0.0.2-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

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