| Crates.io | kizzasi-model |
| lib.rs | kizzasi-model |
| version | 0.1.0 |
| created_at | 2026-01-19 00:17:24.360143+00 |
| updated_at | 2026-01-19 00:17:24.360143+00 |
| description | Model architectures for Kizzasi AGSP - Mamba, RWKV, S4, Transformer |
| homepage | https://github.com/cool-japan/kizzasi |
| repository | https://github.com/cool-japan/kizzasi |
| max_upload_size | |
| id | 2053362 |
| size | 765,971 |
Model architectures for Kizzasi AGSP - Mamba, RWKV, S4, Transformer.
Production-ready implementations of state-of-the-art sequence models with unified interfaces. All models support O(1) recurrent inference for streaming applications.
use kizzasi_model::{Mamba, MambaConfig, AutoregressiveModel};
// Create Mamba model
let config = MambaConfig::base(32, 64); // input_dim, hidden_dim
let mut model = Mamba::new(config)?;
// Single-step inference
let input = Array1::zeros(32);
let output = model.forward(&input)?;
// Or use presets
let tiny_model = Mamba::tiny(32, 32); // For edge devices
let large_model = Mamba::large(64, 1024); // High accuracy
| Model | Complexity | Memory | Best For |
|---|---|---|---|
| Mamba2 | O(1) | Low | Real-time streaming |
| RWKV | O(1) | Very Low | Long sequences |
| S4D | O(1) | Low | Continuous signals |
| Transformer | O(n²) | High | Short contexts |
| Hybrid | O(n) | Medium | Balanced performance |
Licensed under either of Apache License, Version 2.0 or MIT license at your option.