mlx-bun library API
Documentation
Preparing search index...
@mlx-bun/inference
@mlx-bun/inference/layers
TrellisFusedMLP
Class TrellisFusedMLP
Fused gate/up/SwiGLU followed by the literal down projection.
Index
Constructors
constructor
Properties
down
gate
up
Methods
dispose
forward
Constructors
constructor
new
TrellisFusedMLP
(
gate
:
TrellisLinear
,
up
:
TrellisLinear
,
down
:
RowProjection
,
state
?:
LoraState
,
)
:
TrellisFusedMLP
Parameters
gate
:
TrellisLinear
up
:
TrellisLinear
down
:
RowProjection
Optional
state
:
LoraState
Returns
TrellisFusedMLP
Properties
Readonly
down
down
:
RowProjection
Readonly
gate
gate
:
TrellisLinear
Readonly
up
up
:
TrellisLinear
Methods
dispose
dispose
()
:
void
Returns
void
forward
forward
(
x
:
MlxArray
)
:
MlxArray
Parameters
x
:
MlxArray
Returns
MlxArray
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
down
gate
up
Methods
dispose
forward
Documentation
mlx-bun library API
Loading...
Fused gate/up/SwiGLU followed by the literal down projection.