mlx-bun library API
Documentation
Preparing search index...
@mlx-bun/inference
@mlx-bun/inference/models/qwen/blocks
QwenDeltaLayer
Class QwenDeltaLayer
A recurrent decoder layer whose mixer and MLP are named by its graph.
Hierarchy (
View Summary
)
QwenDeltaLayer
QwenResidualDeltaLayer
Index
Constructors
constructor
Properties
input
Norm
mixer
mlp
post
Attn
Norm
Methods
forward
forward
Attn
forward
Mlp
Constructors
constructor
new
QwenDeltaLayer
(
weights
:
Weights
,
config
:
ModelConfig
,
prefix
:
string
,
mixer
:
{
forward
(
x
:
MlxArray
,
cache
:
GatedDeltaCache
,
phase
:
ReadPhase
,
)
:
MlxArray
;
}
,
mlp
:
{
forward
(
x
:
MlxArray
)
:
MlxArray
}
,
)
:
QwenDeltaLayer
Parameters
weights
:
Weights
config
:
ModelConfig
prefix
:
string
mixer
:
{
forward
(
x
:
MlxArray
,
cache
:
GatedDeltaCache
,
phase
:
ReadPhase
)
:
MlxArray
}
mlp
:
{
forward
(
x
:
MlxArray
)
:
MlxArray
}
Returns
QwenDeltaLayer
Properties
Readonly
input
Norm
inputNorm
:
RMSNorm
Readonly
mixer
mixer
:
{
forward
(
x
:
MlxArray
,
cache
:
GatedDeltaCache
,
phase
:
ReadPhase
)
:
MlxArray
;
}
Readonly
mlp
mlp
:
{
forward
(
x
:
MlxArray
)
:
MlxArray
}
Readonly
post
Attn
Norm
postAttnNorm
:
RMSNorm
Methods
forward
forward
(
x
:
MlxArray
,
cache
:
Cache
,
phase
:
ReadPhase
)
:
MlxArray
Parameters
x
:
MlxArray
cache
:
Cache
phase
:
ReadPhase
Returns
MlxArray
forward
Attn
forwardAttn
(
x
:
MlxArray
,
cache
:
Cache
,
phase
:
ReadPhase
)
:
MlxArray
Parameters
x
:
MlxArray
cache
:
Cache
phase
:
ReadPhase
Returns
MlxArray
forward
Mlp
forwardMlp
(
x
:
MlxArray
)
:
MlxArray
Parameters
x
:
MlxArray
Returns
MlxArray
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
input
Norm
mixer
mlp
post
Attn
Norm
Methods
forward
forward
Attn
forward
Mlp
Documentation
mlx-bun library API
Loading...
A recurrent decoder layer whose mixer and MLP are named by its graph.