Skip to main content

Multi-Modality

MambaByte

Implementation of MambaByte in "MambaByte: Token-free Selective State Space Model" in Pytorch and Zeta. Note this will be a higher performance implementation of Mamba with parallel scan

Installation

pip install mambabyte

Usage

import torch 
from mambabyte import MambaConfig, Mamba

x = torch.randn(2, 3, 4)
config = MambaConfig(
    dim = 4,
    depth = 3,
    dt_rank = 2,
    d_state = 2,
    expand_factor = 2,
    d_conv = 3,
    dt_min = 0.001,
    dt_max = 0.1,
    dt_init = "random",
    dt_scale = 1.0,
    bias = False,
    conv_bias = True,
    pscan = True
)

model = Mamba(config)

out = model(x)

print(out)

License

MIT

Metadata

Release files for mambabyte 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mambabyte 0.0.2
File Size Uploaded
mambabyte-0.0.2.tar.gz 7.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mambabyte 0.0.2
File Interpreter ABI Platform
mambabyte-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 14.0 kB

Release files / mambabyte-0.0.2.tar.gz

Download URL mambabyte-0.0.2.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
47a27a4b659d8ec3b145bbac8fb1d67001faceaac29b78fa8e983ff46ff5b0d3
BLAKE2b-256 checksum
How to use checksums
7d2ea060a4da585b800439adeadf3d692a0d5d61a1b59ae823f8d6a850461da4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.0 Darwin/22.4.0

Release files / mambabyte-0.0.2-py3-none-any.whl

Download URL mambabyte-0.0.2-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1545a1276449a9d5cb3a0f3ee65779a6b6a48e701699e734a95822d22c9f59cb
BLAKE2b-256 checksum
How to use checksums
06a7a79de0f8b0e09fc430f168a222946d50f5d7842b07655d7865b67dd22272
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.0 Darwin/22.4.0

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page