Skip to main content

Pure-TensorFlow lightweight Mamba with multi-dilated causal conv front-end

Project description

lite-mamba

Publish Python Package Tests Documentation

A minimal, pure-TensorFlow implementation of Mamba with a multi-dilated causal depthwise conv front-end. No custom C++ or Triton kernels needed; works seamlessly on CPU, GPU, or TPU with standard TensorFlow ops.


📚 READ THE FULL DOCUMENTATION HERE 📚

Contains architecture details, API references, streaming inference guides, and overviews of the multi-branch variants (TFPTCNMamba, TFSTCNMamba, TFDPWCMamba).


Quick Start

Install

pip install lite-mamba

Basic Usage

from lite_mamba import TFPTCNMamba
import tensorflow as tf

x = tf.random.normal((2, 128, 512))  # (batch, seq, d_model)
m = TFPTCNMamba(d_model=512, d_conv=3, conv_dilations=(1, 2, 4, 8))

y = m(x)
print(y.shape)  # (2, 128, 512)

License

Apache-2.0

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

lite_mamba-1.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

lite_mamba-1.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file lite_mamba-1.1.0.tar.gz.

File metadata

  • Download URL: lite_mamba-1.1.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for lite_mamba-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4f7dda296e66ee20c75ba673d376698ddefd2b365ae756a982f0f5e231569960
MD5 81ee83e19c00a921b1854f78dabd549d
BLAKE2b-256 eff5bce18cd725c8f1d68c156f79f577ca19007613b21169795d1c98a4f8ced3

See more details on using hashes here.

File details

Details for the file lite_mamba-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: lite_mamba-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for lite_mamba-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16177121a490e53320c4e7db4bc369341bce8023af01640c6bab2fdbe7d9edf9
MD5 9619fd68a070634d85ca87c5574b10d8
BLAKE2b-256 b2979b155ece8cd3ca433245619b7f26f488366939d1a0438a72b2d19c36ebfb

See more details on using hashes here.

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