mlx-bun library API
Documentation
Preparing search index...
@mlx-bun/inference
@mlx-bun/inference/models
bindGraphCaches
Function bindGraphCaches
bindGraphCaches
<
Graph
extends
{
cacheLayers
:
readonly
MlxCacheLayer
[]
;
cachePaging
?:
boolean
}
,
>
(
graph
:
Graph
,
composition
:
{
kv
:
KvStorageScheme
;
pagedKv
:
{
blockSize
:
number
;
direct
?:
boolean
}
|
null
;
}
,
)
:
Graph
&
{
stateCodecs
?:
CacheCodecProvider
;
makeCache
()
:
Cache
[]
}
Bind request-state construction at load; the graph only declares layout.
Type Parameters
Graph
extends
{
cacheLayers
:
readonly
MlxCacheLayer
[]
;
cachePaging
?:
boolean
}
Parameters
graph
:
Graph
composition
:
{
kv
:
KvStorageScheme
;
pagedKv
:
{
blockSize
:
number
;
direct
?:
boolean
}
|
null
}
Returns
Graph
&
{
stateCodecs
?:
CacheCodecProvider
;
makeCache
()
:
Cache
[]
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Documentation
mlx-bun library API
Loading...
Bind request-state construction at load; the graph only declares layout.