mlx-bun library API
Documentation
Preparing search index...
@mlx-bun/inference
@mlx-bun/inference/contracts
Glm52WeightSource
Interface Glm52WeightSource
Structural seam used by tiny fixtures as well as ColibriGlm52Weights.
interface
Glm52WeightSource
{
weightsBytes
:
number
;
dequantized
(
name
:
string
,
outputRows
:
number
,
inputColumns
:
number
,
)
:
MlxArray
;
dispose
()
:
void
;
embedding
(
ids
:
MlxArray
,
name
:
string
,
vocabSize
:
number
,
hiddenSize
:
number
,
)
:
MlxArray
;
has
(
name
:
string
)
:
boolean
;
linear
(
x
:
MlxArray
,
name
:
string
,
outputRows
:
number
,
inputColumns
:
number
,
)
:
MlxArray
;
tensor
(
name
:
string
)
:
MlxArray
;
}
Hierarchy (
View Summary
)
Glm52MlaWeightSource
Glm52WeightSource
Implemented by
ColibriGlm52ResidentWeights
Index
Properties
weights
Bytes
Methods
dequantized
dispose
embedding
has
linear
tensor
Properties
Readonly
weights
Bytes
weightsBytes
:
number
Methods
dequantized
dequantized
(
name
:
string
,
outputRows
:
number
,
inputColumns
:
number
)
:
MlxArray
Parameters
name
:
string
outputRows
:
number
inputColumns
:
number
Returns
MlxArray
dispose
dispose
()
:
void
Returns
void
embedding
embedding
(
ids
:
MlxArray
,
name
:
string
,
vocabSize
:
number
,
hiddenSize
:
number
,
)
:
MlxArray
Parameters
ids
:
MlxArray
name
:
string
vocabSize
:
number
hiddenSize
:
number
Returns
MlxArray
has
has
(
name
:
string
)
:
boolean
Parameters
name
:
string
Returns
boolean
linear
linear
(
x
:
MlxArray
,
name
:
string
,
outputRows
:
number
,
inputColumns
:
number
,
)
:
MlxArray
Parameters
x
:
MlxArray
name
:
string
outputRows
:
number
inputColumns
:
number
Returns
MlxArray
tensor
tensor
(
name
:
string
)
:
MlxArray
Parameters
name
:
string
Returns
MlxArray
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
weights
Bytes
Methods
dequantized
dispose
embedding
has
linear
tensor
Documentation
mlx-bun library API
Loading...
Structural seam used by tiny fixtures as well as ColibriGlm52Weights.