mlx-bun library API
Documentation
Preparing search index...
@mlx-bun/inference
@mlx-bun/inference/models/glm52
Glm52DecoderLayer
Class Glm52DecoderLayer
Index
Constructors
constructor
Properties
config
dense
Benchmark
Prefill
Tokens
dsa
input
Norm
layer
mla
mlp
post
Attention
Norm
weights
Methods
forward
forward
Async
Constructors
constructor
new
Glm52DecoderLayer
(
config
:
Glm52Config
,
weights
:
Glm52WeightSource
,
layer
:
number
,
hasDsa
:
boolean
,
expertBackend
?:
Glm52ExpertExecutionBackend
|
null
,
pilot
?:
Glm52PilotTracker
|
null
,
denseBenchmarkPrefillTokens
?:
number
,
)
:
Glm52DecoderLayer
Parameters
config
:
Glm52Config
weights
:
Glm52WeightSource
layer
:
number
hasDsa
:
boolean
expertBackend
:
Glm52ExpertExecutionBackend
|
null
= null
pilot
:
Glm52PilotTracker
|
null
= null
denseBenchmarkPrefillTokens
:
number
= 0
Returns
Glm52DecoderLayer
Properties
Readonly
config
config
:
Glm52Config
Readonly
dense
Benchmark
Prefill
Tokens
denseBenchmarkPrefillTokens
:
number
= 0
Readonly
dsa
dsa
:
Glm52DsaIndexer
|
null
Readonly
input
Norm
inputNorm
:
MlxArray
Readonly
layer
layer
:
number
Readonly
mla
mla
:
Glm52Mla
Readonly
mlp
mlp
:
Glm52Mlp
Readonly
post
Attention
Norm
postAttentionNorm
:
MlxArray
Readonly
weights
weights
:
Glm52WeightSource
Methods
forward
forward
(
input
:
MlxArray
,
cache
:
LatentAttentionCache
,
dsaState
:
Glm52DsaSelectionState
|
null
,
reads
:
Glm52PhaseReads
,
)
:
MlxArray
Parameters
input
:
MlxArray
cache
:
LatentAttentionCache
dsaState
:
Glm52DsaSelectionState
|
null
reads
:
Glm52PhaseReads
Returns
MlxArray
forward
Async
forwardAsync
(
input
:
MlxArray
,
cache
:
LatentAttentionCache
,
dsaState
:
Glm52DsaSelectionState
|
null
,
reads
:
Glm52PhaseReads
,
)
:
Promise
<
MlxArray
>
Parameters
input
:
MlxArray
cache
:
LatentAttentionCache
dsaState
:
Glm52DsaSelectionState
|
null
reads
:
Glm52PhaseReads
Returns
Promise
<
MlxArray
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
config
dense
Benchmark
Prefill
Tokens
dsa
input
Norm
layer
mla
mlp
post
Attention
Norm
weights
Methods
forward
forward
Async
Documentation
mlx-bun library API
Loading...