LocalAI v5.2.0 adds automation that runs tasks in sequence on a local AI server and adjusts response generation to device capabilities and request volume. Server operators can link repetitive tasks and select per-model acceleration. They can also manage server settings and status from the desktop launcher.
1. Connecting agents and tools in one workflow
Under Agents → Automations, connecting agents and additional tools lets one step pass its results to the next, branch on conditions, or repeat a step for each item. Events such as file arrivals or schedules can start workflows, and existing single-step triggers continue to work. Run histories and step-by-step flows can be inspected.
Administrators can specify which additional tools each user may use or block them all. Existing users retain access to all additional tools by default. Revoking access stops related tasks and disables connections. Re-enabling connections after restoring access is handled separately.
Combining repetitive tasks into one workflow reduces the effort of moving results between steps. Operators must still decide where human review belongs and who may use which tools. Automated execution brings convenience, but also makes approval and permission management operational responsibilities.
2. Adjusting a small model's draft length to the workload
Inference acceleration varies by hardware. On supported NVIDIA GPUs, CUDA, NVIDIA's GPU computing platform, reduces repeated reads of quantized weights and attention data. AMD RDNA 3.5 gains new matrix multiplication and prompt attention paths. On Apple Metal, token batches can share reads of expert weights. Defaults vary by GPU and workload. The model editor lets users toggle per-model patches or compare them with upstream llama.cpp settings.
A draft model is a small auxiliary model that proposes output in advance, leaving the main model to choose what to accept. This update measures accepted token counts and time per step to adjust draft length. Automatic mode may pause drafting as concurrent requests increase.
Tests paired the Qwen3-8B main model with the Qwen3-0.6B auxiliary model. The changes below are relative to runs without adaptive draft lengths.
The project reported a 63.6% throughput increase on NVIDIA GB10 when handling 4 concurrent text generation requests. With the same setup, throughput rose 9.7% for 4 concurrent code editing requests but fell 0.8% for 8. Even with the same model pairing, the effect of draft length adjustment varied by task type and concurrency.
A separate Apple M4 test applied a patch that shares expert weight reads to the OLMoE-1B-7B Q8_0 model. The project reported 1.51x the throughput with the patch enabled versus disabled when processing 8 sequences on Metal.
3. Handling memory shortages and long prompts
Mixture-of-experts models select the required components from multiple specialized processing components. This update considers both GPU and host memory, moving expert data that does not fit on the GPU as needed and prefetching data for the next layer. Models with large per-layer embedding tables read only the required rows to ease memory pressure. Explicit memory placement settings from the operator take precedence.
When a long prompt arrives while other conversations are generating responses, it is processed in smaller chunks so existing responses can continue. The full batch can be used when no conversations are active. This changes processing granularity to handle large new requests while keeping ongoing conversations responding.
Disabling this chunked processing with the setting below uses the underlying engine's default batch size. An explicitly specified processing budget takes precedence.
paged_kv: false4. Connecting instances directly or through relays
P2P, direct communication between instance nodes without an intermediary server, is disabled by default. When enabled, nodes prioritize direct connections and can use a free public relay run by LocalAI if direct connections are unavailable. Settings also allow a custom relay server or direct-only connections.
5. Managing server settings and status in the launcher
The desktop launcher lets users search for server options and apply settings that support changes without restarting a running server. Changes that take effect at startup can be reviewed before restarting. The launcher now shows whether a setting takes effect immediately or at the next startup.
The system tray shows server readiness, loaded models, and worker status. The launcher shutdown timeout is now 30 seconds to avoid waiting indefinitely when shutdown stalls.
Reported throughput compares runs with and without patches, not with a previous version. Automation approvals are disabled by default, so enable them at the relevant steps if review is needed before sending or deleting. Check tokens included in URLs when sharing workflows externally.
LocalAI 5.2.0 brings workflow automation and inference adjustments together, while actual gains depend on settings suited to the workload and hardware.
