Skip to main content

PlaceInstanceParams

model_idModel Id (string)required
shardingSharding (string)

Possible values: [Tensor, Pipeline]

Default value: Pipeline
instance_metaInstanceMeta (string)

Possible values: [MlxRing, MlxJaccl, LlamaRpc]

Default value: MlxRing
min_nodesMin Nodes (integer)
Default value: 1
excluded_nodesstring[]

Optional. Node IDs the master should treat as if absent when scoring candidate cycles for this placement. Empty list = consider all nodes. Already-running instances on the listed nodes are not affected — exclusion is per-placement, not cluster-wide.

context_tokens object

Optional context window for this placement, in tokens. The placer honors it up to the largest window the chosen nodes hold (max_context_tokens in the placement preview) and refuses a larger request with 400. When omitted, llama-server, in-process llama.cpp and vLLM placements take the fleet default (inference.served_context_tokens, 32768 unless changed) because they reserve the whole window's memory at load; MLX keeps the full memory fit.

anyOf
integer

Possible values: >= 256 and <= 1048576

engine_order object

Optional. Engines to try for this launch only: backend tags, most preferred first, such as llama_server-vulkan. They are consulted ahead of the model's person-set engine order and the card's default, and set no standing order. A launch that cannot run on any listed engine starts on the next engine in line, and the response's engine_pick says so.

anyOf
  • Array [
  • string
  • ]
  • PlaceInstanceParams
    {
    "excluded_nodes": [],
    "instance_meta": "MlxRing",
    "min_nodes": 1,
    "model_id": "mlx-community/Llama-3.2-1B-Instruct-4bit",
    "sharding": "Pipeline"
    }