Mamba's step size depends on the current input, through a softplus so it stays positive. A large step lets the state absorb the current token, and a small step lets it ignore it. That input-dependent choice is the selection mechanism.
Implement selective_step(delta_raw), mapping a raw value to a positive step size.
Compute the log of one plus the exponential of the raw value, using logaddexp for stability.
No results yet
Run your code to check it against the examples, or submit to run every test.