Institutional Quantitative AI Suite
Collection
Quantitative finance toolkit: time series, algorithmic backtesting, econometrics, financial NLP sentiment, and portfolio optimization. β’ 56 items β’ Updated β’ 1
Pretrained weights and linear-time sequence inference engine implementing the Mamba Selective Structured State Space Architecture (S6) (Gu & Dao, 2023).
Continuous state space representation:
Discretized via Zero-Order Hold (ZOH) with dynamic input-dependent step sizes $\Delta_t = \text{softplus}(\text{Linear}(x_t))$:
| Hyperparameter | Value | Description |
|---|---|---|
| Model Dimension $d_{\text{model}}$ | 64 | Sequence feature embedding width |
| Inner Dimension $d_{\text{inner}}$ | 128 | Expansion factor $E = 2$ |
| State Dimension $d_{\text{state}}$ | 16 | Latent continuous state channels |
| Convolution Width $d_{\text{conv}}$ | 4 | 1D causal depthwise convolution |
| $\Delta$ Rank | 4 | Low-rank projection for dynamic time delta |
| Model Format | model.safetensors |
Native zero-copy binary weights (131.5 KB) |
import json
import numpy as np
from safetensors.numpy import load_file
from mamba_s6 import MambaS6Block
# Load weights and configuration
tensors = load_file("model.safetensors")
with open("config.json", "r") as f:
config = json.load(f)
model = MambaS6Block(tensors, config)
# Sequence processing: (L=256, d_model=64)
L, d_model = 256, 64
u = np.random.randn(L, d_model).astype(np.float32)
y, h_final = model.forward_sequence(u)
print("Output sequence shape:", y.shape)
print("Final hidden state matrix:", h_final.shape)
At1uri)At1uri/mamba-state-space-model-studioAt1uri/mamba-long-context-recall-benchmarksAt1uri/mamba-state-space-vault