MCPcopy Create free account
hub / github.com/lingeringlight/START / allocate_inference_cache

Method allocate_inference_cache

models/mamba_simple.py:392–393  ·  view source on GitHub ↗
(self, batch_size, max_seqlen, dtype=None, **kwargs)

Source from the content-addressed store, hash-verified

390 return hidden_states, residual
391
392 def allocate_inference_cache(self, batch_size, max_seqlen, dtype=None, **kwargs):
393 return self.mixer.allocate_inference_cache(batch_size, max_seqlen, dtype=dtype, **kwargs)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected