An implementation of gated MLPs in tinygrad, as an alternative to transformers.
Project description
Gated MLPs (gMLP) Implementation in Tinygrad
An implementation of gated MLPs in tinygrad, as an alternative to transformers.
What is a gMLP?
A Gated Multi-Layer Perceptron (gMLP) is a type of deep learning model that uses basic multi-layer perceptrons combined with gating mechanisms to capture spatial interactions between sequence elements, achieving comparable performance to Transformers on various language and vision tasks without relying on self-attention mechanisms.
Installation
To get started, simply install gmlp_tinygrad using pip:
pip install gmlp_tinygrad
Usage
from gmlp_tinygrad import gMLP
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
File details
Details for the file gmlp_tinygrad-0.9.2.tar.gz
.
File metadata
- Download URL: gmlp_tinygrad-0.9.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fee13915a4a2e68bec3fef3af314c435fe69d6f9c52129c14e50673aa345db8 |
|
MD5 | 741873c6cf9b5ccc0137a55b98fffe6b |
|
BLAKE2b-256 | bd8fc9b772c185d72e4ace10303f362c6a6a7710337030a3d69875c107b61eb3 |
File details
Details for the file gmlp_tinygrad-0.9.2-py3-none-any.whl
.
File metadata
- Download URL: gmlp_tinygrad-0.9.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1514592db0ea950d6a1b1f80ee03a465e6ac189b953917c031475af1b84a6dc |
|
MD5 | f90f9e1117a5f1d52170d72872bfe1c1 |
|
BLAKE2b-256 | d79546d1cb970292dc585299d8b1d9acc05558bf83bd6e2553d94e3287117f8d |