Skip to main content

EngineMemorySettings

Actual cache configuration, independent of stored weight quantization.

Non-MLX runners currently use fixed two-byte attention elements. MLX controls are resolved from the same inherited environment used by the child runner. Bit widths describe quantizer precision; they do not imply packed storage.

cacheBackendCachebackend (string)

Effective cache implementation, after runner fallback for unknown selectors.

Possible values: [default, mlx_quantized, turboquant, turboquant_adaptive, optiq]

Default value: default
keyBitsKeybits (integer)

Key quantizer precision; default cache stores full precision.

Possible values: >= 1 and <= 16

Default value: 16
valueBitsValuebits (integer)

Value quantizer precision, independent of stored model weights.

Possible values: >= 1 and <= 16

Default value: 16
groupSizeGroupsize (integer)

Elements per group for MLX affine cache scales and biases.

Possible values: > 0

Default value: 64
fp16EdgeLayersFp16Edgelayers (integer)

Number of full-precision attention layers retained at each edge.

Possible values: >= 0

Default value: 0
configurationError object

Invalid active cache controls; the engine must not allocate with this policy. Other node engines remain usable.

anyOf
string

Possible values: <= 1000 characters

vllmMaxConcurrentRequestsVllmmaxconcurrentrequests (integer)

Effective vLLM sequence/admission limit, used for native MTP workspace sizing; ignored by other engines.

Possible values: >= 1

Default value: 32
packageOverheadBytes object

Memory an engine package's signed manifest adds to a model's weight bytes for admission; absent for built-in engines, so their settings read and serialize as before.

anyOf
integer

Possible values: >= 0 and <= 68719476736

EngineMemorySettings
{
"cacheBackend": "default",
"keyBits": 16,
"valueBits": 16,
"groupSize": 64,
"fp16EdgeLayers": 0,
"configurationError": "string",
"vllmMaxConcurrentRequests": 32,
"packageOverheadBytes": 0
}