Configure local inference, memory and model caching

Understand automatic and manual inference settings, context limits, image processing, concurrency and cached models.

Open All settings → Local inference. These settings apply to the current computer.

Automatic and Manual

Automatic lets the hardware policy choose a value using the available memory and configured machine profiles. Manual uses your chosen limit.

For response tokens, OCR region size and maximum background requests, select Manual to reveal the numeric control. Use −, + or type a value. Selecting Automatic hides the numeric control and restores automatic allocation. Switching back to Manual while the control remains open restores your previous manual value.

Initial manual values are 2,048 response tokens, a 1,024-pixel OCR region size and 1 background request. Existing manual values remain available when opening the settings.

Context & memory

  • Context allocation chooses Automatic or Manual for the model context budget.
  • Maximum context (tokens) limits how much input and generated output a model can hold in one request. The dropdown becomes editable when context allocation is Manual. Larger contexts require more memory.
  • Maximum response tokens caps the generated response. Manual values range from 256 to 8,192.
  • Image tokens controls the image-token budget used by supported visual inference. Select Automatic or an available numeric budget.
  • OCR region size (pixels) controls the tile size used when a large image is divided for text extraction. Manual values range from 256 to 4,096. Larger tiles include more surrounding content and require more memory.

Hardware & concurrency

  • Maximum background requests caps concurrent background requests. Manual values range from 1 to 4. The CPU/GPU allocation and other runtime limits also affect how much work runs at once.
  • Search CPU threads selects an automatic or explicit CPU thread budget for search processing.
  • Pause search indexing on battery pauses background search indexing while running on battery power.
  • Inference slots controls available inference slots, from 1 to 4. Effective concurrency also depends on the model and runtime.
  • GPU offload selects Automatic, Disabled or Custom. Automatic allows the runtime to choose GPU offload. Disabled uses CPU execution for this setting. Custom enables the GPU layers control.
  • GPU layers specifies the offload layer count in Custom mode. Available hardware, memory and runtime support determine what can be offloaded.

The sliders in Queue & batch control the overall background workload allocation. Read about CPU and GPU allocation.

Model cache and cached models

Unload idle models after sets how long an unused model remains loaded. Immediately releases an idle model promptly. A longer delay can reduce repeated loading at the cost of retained memory.

Maximum warm models limits how many model sessions may remain cached. Release idle models asks Studio to free currently idle model sessions. The warm-session count shows how many sessions are cached.