mlx-bun library API
Documentation
Preparing search index...
@mlx-bun/inference
@mlx-bun/inference/models/gemma4/graphs
UnsortedSwitchGLU
Class UnsortedSwitchGLU
Unsorted expert gather. The graph binds this below the reference threshold.
Index
Constructors
constructor
Properties
activation
base
Methods
forward
Constructors
constructor
new
UnsortedSwitchGLU
(
base
:
SwitchGLU
,
activation
:
{
forward
(
gate
:
MlxArray
,
up
:
MlxArray
)
:
MlxArray
}
,
)
:
UnsortedSwitchGLU
Parameters
base
:
SwitchGLU
activation
:
{
forward
(
gate
:
MlxArray
,
up
:
MlxArray
)
:
MlxArray
}
Returns
UnsortedSwitchGLU
Properties
Readonly
activation
activation
:
{
forward
(
gate
:
MlxArray
,
up
:
MlxArray
)
:
MlxArray
}
Readonly
base
base
:
SwitchGLU
Methods
forward
forward
(
x
:
MlxArray
,
indices
:
MlxArray
)
:
MlxArray
Parameters
x
:
MlxArray
indices
:
MlxArray
Returns
MlxArray
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
activation
base
Methods
forward
Documentation
mlx-bun library API
Loading...
Unsorted expert gather. The graph binds this below the reference threshold.