mlx-bun library API
Documentation
Preparing search index...
@mlx-bun/inference
@mlx-bun/inference/models/gemma4/graphs
FixedExperts
Class FixedExperts
The explicit expert operation, with top-k weighted sum in reference order.
Index
Constructors
constructor
Properties
switch
Glu
Methods
forward
Constructors
constructor
new
FixedExperts
(
switchGlu
:
{
forward
(
x
:
MlxArray
,
indices
:
MlxArray
)
:
MlxArray
}
,
)
:
FixedExperts
Parameters
switchGlu
:
{
forward
(
x
:
MlxArray
,
indices
:
MlxArray
)
:
MlxArray
}
Returns
FixedExperts
Properties
Readonly
switch
Glu
switchGlu
:
{
forward
(
x
:
MlxArray
,
indices
:
MlxArray
)
:
MlxArray
}
Methods
forward
forward
(
x
:
MlxArray
,
indices
:
MlxArray
,
weights
:
MlxArray
)
:
MlxArray
Parameters
x
:
MlxArray
indices
:
MlxArray
weights
:
MlxArray
Returns
MlxArray
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
switch
Glu
Methods
forward
Documentation
mlx-bun library API
Loading...
The explicit expert operation, with top-k weighted sum in reference order.