Repository navigation
v5.2.0 #13688
mudler
announced in
Announcements
v5.2.0
#13688
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
LocalAI 5.2.0 brings faster llama.cpp inference and multi-step agent automations. llama.cpp can adjust drafting as requests pile up and stream model experts when GPU memory is tight. In Agents → Automations, a file arriving can start a workflow that reads it, passes it to an agent, and asks for approval before sending the result.
Highlights:
📌 TL;DR
🚀 New Features & Major Enhancements
🤖 Build an automation
Open Agents → Automations to connect agents and add-ons. Pass one step's result to the next, branch on a condition, or repeat a step for each item. Existing one-step triggers still work. Approvals are off by default: enable approval on any step you want to review before it sends or deletes something. Before sharing an exported workflow, check its URLs for embedded tokens.
🔌 Choose add-ons per user
Administrators can give a user access to selected add-ons or to none. Existing users keep access to all add-ons by default. Removing access stops affected work and disables the user's connections. Restoring access does not turn those connections back on.
On a single-node deployment, operators can preinstall signed bundles at startup. For a new signed file with a missing transparency entry, an administrator can approve that exact file if the other required checks pass. An invalid entry still blocks installation. Approval does not extend to updates or other files from the same publisher.
🎨 Pick up your Studio work on another device
Sign in and open Your work to find earlier generations and their result links. Studio stores the records, not another copy of the media. Clearing history leaves server files in place. Without authentication, the instance has one shared history.
Workspace Files now loads folders separately from Trash counts and purge previews. You can preview one deletion or the whole Trash without deleting anything. The badge counts deletion revisions, not individual files.
Upgrading an existing SQL workspace? Upgrade all writers before enabling indexed Trash counts and pages. Until the index is ready, an unavailable count does not mean Trash is empty. Follow the SQL upgrade instructions.
🖥️ Manage a local server from the launcher
Search typed controls for local server options. Apply runtime changes without restarting, or review pending startup changes before a restart. The tray shows server readiness, loaded models, and worker status. On Linux StatusNotifier desktops, select Refresh status, then reopen the menu to see the new snapshot.
⚡ llama.cpp: faster prompts, adaptive drafting, and larger models
Prompt processing on GPU. CUDA changes reduce repeated reads of quantized weights and attention data on supported NVIDIA GPUs. On AMD RDNA 3.5, the backend uses new matrix-multiplication and prompt-attention paths. On Apple Metal, batches of tokens can share expert-weight reads, and long-context decoding can reuse attention data. Defaults depend on the GPU and workload; the model editor exposes per-model patch switches and an Upstream llama.cpp preset for comparison.
Drafting under load. With a draft model, llama.cpp measures how many proposed tokens the main model accepts and how long each step takes, then adjusts how far ahead it drafts. Automatic mode can pause drafting as more streams arrive. In #13617, Qwen3-8B with a Qwen3-0.6B draft on an NVIDIA GB10 gained 63.6% in prose throughput at four streams with adaptive draft length versus without it. Code edits on the same setup gained 9.7% at four streams and lost 0.8% at eight. On a separate Apple M4 test, the Metal expert-weight patch delivered 1.51× throughput at eight sequences for OLMoE-1B-7B Q8_0. These are patch-on versus patch-off measurements, not comparisons with LocalAI 5.1.1.
Fitting models in memory. The
fit_streammode accounts for host memory as well as GPU memory. For mixture-of-experts models, it can stream experts that do not fit and start reading the next layer's experts while the current layer processes the prompt. For models with a bundled per-layer embedding table, llama.cpp can read rows on demand when the table would otherwise force a shorter context. Explicit placement overrides still take precedence.Paged serving for concurrent chats. When a long prompt arrives while other chats are already generating replies, llama.cpp reads the prompt in smaller chunks so those chats can keep streaming. When no older chat is generating, the prompt can use the full batch. With paged serving off (
paged_kv: false), llama.cpp uses the upstream batch size by default. An explicitprefill_budgetoverrides either default. Scheduling changeServing and diagnostics. A prompt-sized warmup exercises the prompt-processing path before the first request. The backend reports detected hardware, active patch switches, memory placement, and the prompt-processing budget, so you can see which optimizations your model actually uses.
🖧 Link LocalAI instances without a VPN
P2P remains off by default. When you enable it, nodes prefer direct connections. When a direct connection is unavailable, nodes can use
relay.localai.io, the free public relay operated by LocalAI. To use your own relay instead, configure it with--p2p-relay. Set--p2p-relay nonefor direct-only connections.📬 Manage calendars and tasks from an agent
The Gmail add-on can manage events on your primary calendar and tasks in a selected list. These tools need separate Google permissions and the
ALLconnection entry, which gives the agent access to the whole mailbox. Writes follow the connection's approval mode. In web chat, use Review and confirm to review a pending add-on change in the browser session that requested it.🧰 Download tool results and prepare Sandbox images
Add-ons can return files to the chat that ran a tool. For example, SSH lets the model read saved command output without running the command again. Sandbox shows image download progress. Commands that need an image share its download; ordinary chat does not wait.
Network default: Fresh official Sandbox installs allow public HTTP(S). Commands can send workspace data to public sites without a prompt. Choose Tools → Network → Off to block the next connection in a chat, or lower the administrator limit for all chats. Upgrades keep existing policies and revocations.
📱 Follow model installs on Android
Enable Settings → Phone notifications to receive success and failure alerts for the default server. Tap an alert to open Models. Alerts omit model names and error details.
🐛 Bug Fixes (recap)
fix(sandbox): Git can use SSH in guest images even when recommended packages are omitted. fix(sandbox): install the OpenSSH client in guest images #13603fix(chat): Each add-on has its own composer button. Tables opens its database picker in one click. fix(chat): give each addon its own composer button #13606fix(launcher): Quit no longer waits indefinitely for a stalled shutdown step. The launcher enforces a 30-second limit. fix(launcher): always exit when Quit is chosen from the tray #13626👒 Dependencies
The 21 dependency PRs include four
ik_llama.cppupdates and threeaudio.cppupdates.stable-diffusion.cpp,vllm.cpp, Strata, and the PrismML llama.cpp fork each received two. Single updates cover upstream llama.cpp, whisper.cpp, NeMo-Speech.cpp, colibri, the CTranslate2 ROCm wheel, and Android's Pion DTLS library.Model gallery: The gallery corrects the
ds4flash.ggufchecksum and syncs Unsloth inference defaults, including theqwen4match pattern. Neither change adds model weights. #13605, #13669📖 Documentation
The source-build guide now lists openSUSE
zypperpackages for build dependencies, Go protobuf tools, and optional media and test utilities. #13646🙌 New Contributors
Full Changelog: v5.1.1...238b1cb
This discussion was created from the release v5.2.0.
All reactions