High-Throughput State Prefix Caching for Samba & Hybrid Models
Fusing the OrthoSSM Projective Hidden-State Radix prefix manifold and dynamic INT8 state quantization with State Space Models (SSMs) and Samba hybrid architectures. By snapshotting recurrent states ($h_{\text{ssm}}$) and convolution buffers ($h_{\text{conv}}$) in sub-90 $\mu\text{s}$, PHANTOM achieves 2.76× faster TTFT and instant 0 ms prompt prefill resumption.
Interactive Radix Prefix Simulator
Simulate multi-turn chat prompt resumption and measure cold vs warm TTFT latency.
Time-To-First-Token Scaling (Cold vs Warm)
Empirical measurement on NVIDIA Tesla T4 across prompt prefix lengths.
Direct Hugging Face Hub Integration
trust_remote_code=Truefrom transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# Load the official PHANTOM foundation hybrid directly from Hugging Face Hub:
model_id = "Prannesshkva/OrthoSSM-Mamba-Falcon-Hybrid" # or "Prannesshkva/OrthoSSM-Qwen2.5-1.5B-Instruct"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16,
device_map="auto",
trust_remote_code=True
)
# Benchmark 0ms prompt resumption and constant O(1) state memory
prompt = "Analyze how hybrid Mamba-2 SSD and Falcon MQA prevents associative recall collapse:"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=64)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Developed & Owned Exclusively by Prannessh (@Prannesshkva) under Business Source License 1.1 (BSL 1.1) and the Berne Convention.
Base Architecture Acknowledgements: Alibaba Cloud (Qwen 2.5), Technology Innovation Institute (Falcon 40B Apache 2.0), Albert Gu & Tri Dao (Mamba-2 SSD).
Architectural Pioneer Notice: Prannesshkva/OrthoSSM-Mamba-Falcon-Hybrid is the first-ever integration of Mamba-2 SSD with Falcon Multi-Query Attention (MQA), created by Prannessh.