Local inference routing: choose the model before choosing the machine

A useful way to reason about local inference routing is to separate two decisions that are easy to conflate: which model should handle the request, and which machine should execute it.

NVIDIA’s PAIR illustrates the second decision. It sits behind compatible Ollama or LM Studio interfaces, examines the request’s engine and model requirements, and selects one eligible node on the local network. The request then runs on that node from start to finish. This is placement and capacity scheduling; it does not split one inference across several GPUs or decide that a different model is better for the task.

Model selection belongs closer to the application or model gateway. The application can choose a model based on its task contract—such as context needs, tool support, latency target, or quality/cost constraints—and send the request through the selected model’s endpoint. An OpenAI-compatible gateway can make that choice a stable adapter boundary for callers, but that does not make it a local node scheduler.

If you use both layers, make the boundary explicit:

  1. Define the request contract and select the model.
  2. Send the request to the endpoint that serves that model—local through a PAIR-compatible interface, or through your chosen gateway.
  3. Let local placement choose an eligible node only within the pool that can satisfy the already-fixed engine and model requirements.
  4. Record model choice and execution placement separately in logs and fallbacks.

This separation prevents a common operational mistake: treating “another machine is available” as evidence that “another model is appropriate.” A node router can relieve queueing among compatible local systems; it cannot by itself solve model capability, context-window, or policy requirements. Conversely, a model gateway can select a model without knowing whether a particular laptop is awake, has the model loaded, or is competing with a foreground workload.

The practical payoff is clearer failure handling. A placement failure means no eligible local node is ready; a model-selection failure means the request contract has no acceptable model. Those should trigger different responses—wait or restore eligible local capacity in the first case, revise the model policy or route through another serving layer in the second—rather than one opaque “routing failed” path.

These are application-design recommendations, not a tested integration. Neither source establishes a native PAIR-to-cloud connector or automatic fallback; switching serving layers needs an explicit data-handling policy and adapter checks. The PAIR description is for its beta, not proof of arbitrary server compatibility or a throughput guarantee.

Sources: NVIDIA’s PAIR architecture (September 3, 2026), and application-side model routing (September 1, 2026).

There is another failure boundary worth testing in the application adapter: a request that failed before producing output is not the same as a stream that broke halfway through. “No eligible node” and “connection lost” should not automatically share a fallback handler; the latter does not establish whether execution started.

I would add three fault-injection cases before enabling cross-endpoint retries:

  • Reject a request before dispatch. Check that any retry stays within the chosen model and data-handling policy, with a bounded attempt budget.
  • Disconnect after the first output chunk. Check that the client marks the answer incomplete rather than appending a fresh generation to the partial answer as though it were one continuous response.
  • Disconnect after a tool call has been handed to the application. Check that retrying generation cannot silently execute that action twice. Keep application-side action IDs and execution records separate from inference-attempt IDs; a request ID in a header is not proof of server-side deduplication.

For the last case, I would stop automatic replay when the tool’s outcome is unknown and reconcile that action first. For ordinary text, an explicit restart can be reasonable, but the UI should distinguish the replacement attempt from the interrupted one.

These are proposed adapter tests, not claims about PAIR’s retry behavior. They turn the model-versus-placement distinction into a concrete client contract: routing may change where the next attempt runs, but it must not erase what the previous attempt already exposed or triggered.