Skip to content

1.3.7

Choose a tag to compare

@github-actions github-actions released this 12 Nov 12:08
de3d242

Context & sessions now understands the hardware it plans for: several GPUs, mixture-of-experts models split between GPU and system memory, and each model's own defaults. The benchmark can also run on a chosen node.

Upgrade both ends. Planning another node's models, and the new expert split, need PAIR Plus 1.3.7 on this machine and on the node you plan. A node on 1.3.1 still answers, but it ignores the new expert-split setting. Remote planning, pausing and benchmarking also need that node's firewall to let this machine reach its engine ports (11434, 1234, 8080) as well as 14318–14323.

1.3.7 — Split a mixture-of-experts model between GPU and system memory (#17)

  • Context & sessions… for a mixture-of-experts model now has an Expert layers kept on the GPU slider instead of an all-or-nothing switch. The GPU memory and system memory bars follow it, sized from each layer's exact expert weights in the model's tensor table (layers differ in mixed quantizations; dense leading layers have none).
  • The dialog shows total against active parameters ("284B total · 13.8B active per token") and explains that every expert must stay loaded while each token runs only a few. Experts in system memory run on the CPU and make each token slower; the dialog says so without inventing numbers.
  • llama.cpp plans are applied as --n-cpu-moe N. For LM Studio, whose REST load has no expert placement setting, applying tells you the value for Number of layers for which to force MoE weights onto CPU. Ollama and Apple silicon explain why no split is offered.
  • On a node with several GPUs, the model is split across them by what each layer keeps on the GPU, its context included. GPU 0 holds the first layers, whose experts move to system memory first, so it takes more layers and both GPUs fill evenly (for example 10,6 instead of 8,8, fitting 3 sessions instead of 2).
  • Breaking for capacity/plan and capacity/planner-set callers: the offloadExperts boolean is now cpuExpertLayers (llama.cpp's N; a value at or past the model's layer count means all of them). spec adds expertUsedCount, expertLayerBytes, totalParams and activeParams. Saved plans with offloadExperts: true load as every layer.

1.3.6 — Plan nodes with several GPUs per GPU (#18)

  • Context & sessions… on a node with more than one GPU now sizes each GPU separately. The model is split by whole layers in proportion to each GPU's memory after its own reserve, so mismatched GPUs split by ratio. Each layer's part of the context stays on its GPU, so a session fits only when its part fits on every GPU.
  • The dialog shows a bar per GPU (for example GPU 0 · RTX 4090) next to the total, turns a GPU red when it runs out even if the total still has room, and says how the layers are split. For Ollama it shows the model kept on one GPU until you plan more sessions than that GPU holds.
  • Applying a multi-GPU plan also writes --split-mode layer --tensor-split (layers per GPU) for llama.cpp, and OLLAMA_SCHED_SPREAD=1 for Ollama when the sessions need more than one GPU. The dialog lists what will be set.
  • capacity/plan adds gpus[], tensorSplit, oneGpuIndex and oneGpuSessions. spec now includes layers in the desktop's parsing.

1.3.5 — Context & sessions starts from the model's and engine's own defaults (#16)

  • A model with no saved plan opens Context & sessions… on what is in force for it: the window, session count and reply length its engine runs it with now (the loaded model or the engine's launch settings), or the model's own defaults, instead of generic values.
  • A small marker beside each slider says where its value came from (engine now, engine settings, model default, model maximum) while the slider still sits there. Nothing reported keeps the old starting point.
  • Works for another node's model too: that node reads its own engine.
  • capacity/plan returns the new spec.defaults (window, sessions, reply, each {value, source}).

1.3.4 — Sliders for the planner's model size and context cost, with exact size labels (#19)

  • Context & sessions… has two new sliders, Model weights in memory and Context cache per token. They snap to round values, have an exact field beside them, and are always shown. Both start at what the model reports, and moving one overrides it for the plan. Use the model's resets it. They replace the two text fields that only appeared when a value was unknown.
  • The dialog says what the size means. The plan counts the memory the weights take once loaded, not the download. It shows the download size and where it was read (Ollama's or LM Studio's model list, or the GGUF files). It shows the in-memory size (the weight tensors added up) and, for a model Ollama has loaded, what that copy takes now (weights, context cache and buffers together). It also says which size the plan uses. For MLX and safetensors models the download size is used as an estimate, and the dialog says so.
  • The per-token figure says where it came from (the architecture at f16, a measured loaded copy, or your value) and what the plan counts at the chosen cache precision.
  • capacity/plan adds spec.downloadBytes, downloadSource, tensorBytes, weightsSource, loadedBytes, loadedVramBytes and loadedContextTokens, plus the result's weightsSource and kvSource. An override no longer changes spec.source.

1.3.3 — Sessions at once no longer stops at 8 for models PAIR cannot size (#20)

  • In Context & sessions…, a model whose size or context cost PAIR does not know no longer gets a Sessions at once slider that stops at 8. The slider appears once the model can be sized (enter its context cost, or load it so PAIR can measure it), and then reaches past what fits, in red, as before.
  • PAIR now reads LM Studio models from the folder LM Studio's settings name (downloadsFolder in ~/.lmstudio/settings.json), not only ~/.lmstudio/models, so models kept on another drive are sized without entering their cost by hand.

1.3.2 — Run the benchmark on a chosen node (#15)

  • Run benchmark runs on the node you choose, this one or any other in the cluster. The model list shows each model on each node that has it, and Benchmark on a node card's model row runs on that node. Every step runs on that node, or fails if the node can't serve the model.
  • Context & sessions… for another node's model says why it can't plan that node: the PAIR version and firewall ports it needs. It also offers Try again, instead of leaving the menu item out.
  • POST /pair/v1/performance/benchmark and performance/benchmark take an optional nodeId, and a run reports it.