mlx-bun library API
Documentation
Preparing search index...
@mlx-bun/inference
@mlx-bun/inference/models/qwen/blocks
QwenResidualDeltaLayer
Class QwenResidualDeltaLayer
A residual/normalization kernel between the recurrent mixer and its MLP.
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
QwenResidualDeltaLayer
(
...
args
:
[
weights
:
Weights
,
config
:
ModelConfig
,
prefix
:
string
,
mixer
:
{
forward
(
x
:
MlxArray
,
cache
:
GatedDeltaCache
,
phase
:
ReadPhase
,
)
:
MlxArray
;
}
,
mlp
:
{
forward
(
x
:
MlxArray
)
:
MlxArray
}
,
]
,
)
:
QwenResidualDeltaLayer
Parameters
...
args
:
[
weights
:
Weights
,
config
:
ModelConfig
,
prefix
:
string
,
mixer
:
{
forward
(
x
:
MlxArray
,
cache
:
GatedDeltaCache
,
phase
:
ReadPhase
,
)
:
MlxArray
;
}
,
mlp
:
{
forward
(
x
:
MlxArray
)
:
MlxArray
}
,
]
Returns
QwenResidualDeltaLayer
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 residual/normalization kernel between the recurrent mixer and its MLP.