mlx-bun library API
Documentation
Preparing search index...
@mlx-bun/inference
@mlx-bun/inference/state
Module @mlx-bun/inference/state
Classes
BatchedKVCache
BatchedQuantizedKVCache
BatchedRotatingCache
BatchedRotatingQuantCache
BatchedSSMCache
BatchedTurboQuantKVCache
Bf16FirstKv4Head256Cache
Bf16FirstQuantizedKVCache
Bf16FirstRotatingQuantizedKVCache
Bf16FirstTurboQuantKVCache
ContinuationPersistence
CostSizeRetention
DelayedQuantizedKVCache
DelayedRotatingQuantizedKVCache
DelayedTurboQuantKVCache
DSAIndexCache
EncoderCache
KVCache
KvCacheService
LruRetention
MLACache
MlxStateRows
PromptCache
QuantizedKVCache
RotatingKVCache
RotatingQuantizedKVCache
SpeculativeRotatingKVCache
SpillQueue
SsdCacheStore
SsdDurabilityCoordinator
SSMCache
TieredPromptCache
TurboQuantCodec
TurboQuantKVCache
Interfaces
AcquiredState
AffineKernels
CacheCodec
CacheCodecProvider
CacheHeaderEntry
CacheServiceGraph
CloneContext
ColdTier
ContinuationAttempt
ContinuationRequest
ContinuationState
DSAIndexGeometry
DurabilityFlushResult
DurabilityPromptCache
DurabilitySnapshotStats
KvCacheParts
KvCacheReport
KvCacheServiceOptions
KvCacheSettings
KvFileHeader
KvLoadExpect
KvSaveMeta
LoadContext
LoadedKvCache
MLACacheGeometry
MLACompressedState
MlxRowLayout
PromptCacheEntry
PublishedState
RequestStateCache
RetentionCandidate
RetentionPolicy
RowSpeculativeState
SavedStateBudget
SavedStateOptions
SnapshotContext
SpillItem
SpillSink
SsdIndexEntry
SsdStoreOptions
SsmSpecRound
StateRequest
TensorSlot
TurboQuantKernels
TurboQuantTensor
Type Aliases
AffineKernelSet
CacheKind
ContinuationStore
MlxPrefixCache
Variables
deferredTurboQuantKernels
denseTurboQuantKernels
legacyCacheCodecs
unchangedKv
uncomposedTurboQuantKernels
Functions
activeQuantViews
attachmentBytes
batchRowKvBytes
bindCacheRollback
bindRowCacheRollback
bindRowStepRollback
buildBatchedRotatingMask
cacheBytes
cacheHeaderMinimumReusableOffset
cacheHeadersMinimumReusableOffset
cacheHeadersTrimmable
captureCacheAttachment
cloneAttachments
cloneKvCaches
cloneSingleRowState
commonPrefixLength
completeConversion
composeAtLayer
composedAffineKernels
composedFullAttentionCache
composedSlidingAttentionCache
concatDecodeSlot
convertToAffine
convertToTurboQuant
createCacheCodecProvider
createKvCacheService
createKvMaintenance
disposeAttachments
disposeTurboQuant
kv4Head256KernelSet
leaseCacheState
leaseCacheStates
loadKvCache
loadKvCacheAsync
materializeCheckpoint
minimumReusableOffset
quantConcatDecodeSlot
readKvHeader
restoreCacheAttachment
rollbackVerifyBlock
rollsBackVerifyBlock
rotatingWindowMask
saveKvCache
saveKvCacheAsync
tiledAffineKernels
tiledCausalAffineKernels
transitionDue
turboQuantDecodeSlot
turboQuantFusedDecode
unfusedAffineKernels
References
cacheLayerKind
→
cacheLayerKind
CacheLayerKind
→
CacheLayerKind
CheckpointAttachment
→
CheckpointAttachment
FUSED_SDPA_HEAD_DIMS
→
FUSED_SDPA_HEAD_DIMS
kvBytesAt
→
kvBytesAt
kvGeometry
→
kvGeometry
KvGeometry
→
KvGeometry
KvMaintenance
→
KvMaintenance
kvQuantBytesPerElement
→
kvQuantBytesPerElement
KvQuantOverride
→
KvQuantOverride
KvScheme
→
KvScheme
KvSchemeKind
→
KvSchemeKind
kvSchemeOf
→
kvSchemeOf
KvSchemeOptions
→
KvSchemeOptions
resolveKvScheme
→
resolveKvScheme
sdpaFallbackBytes
→
sdpaFallbackBytes
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Classes
Batched
KV
Cache
Batched
Quantized
KV
Cache
Batched
Rotating
Cache
Batched
Rotating
Quant
Cache
Batched
SSM
Cache
Batched
Turbo
Quant
KV
Cache
Bf16
First
Kv4
Head256
Cache
Bf16
First
Quantized
KV
Cache
Bf16
First
Rotating
Quantized
KV
Cache
Bf16
First
Turbo
Quant
KV
Cache
Continuation
Persistence
Cost
Size
Retention
Delayed
Quantized
KV
Cache
Delayed
Rotating
Quantized
KV
Cache
Delayed
Turbo
Quant
KV
Cache
DSA
Index
Cache
Encoder
Cache
KV
Cache
Kv
Cache
Service
Lru
Retention
MLA
Cache
Mlx
State
Rows
Prompt
Cache
Quantized
KV
Cache
Rotating
KV
Cache
Rotating
Quantized
KV
Cache
Speculative
Rotating
KV
Cache
Spill
Queue
Ssd
Cache
Store
Ssd
Durability
Coordinator
SSM
Cache
Tiered
Prompt
Cache
Turbo
Quant
Codec
Turbo
Quant
KV
Cache
Interfaces
Acquired
State
Affine
Kernels
Cache
Codec
Cache
Codec
Provider
Cache
Header
Entry
Cache
Service
Graph
Clone
Context
Cold
Tier
Continuation
Attempt
Continuation
Request
Continuation
State
DSA
Index
Geometry
Durability
Flush
Result
Durability
Prompt
Cache
Durability
Snapshot
Stats
Kv
Cache
Parts
Kv
Cache
Report
Kv
Cache
Service
Options
Kv
Cache
Settings
Kv
File
Header
Kv
Load
Expect
Kv
Save
Meta
Load
Context
Loaded
Kv
Cache
MLA
Cache
Geometry
MLA
Compressed
State
Mlx
Row
Layout
Prompt
Cache
Entry
Published
State
Request
State
Cache
Retention
Candidate
Retention
Policy
Row
Speculative
State
Saved
State
Budget
Saved
State
Options
Snapshot
Context
Spill
Item
Spill
Sink
Ssd
Index
Entry
Ssd
Store
Options
Ssm
Spec
Round
State
Request
Tensor
Slot
Turbo
Quant
Kernels
Turbo
Quant
Tensor
Type Aliases
Affine
Kernel
Set
Cache
Kind
Continuation
Store
Mlx
Prefix
Cache
Variables
deferred
Turbo
Quant
Kernels
dense
Turbo
Quant
Kernels
legacy
Cache
Codecs
unchanged
Kv
uncomposed
Turbo
Quant
Kernels
Functions
active
Quant
Views
attachment
Bytes
batch
Row
Kv
Bytes
bind
Cache
Rollback
bind
Row
Cache
Rollback
bind
Row
Step
Rollback
build
Batched
Rotating
Mask
cache
Bytes
cache
Header
Minimum
Reusable
Offset
cache
Headers
Minimum
Reusable
Offset
cache
Headers
Trimmable
capture
Cache
Attachment
clone
Attachments
clone
Kv
Caches
clone
Single
Row
State
common
Prefix
Length
complete
Conversion
compose
At
Layer
composed
Affine
Kernels
composed
Full
Attention
Cache
composed
Sliding
Attention
Cache
concat
Decode
Slot
convert
To
Affine
convert
To
Turbo
Quant
create
Cache
Codec
Provider
create
Kv
Cache
Service
create
Kv
Maintenance
dispose
Attachments
dispose
Turbo
Quant
kv4
Head256
Kernel
Set
lease
Cache
State
lease
Cache
States
load
Kv
Cache
load
Kv
Cache
Async
materialize
Checkpoint
minimum
Reusable
Offset
quant
Concat
Decode
Slot
read
Kv
Header
restore
Cache
Attachment
rollback
Verify
Block
rolls
Back
Verify
Block
rotating
Window
Mask
save
Kv
Cache
save
Kv
Cache
Async
tiled
Affine
Kernels
tiled
Causal
Affine
Kernels
transition
Due
turbo
Quant
Decode
Slot
turbo
Quant
Fused
Decode
unfused
Affine
Kernels
References
cache
Layer
Kind
Cache
Layer
Kind
Checkpoint
Attachment
FUSED_
SDPA_
HEAD_
DIMS
kv
Bytes
At
kv
Geometry
Kv
Geometry
Kv
Maintenance
kv
Quant
Bytes
Per
Element
Kv
Quant
Override
Kv
Scheme
Kv
Scheme
Kind
kv
Scheme
Of
Kv
Scheme
Options
resolve
Kv
Scheme
sdpa
Fallback
Bytes
Documentation
mlx-bun library API
Loading...