mlx-bun library API
Documentation
Preparing search index...
@mlx-bun/inference
@mlx-bun/inference/models/qwen/written-layers
DeltaWeights
Class DeltaWeights
Index
Constructors
constructor
Properties
in
Proj
A
in
Proj
B
in
Proj
Qkv
in
Proj
Z
out
Proj
prefix
trellis
Methods
ane
ane
Projections
ane
Stage
bind
fused
prompt
stage
targets
with
Bound
Projections
with
Mlp
with
Projections
Constructors
constructor
new
DeltaWeights
(
weights
:
Weights
,
config
:
ModelConfig
,
prefix
:
string
,
representations
:
TrellisRepresentations
,
state
:
LoraState
,
)
:
DeltaWeights
Parameters
weights
:
Weights
config
:
ModelConfig
prefix
:
string
representations
:
TrellisRepresentations
state
:
LoraState
Returns
DeltaWeights
Properties
Readonly
in
Proj
A
inProjA
:
QuantizedLinear
Readonly
in
Proj
B
inProjB
:
QuantizedLinear
Readonly
in
Proj
Qkv
inProjQkv
:
QuantizedLinear
Readonly
in
Proj
Z
inProjZ
:
QuantizedLinear
Readonly
out
Proj
outProj
:
QuantizedLinear
Readonly
prefix
prefix
:
string
Readonly
trellis
trellis
:
TrellisWeights
Methods
ane
ane
(
weights
:
Weights
,
config
:
ModelConfig
,
Plain
:
AffineProjectionClass
,
Split
:
typeof
AneAffineSplit
,
fraction
:
number
,
rows
:
number
,
shares
:
AneWeightShares
,
qkScale
:
{
k
:
MlxArray
;
q
:
MlxArray
}
,
)
:
QwenGatedDeltaNet
<
RowProjection
>
Parameters
weights
:
Weights
config
:
ModelConfig
Plain
:
AffineProjectionClass
Split
:
typeof
AneAffineSplit
fraction
:
number
rows
:
number
shares
:
AneWeightShares
qkScale
:
{
k
:
MlxArray
;
q
:
MlxArray
}
Returns
QwenGatedDeltaNet
<
RowProjection
>
ane
Projections
aneProjections
(
weights
:
Weights
,
config
:
ModelConfig
,
Layer
:
typeof
QwenDeltaLayer
,
mlp
:
RowProjection
,
Split
:
typeof
AneAffineSplit
,
Dense
:
AffineProjectionClass
,
Plain
:
AffineProjectionClass
,
rows
:
number
,
shares
:
AneWeightShares
,
qkScale
:
{
k
:
MlxArray
;
q
:
MlxArray
}
,
)
:
QwenDeltaLayer
Parameters
weights
:
Weights
config
:
ModelConfig
Layer
:
typeof
QwenDeltaLayer
mlp
:
RowProjection
Split
:
typeof
AneAffineSplit
Dense
:
AffineProjectionClass
Plain
:
AffineProjectionClass
rows
:
number
shares
:
AneWeightShares
qkScale
:
{
k
:
MlxArray
;
q
:
MlxArray
}
Returns
QwenDeltaLayer
ane
Stage
aneStage
(
weights
:
Weights
,
config
:
ModelConfig
,
Layer
:
typeof
QwenDeltaLayer
,
Mlp
:
typeof
AneBoundMlp
,
Split
:
AneMlpClass
,
Affine
:
typeof
AneAffineSplit
,
Plain
:
AffineProjectionClass
,
fraction
:
number
,
rows
:
number
,
shares
:
AneWeightShares
,
qkScale
:
{
k
:
MlxArray
;
q
:
MlxArray
}
,
)
:
QwenDeltaLayer
Parameters
weights
:
Weights
config
:
ModelConfig
Layer
:
typeof
QwenDeltaLayer
Mlp
:
typeof
AneBoundMlp
Split
:
AneMlpClass
Affine
:
typeof
AneAffineSplit
Plain
:
AffineProjectionClass
fraction
:
number
rows
:
number
shares
:
AneWeightShares
qkScale
:
{
k
:
MlxArray
;
q
:
MlxArray
}
Returns
QwenDeltaLayer
bind
bind
(
weights
:
Weights
,
config
:
ModelConfig
,
Qkv
:
AffineProjectionClass
,
Z
:
AffineProjectionClass
,
A
:
AffineProjectionClass
,
B
:
AffineProjectionClass
,
Out
:
AffineProjectionClass
,
qkScale
:
{
k
:
MlxArray
;
q
:
MlxArray
}
,
Block
?:
typeof
QwenGatedDeltaNet
,
)
:
QwenGatedDeltaNet
<
RowProjection
>
Parameters
weights
:
Weights
config
:
ModelConfig
Qkv
:
AffineProjectionClass
Z
:
AffineProjectionClass
A
:
AffineProjectionClass
B
:
AffineProjectionClass
Out
:
AffineProjectionClass
qkScale
:
{
k
:
MlxArray
;
q
:
MlxArray
}
Block
:
typeof
QwenGatedDeltaNet
= QwenGatedDeltaNet
Returns
QwenGatedDeltaNet
<
RowProjection
>
fused
fused
(
weights
:
Weights
,
config
:
ModelConfig
,
Layer
:
typeof
QwenDeltaLayer
,
Mlp
:
FusedClass
,
Down
:
TrellisProjectionClass
,
Plain
:
AffineProjectionClass
,
qkScale
:
{
k
:
MlxArray
;
q
:
MlxArray
}
,
)
:
QwenDeltaLayer
Parameters
weights
:
Weights
config
:
ModelConfig
Layer
:
typeof
QwenDeltaLayer
Mlp
:
FusedClass
Down
:
TrellisProjectionClass
Plain
:
AffineProjectionClass
qkScale
:
{
k
:
MlxArray
;
q
:
MlxArray
}
Returns
QwenDeltaLayer
prompt
prompt
(
weights
:
Weights
,
config
:
ModelConfig
,
Layer
:
typeof
QwenDeltaLayer
,
Mlp
:
UnfusedClass
,
Gate
:
TrellisProjectionClass
,
Down
:
TrellisProjectionClass
,
Plain
:
AffineProjectionClass
,
qkScale
:
{
k
:
MlxArray
;
q
:
MlxArray
}
,
)
:
QwenDeltaLayer
Parameters
weights
:
Weights
config
:
ModelConfig
Layer
:
typeof
QwenDeltaLayer
Mlp
:
UnfusedClass
Gate
:
TrellisProjectionClass
Down
:
TrellisProjectionClass
Plain
:
AffineProjectionClass
qkScale
:
{
k
:
MlxArray
;
q
:
MlxArray
}
Returns
QwenDeltaLayer
stage
stage
(
weights
:
Weights
,
config
:
ModelConfig
,
Layer
:
typeof
QwenDeltaLayer
,
Mlp
:
GateDownClass
,
GateUp
:
GateUpClass
,
Gate
:
TrellisProjectionClass
,
Down
:
TrellisProjectionClass
,
Qkv
:
AffineProjectionClass
,
Z
:
AffineProjectionClass
,
A
:
AffineProjectionClass
,
B
:
AffineProjectionClass
,
Out
:
AffineProjectionClass
,
qkScale
:
{
k
:
MlxArray
;
q
:
MlxArray
}
,
Block
?:
typeof
QwenGatedDeltaNet
,
)
:
QwenDeltaLayer
Parameters
weights
:
Weights
config
:
ModelConfig
Layer
:
typeof
QwenDeltaLayer
Mlp
:
GateDownClass
GateUp
:
GateUpClass
Gate
:
TrellisProjectionClass
Down
:
TrellisProjectionClass
Qkv
:
AffineProjectionClass
Z
:
AffineProjectionClass
A
:
AffineProjectionClass
B
:
AffineProjectionClass
Out
:
AffineProjectionClass
qkScale
:
{
k
:
MlxArray
;
q
:
MlxArray
}
Block
:
typeof
QwenGatedDeltaNet
= QwenGatedDeltaNet
Returns
QwenDeltaLayer
targets
targets
()
:
readonly
(
readonly
[
string
,
QwenProjectionTarget
]
)
[]
Returns
readonly
(
readonly
[
string
,
QwenProjectionTarget
]
)
[]
with
Bound
Projections
withBoundProjections
(
weights
:
Weights
,
config
:
ModelConfig
,
Layer
:
typeof
QwenDeltaLayer
,
mlp
:
RowProjection
,
qkv
:
RowProjection
,
z
:
RowProjection
,
a
:
RowProjection
,
b
:
RowProjection
,
out
:
RowProjection
,
qkScale
:
{
k
:
MlxArray
;
q
:
MlxArray
}
,
)
:
QwenDeltaLayer
Parameters
weights
:
Weights
config
:
ModelConfig
Layer
:
typeof
QwenDeltaLayer
mlp
:
RowProjection
qkv
:
RowProjection
z
:
RowProjection
a
:
RowProjection
b
:
RowProjection
out
:
RowProjection
qkScale
:
{
k
:
MlxArray
;
q
:
MlxArray
}
Returns
QwenDeltaLayer
with
Mlp
withMlp
(
weights
:
Weights
,
config
:
ModelConfig
,
Layer
:
typeof
QwenDeltaLayer
,
mlp
:
RowProjection
,
Projection
:
AffineProjectionClass
,
qkScale
:
{
k
:
MlxArray
;
q
:
MlxArray
}
,
)
:
QwenDeltaLayer
Parameters
weights
:
Weights
config
:
ModelConfig
Layer
:
typeof
QwenDeltaLayer
mlp
:
RowProjection
Projection
:
AffineProjectionClass
qkScale
:
{
k
:
MlxArray
;
q
:
MlxArray
}
Returns
QwenDeltaLayer
with
Projections
withProjections
(
weights
:
Weights
,
config
:
ModelConfig
,
Layer
:
typeof
QwenDeltaLayer
,
mlp
:
RowProjection
,
Qkv
:
AffineProjectionClass
,
Z
:
AffineProjectionClass
,
A
:
AffineProjectionClass
,
B
:
AffineProjectionClass
,
Out
:
AffineProjectionClass
,
qkScale
:
{
k
:
MlxArray
;
q
:
MlxArray
}
,
)
:
QwenDeltaLayer
Parameters
weights
:
Weights
config
:
ModelConfig
Layer
:
typeof
QwenDeltaLayer
mlp
:
RowProjection
Qkv
:
AffineProjectionClass
Z
:
AffineProjectionClass
A
:
AffineProjectionClass
B
:
AffineProjectionClass
Out
:
AffineProjectionClass
qkScale
:
{
k
:
MlxArray
;
q
:
MlxArray
}
Returns
QwenDeltaLayer
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
in
Proj
A
in
Proj
B
in
Proj
Qkv
in
Proj
Z
out
Proj
prefix
trellis
Methods
ane
ane
Projections
ane
Stage
bind
fused
prompt
stage
targets
with
Bound
Projections
with
Mlp
with
Projections
Documentation
mlx-bun library API
Loading...