LM Studio Guide: Run Local LLMs, MLX & Headless Servers (2026)
Learn how to run LM Studio in 2026: Apple Silicon MLX vs Intel Mac support, headless llmster CLI, OpenAI/Anthropic APIs, MCP, ACP, and ROCm tuning.
LM Studio runs quantized open-weights models such as Qwen 2.5 Coder 32B, Microsoft Phi-4, and Gemma 4 completely offline, hitting 200 to 220 tokens per second on an NVIDIA RTX 5090 or up to 2x faster decode on Apple Silicon via MLX compared to llama.cpp Metal. Keeping inference on local workstations prevents proprietary source code from crossing external networks while removing per-token API spend.
With version 0.4+, the platform separated its graphical workbench from the llmster headless daemon and lms command-line tool. Engineers can prototype quantization settings in the desktop app, automate Linux GPU servers over SSH, expose both OpenAI and Anthropic endpoints on port 1234, and connect MCP tools or Agent Client Protocol (ACP) coding bridges without modifying client SDKs.
Key Takeaways
- LM Studio 0.4+ separates its visual desktop workbench from the standalone
llmsterheadless daemon, enablinglmsCLI scripting, Just-In-Time model loading, and continuous batching on Linux, macOS, and Windows.- Apple Silicon Macs (M1 through M5 on macOS 14+) run native MLX checkpoints up to 2x faster than
llama.cppMetal, whereas Intel x86_64 Macs are officially unsupported by current macOS builds.- The local server exposes both OpenAI (
/v1/chat/completions) and Anthropic (/v1/messages) REST endpoints on port 1234, acts as a native MCP Host via~/.lmstudio/mcp.json, and pairs with ACP editor bridges.- The platform fits single-developer debugging and desktop-to-headless parity, Ollama fits Dockerized CLI automation,
llama.cppexposes raw C++ flags, and vLLM wins multi-tenant GPU cluster throughput.
What Is LM Studio and How Does Its Architecture Work?
LM Studio is a local LLM workbench and headless inference runtime that bundles model discovery, hardware memory estimation, dual compute engines (llama.cpp and Apple MLX), and a multi-protocol HTTP server behind one unified interface. Developers use it to pull quantized weights from Hugging Face and serve local OpenAI or Anthropic compatible APIs without configuring Python virtual environments.
Figure 1: Unified LM Studio architecture routing Desktop GUI, lms CLI, and MCP or ACP clients through the llmster continuous-batching daemon to Apple MLX and llama.cpp runtimes.
Dual Compute Runtimes: llama.cpp and Apple MLX
Under the hood, the runtime dispatches tensor operations across two distinct inference engines depending on host hardware. On Windows, Linux, and macOS GGUF workloads, it executes llama.cpp with hardware-specific acceleration for NVIDIA CUDA, AMD ROCm, Vulkan, and Apple Metal.
On Apple Silicon systems, the desktop client and llmster also run Apple’s native MLX array framework directly against unified memory. Selecting an MLX checkpoint eliminates redundant CPU-to-GPU buffer copies, enabling continuous batching and higher decode speeds on M-series chips.
The llmster Headless Daemon and lms CLI Split
Prior to version 0.4, running the local server required leaving the Electron desktop window open on a logged-in workstation. As detailed in the LM Studio 0.4.0 Release Announcement, the core inference runtime now operates as llmster, an independent background daemon decoupled from the UI.
Both the graphical workbench and the lms CLI communicate with llmster over local IPC sockets, guaranteeing identical prompt templates and sampling behavior across laptops and remote Linux servers. Teams evaluating terminal-first alternatives often compare this architecture with running local LLMs via Ollama CLI before choosing a runtime standard.
| Architecture Layer | Component Name | Primary Responsibilities | Target Interface |
|---|---|---|---|
| Control Plane | Desktop Workbench GUI | Hugging Face GGUF/MLX search, VRAM fit meter, RAG chat, sampling sliders | macOS, Windows, Linux AppImage |
| CLI Control Plane | lms Command-Line Tool |
Daemon lifecycle, lms get, JIT lms load, TTL eviction, runtime updates |
SSH, CI/CD, Linux headless nodes |
| Core Engine | llmster Daemon |
Continuous batching slots, KV cache management, REST routing on port 1234 | Background service (lms daemon up) |
| Protocol Layer | OpenAI, Anthropic, MCP, ACP | /v1/chat/completions, /v1/messages, ~/.lmstudio/mcp.json, ACP adapters |
SDKs, Claude Code, Zed, Cursor |
| Compute Backends | llama.cpp & Apple MLX |
GGUF layer offloading (CUDA, ROCm, Vulkan) and native Apple Silicon MLX execution | Local GPU VRAM or unified RAM |
Hardware and OS Support Matrix: Apple Silicon MLX, Intel Mac, Windows, and Linux
The application natively supports Apple Silicon Macs (M1 through M5 on macOS 14+), Windows x86_64/ARM64 machines, and Linux x86_64 systems with NVIDIA CUDA, AMD ROCm, or Vulkan acceleration. Intel x86_64 Macs are excluded from current macOS releases because they lack Apple unified memory and modern Metal compute primitives.
Hardware bandwidth dictates raw generation speed (tokens per second), while memory capacity sets the ceiling on parameter counts and context windows. The benchmarks below reflect real-world Q4_K_M and 4-bit MLX decode throughput reported across consumer workstations:
| Hardware Platform | OS & Compute Backend | Memory / VRAM | Target Model Tier | Measured Decode Speed |
|---|---|---|---|---|
| NVIDIA GeForce RTX 5090 | Windows / Linux CUDA 13 | 32 GB GDDR7 VRAM | 8B Q4_K_M / 14B to 32B Q4 | 200 to 220 TPS (8B), 75 to 120 TPS (32B) |
| NVIDIA GeForce RTX 4090 | Windows / Linux CUDA | 24 GB GDDR6X VRAM | 8B to 14B Q4_K_M | 125 to 180 TPS (8B) |
| Apple M4 / M5 Max & Ultra | macOS Apple MLX (Metal) | 64 GB to 512 GB Unified | 7B to 8B MLX / 70B MLX | 80 to 120 TPS (8B), 10 to 30 TPS (70B) |
| Apple M4 Pro | macOS Apple MLX (Metal) | 24 GB to 48 GB Unified | 8B to 14B 4-bit MLX | 45 to 65 TPS (14B) |
| AMD Radeon RX 7900 XTX | Linux AMD ROCm / HIP | 24 GB GDDR6 VRAM | 14B to 32B Q4_K_M | 50 to 70 TPS |
| Intel x86_64 Mac | Unsupported | Discrete / DDR4 RAM | Requires raw llama.cpp CPU |
Not supported on current builds |
Apple Silicon MLX Support vs. Intel Mac Limitations
Apple Silicon’s unified memory lets CPU and GPU cores address the same memory pool without PCIe transfers, enabling Mac Studio systems with 128 GB or more RAM to hold 70B+ parameter models locally. As documented in Apple MLX Distributed Inference Research, MLX maps tensor arrays directly onto unified memory, yielding 1.4x to 2x higher generation speeds than llama.cpp Metal on compatible architectures.
Intel Mac owners checking for macOS compatibility encounter installer blocks or immediate MLX runtime failures. Current macOS builds require Apple Silicon ARM64 chips and macOS 14 or newer, as noted in the LM Studio Official Changelog. Engineers locked to Intel Macs must compile upstream llama.cpp for AVX2 CPU inference or shift workloads to Linux GPU hosts.
[!NOTE] For a deeper hardware breakdown comparing Apple unified memory prefill vs decode latency across both runtimes, read our Apple Silicon MLX vs llama.cpp latency benchmarks study.
Linux CUDA, AMD ROCm, and Vulkan Acceleration
On Windows and Linux NVIDIA setups, the runtime bundles pre-compiled CUDA kernels (upgraded through CUDA 13 in current builds) and manages GPU layer offloading automatically. For AMD GPUs, Windows relies on the cross-platform Vulkan runtime, whereas Linux workstations support both Vulkan and kernel-level ROCm acceleration.
According to the AMD ROCm Platform Documentation, ROCm executes HIP compute kernels directly on supported Radeon hardware and typically outperforms Vulkan by 10% to 20% on Linux. Before selecting the ROCm backend on Linux, verify that your user account holds device permissions for /dev/kfd and /dev/dri.
# Grant Linux user access to AMD ROCm compute and display nodes
sudo usermod -aG render,video "$USER"
# Open a fresh shell session and confirm both groups are active
groups | grep -E "render|video"
After adding group memberships, log out and back in so the desktop session or llmster systemd user service inherits /dev/kfd read-write permissions. You can then pull or refresh backend engines individually via lms runtime update llama.cpp or lms runtime update mlx on macOS.
How to Run LM Studio: Desktop Workbench and Headless llmster Server
You run LM Studio either through its graphical desktop workbench for interactive model testing and local document RAG, or headlessly via the llmster daemon and lms CLI on remote servers. Both workflows pull checkpoints into the same local cache and expose identical REST endpoints on port 1234.
Desktop GUI Setup, Model Selection, and Local Document RAG
Download the macOS Apple Silicon .dmg, Windows installer, or Linux x86_64 .AppImage from the official site. On Linux desktops, grant executable permissions before launching the AppImage directly from your terminal:
chmod +x ./LM_Studio-Linux-x86_64.AppImage
./LM_Studio-Linux-x86_64.AppImage
Inside the Search panel, the workbench filters Hugging Face GGUF and MLX repositories and displays a live VRAM fit badge beside every quantization (Q4_K_M, Q5_K_M, Q8_0, or 4-bit MLX). Choosing current open-weights models matched to your hardware avoids wasted downloads and maximizes coding accuracy:
| Model Family | Recommended Variant | Memory Target (4-Bit) | Context Window | Primary Local Workload |
|---|---|---|---|---|
| Qwen 2.5 Coder | Qwen2.5-Coder-32B-Instruct |
~20 GB VRAM / Unified | 128K tokens | Single-GPU code generation and refactoring |
| Microsoft Phi-4 | Phi-4 (14B) / Phi-4-mini |
~9 GB (14B) / ~3 GB | 16K to 128K tokens | Fast reasoning on 12 GB laptops and desktops |
| Google Gemma 4 | Gemma-4-12B / Gemma-4-26B-MoE / E4B |
~8 GB to ~17 GB | 128K tokens | Multimodal vision, audio, and edge tool use |
| DeepSeek Distill | DeepSeek-R1-Distill-Qwen-32B |
~20 GB VRAM / Unified | 128K tokens | Step-by-step math and local chain-of-thought |
| Meta Llama 4 / Muse | Llama-4-Scout (17B active MoE) / Muse Ember |
High unified RAM / Small GPU | Up to 10M (Scout) | Long-context retrieval and fast subagent loops |
To query private .pdf, .docx, or .txt files offline, attach documents directly inside the Chat tab. The client chunks and indexes files locally in memory so retrieval-augmented generation runs without sending document snippets to cloud embedding APIs. Engineers configuring Apple Silicon workstations for IDE autocomplete and multi-file agent loops can follow our Mac VS Code offline coding workflow to separate sub-25ms completions from 32K refactoring models.
Headless Server Automation with llmster, JIT Loading, and TTL
Production servers, CI runners, and SSH-only GPU nodes do not need an X11 display server or the Electron GUI. As specified in the LM Studio Headless llmster Documentation, the standalone installer sets up the lms CLI and llmster background engine in one command.
#!/usr/bin/env bash
set -euo pipefail
# Install the headless lms CLI and llmster core daemon on Linux or macOS
curl -fsSL https://lmstudio.ai/install.sh | bash
export PATH="${HOME}/.cache/lm-studio/bin:${PATH}"
# Start the background daemon and refresh compute backends
lms daemon up
lms runtime update llama.cpp
# Pull a quantized coding checkpoint and load with 1-hour idle TTL eviction
lms get qwen/qwen2.5-coder-14b-instruct-gguf@Q4_K_M
lms load qwen/qwen2.5-coder-14b-instruct-gguf --gpu auto --ttl 3600
# Bind the HTTP API server on port 1234 and inspect loaded memory
lms server start --port 1234
lms ps
Two flags in that workflow prevent common server bottlenecks: --ttl 3600 automatically evicts idle weights from VRAM after one hour, and Just-In-Time (JIT) loading on the server reloads the model transparently when the next API request arrives. For interactive SSH verification before wiring client apps, run lms chat directly in the terminal.
Local APIs, MCP Tool Calling, and Agent Client Protocol (ACP) Integration
LM Studio’s local server on http://localhost:1234 implements both OpenAI Chat Completions and Anthropic Messages API schemas, while acting as a native MCP Host and integrating with Agent Client Protocol (ACP) coding bridges. Continuous batching lets multiple IDE tabs or background subagents hit the same loaded model concurrently instead of stalling behind a single-file queue.
OpenAI and Anthropic-Compatible Endpoints on Port 1234
According to the LM Studio Developer Documentation, the local server mirrors standard routes including POST /v1/chat/completions, POST /v1/embeddings, stateful POST /v1/chat, and Anthropic-style POST /v1/messages. Exposing /v1/messages allows tools built for the Anthropic SDK, including Claude Code workflows, to target local Qwen 2.5 Coder 32B or DeepSeek-R1-Distill weights by changing only the base URL environment variable.
The Python script below targets http://localhost:1234/v1 using the standard OpenAI Chat Completions API Reference to demonstrate streaming responses, structured tool calling, and base64 multimodal vision analysis for Gemma 4 checkpoints.
#!/usr/bin/env python3
"""OpenAI-compatible streaming, tool calling, and vision client for LM Studio."""
import base64
from openai import OpenAI
client = OpenAI(
base_url="http://localhost:1234/v1",
api_key="lm-studio", # Required by the SDK; ignored by local llmster
)
MODEL_ID = "qwen/qwen2.5-coder-14b-instruct"
def stream_completion() -> None:
stream = client.chat.completions.create(
model=MODEL_ID,
messages=[{"role": "user", "content": "Explain KV cache eviction in two sentences."}],
temperature=0.2,
stream=True,
)
for chunk in stream:
delta = chunk.choices[0].delta.content or ""
print(delta, end="", flush=True)
print()
def invoke_tool_schema() -> None:
tools = [
{
"type": "function",
"function": {
"name": "get_gpu_memory_free",
"description": "Read remaining free VRAM in megabytes for a target GPU.",
"parameters": {
"type": "object",
"properties": {
"device_index": {"type": "integer", "description": "Zero-based GPU index"}
},
"required": ["device_index"],
},
},
}
]
response = client.chat.completions.create(
model=MODEL_ID,
messages=[{"role": "user", "content": "Check free VRAM on GPU 0."}],
tools=tools,
tool_choice="auto",
)
msg = response.choices[0].message
if msg.tool_calls:
for call in msg.tool_calls:
print(f"Tool: {call.function.name} | Args: {call.function.arguments}")
def inspect_image(image_path: str, vision_model: str = "google/gemma-4-12b-it") -> None:
with open(image_path, "rb") as fh:
b64_img = base64.b64encode(fh.read()).decode("utf-8")
response = client.chat.completions.create(
model=vision_model,
messages=[
{
"role": "user",
"content": [
{"type": "text", "text": "Summarize the system bottlenecks visible in this chart."},
{"type": "image_url", "image_url": {"url": f"data:image/jpeg;base64,{b64_img}"}},
],
}
],
)
print(response.choices[0].message.content)
if __name__ == "__main__":
stream_completion()
invoke_tool_schema()
Keep temperature around 0.2 when calling structured tool schemas so quantized models emit valid JSON arguments consistently. Passing a specific model string also triggers JIT model switching when multiple weights are cached on disk.
Configuring MCP Servers via mcp.json and Connecting ACP IDEs
LM Studio acts as an MCP Host that gives local models direct access to local filesystems, git repositories, and databases through the Model Context Protocol architecture. Define stdio or remote HTTP/SSE tool servers inside ~/.lmstudio/mcp.json on macOS/Linux (or %USERPROFILE%\.lmstudio\mcp.json on Windows):
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/dev/projects/api-service"
]
},
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_replace_with_scoped_token"
}
}
}
}
Restrict directory paths in @modelcontextprotocol/server-filesystem to the active repository rather than $HOME so local models never read SSH keys or cloud credentials. Once saved, toggle each MCP tool server inside the Developer tab or attach it programmatically via stateful /v1/chat requests.
Developers integrating local weights with editors supporting the Agent Client Protocol Introduction, pioneered by Zed and JetBrains as an LSP-style standard for AI coding agents, can bridge http://localhost:1234 directly into their IDE. Because llmster exposes OpenAI and Anthropic HTTP endpoints rather than acting as a standalone ACP server binary, editors connect via lightweight ACP adapter bridges (LMStudioACP or claude-agent-acp).
Alternatively, teams that do not want external IDE adapter bridges can run LM Studio Bionic, the platform’s integrated agentic environment for local codebases, document workflows, and terminal commands.
Architectural Comparison: LM Studio vs. Ollama vs. llama.cpp vs. vLLM
LM Studio, Ollama, llama.cpp, and vLLM occupy different layers of the local inference stack rather than acting as drop-in replacements. llama.cpp is the C++ tensor engine, LM Studio and Ollama wrap llama.cpp (and Apple MLX) with developer workflows, and vLLM is a datacenter-grade serving engine built for high-concurrency GPU clusters.
Figure 2: Local LLM runtime selection flowchart mapping visual Mac MLX workbenches, headless single-node servers, Dockerized CLI daemons, and multi-user GPU clusters.
| Feature / Dimension | LM Studio (v0.4+ / llmster) |
Ollama | llama.cpp (llama-server) |
vLLM |
|---|---|---|---|---|
| Primary Use Case | Visual model debugging and desktop-to-headless parity | Lightweight CLI daemon and Docker automation | Raw C++ engine control and custom edge builds | High-concurrency multi-user GPU server |
| Control Surface | Desktop GUI + lms CLI + llmster |
CLI + Modelfile + systemd/Docker |
Terminal flags + built-in web UI | CLI + Python SDK + HTTP server |
| Model Formats | GGUF + native Apple MLX | GGUF via curated registry + MLX | GGUF (reference implementation) | Safetensors (FP8, AWQ, GPTQ); GGUF experimental |
| Local API Dialects | OpenAI + Anthropic /v1/messages + stateful /v1/chat |
Ollama REST + OpenAI /v1 + Anthropic |
OpenAI /v1 compatible |
OpenAI /v1 compatible |
| Concurrency Engine | Multi-slot continuous batching | Parallel slots via env vars (1 default queue) | Configurable parallel slots | PagedAttention + continuous batching |
| License | Free personal/internal business use (proprietary UI/core) | Open Source (MIT) | Open Source (MIT) | Open Source (Apache 2.0) |
Self-Contained Trade-Off Profiles: When Each Runtime Wins
- LM Studio (
llmster+ Desktop): Verdict: Best all-around workstation and single-node server platform when you want visual GGUF/MLX inspection alongside headless CLI parity. Best for: Apple Silicon MLX workflows, dual OpenAI/Anthropic endpoints, and~/.lmstudio/mcp.jsontool testing. Strengths: Live VRAM fit checks, GUI-to-lmsconsistency, and built-in RAG. Trade-offs: Proprietary binary distribution and weaker native Docker ergonomics than Ollama. - Ollama: Verdict: Best developer daemon for scripted
Modelfilepackaging and containerized local stacks. Best for: CI pipelines, Docker Compose sidecars, and drop-inlocalhost:11434IDE extensions. Strengths: MIT license, single-commandollama pull, and mature container images. Trade-offs: Less explicit visibility into per-quantization tensor splits compared to LM Studio. llama.cpp(llama-server): Verdict: Best choice when every megabyte of overhead matters or when targeting unsupported hardware like Intel Macs and SBCs. Best for: Custom C++ embeddings, bleeding-edge model architectures, and fine-grained flash-attention tuning. Strengths: Zero wrapper lag and full flag exposure. Trade-offs: Manual model file management and no built-in MCP Host.- vLLM: Verdict: Best engine for multi-tenant GPU servers handling dozens of parallel coding agents or microservices. Best for: Dedicated Linux CUDA/ROCm servers running unquantized or FP8/AWQ safetensors checkpoints. Strengths: PagedAttention cuts KV-cache fragmentation under heavy batch concurrency. Trade-offs: Overkill for a laptop and lacks native consumer CPU/GPU hybrid GGUF splitting; see our vLLM vs SGLang vs Ollama throughput comparison for server-grade benchmarks.
Where Competitors Win Over LM Studio
- Dockerized CI/CD and Reproducible Microservices (Ollama Wins): If your team ships container images that bake system prompts, adapter weights, and context settings into version-controlled builds, Ollama’s
Modelfileand official GPU Docker images integrate cleanly without proprietary daemon wrappers. - Multi-Agent Concurrency Above 10 Parallel Streams (vLLM Wins): While
llmstersupports continuous batching slots on single workstations, vLLM’s PagedAttention dynamically pages KV blocks across multi-GPU VRAM under heavy parallel request bursts. - Intel Macs and Bleeding-Edge Day-Zero Architectures (
llama.cppWins): Because current macOS releases drop Intel x86_64 Mac support and package upstream engine updates on a fixed release cadence, compilingllama.cppfrom source remains necessary for legacy Macs and day-zero GGUF architectures.
Production Optimization and Troubleshooting Common Errors
Running local models reliably under coding agents and multi-turn pipelines requires budgeting memory for both static weights and the dynamic KV cache, while isolating common port, Metal, and ROCm permission errors. As highlighted on the Apple MLX GitHub Repository, memory-bandwidth-bound decoding collapses as soon as tensor buffers spill out of fast VRAM or unified memory.
VRAM Sizing Math and KV Cache Headroom
Exceeding physical VRAM forces the driver to spill model layers over PCIe into DDR5 system RAM, crashing generation speed from 50+ tokens per second down to under 5 tokens per second. Always reserve operating system and KV cache headroom rather than filling 100% of reported video memory:
| Memory Component | Allocation on 12 GB GPU (8B Q4) | Allocation on 24 GB GPU (32B Q4) | Engineering Impact |
|---|---|---|---|
| Static Quantized Weights | ~4.8 GB (Q4_K_M) |
~18.5 GB (Q4_K_M) |
Must stay 100% resident in VRAM for full speed |
| Dynamic KV Cache | ~2.2 GB (8K context) | ~3.0 GB (16K context) | Grows linearly with active prompt + conversation length |
| CUDA / ROCm Runtime Buffers | ~1.2 GB | ~1.2 GB | Fixed kernel scratchpad overhead |
| OS & Display Headroom | ~3.8 GB buffer | ~1.3 GB headless / ~2.5 GB GUI | Prevents desktop compositor stutter and OOM kills |
[!TIP] Autonomous coding agents such as Cline and Claude Code re-send multi-file repository context on every turn. That pattern expands KV cache memory rapidly until Metal or CUDA buffers crash, so cap context length at 8,192 or 16,384 tokens on 16 GB to 24 GB machines and enable flash attention.
When your engineering team outgrows single-node desktop sessions and needs multi-user web authentication, SSO, and centralized prompt auditing, follow our self-hosted ChatGPT web stack guide to pair Open WebUI with dedicated inference workers.
Production Troubleshooting Runbook: OOM, MLX Errors, and Port Conflicts
Use the diagnostic checks below to resolve the four most common local runtime failures:
- Intel Mac “Unsupported Architecture” or MLX Runtime Failed: Current macOS builds require Apple Silicon (M1 through M5) and throw hardware mismatch errors if you attempt to load MLX checkpoints on x86_64 Intel Macs. Switch to raw
llama.cppGGUF execution outside the desktop client on Intel hardware, or run MLX only on Apple Silicon Macs running macOS 14+. [METAL] Command buffer execution failed: Insufficient Memory: This error indicates that static weights plus the expanding KV cache exceeded macOS unified memory limits. Lower the context window slider from 32K+ down to 8,192 tokens, pick aQ4_K_Mor 4-bit MLX checkpoint, unload stale background models withlms unload --all, and set an idle--ttleviction timer.- Port 1234 Conflict or
Connection Refusedonlocalhost:1234/v1: Verify whetherllmsteris listening or another daemon holds port 1234, then restart on a clean port if needed:
# Inspect active listeners on port 1234
lsof -i :1234
# Stop stale daemon sessions and start the local server on port 1235
lms server stop
lms daemon status
lms server start --port 1235
Confirm your client base_url explicitly includes /v1 (http://localhost:1234/v1 for OpenAI SDKs, or http://localhost:1234 for Anthropic /v1/messages clients) whenever Connection Refused or HTTP 404 errors appear.
- Linux AMD ROCm Device Detection Failure: If the workbench detects your Radeon GPU but silently falls back to CPU or Vulkan, inspect device node ownership with
ls -l /dev/kfd /dev/dri. Add your user torenderandvideo, verify kernel driver support, and restart thellmsterdaemon.
Frequently Asked Questions About LM Studio
How do you run LM Studio without the desktop GUI?
Install the standalone lms CLI via the official install script and start the llmster headless daemon using lms daemon up and lms server start. This background runtime downloads models, manages GPU layer offloading, and exposes OpenAI and Anthropic compatible endpoints on port 1234 without a display server.
Does LM Studio support Intel Macs?
No, modern LM Studio macOS releases require Apple Silicon (M1 through M5 processors) on macOS 14 or newer and do not support Intel x86_64 Macs. Intel Mac owners must run CPU-focused llama.cpp builds directly or migrate local inference workloads to Apple Silicon or Linux machines.
When should you choose the MLX backend over llama.cpp in LM Studio?
Choose Apple’s native MLX backend on M-series Macs whenever a verified MLX checkpoint is available, because MLX avoids CPU-to-GPU copies and delivers 1.4x to 2x faster decode speeds. Use llama.cpp (GGUF) on Windows and Linux CUDA/ROCm systems or on macOS when running newly released architectures without MLX weights.
How does LM Studio work with Agent Client Protocol (ACP) editors?
LM Studio supplies the local inference server on port 1234 while lightweight ACP bridges translate editor requests from Zed or JetBrains into compatible local API payloads. Developers who prefer a zero-bridge setup can use LM Studio Bionic directly or attach local tools through ~/.lmstudio/mcp.json.
What is the difference between LM Studio, Ollama, and vLLM?
LM Studio pairs a visual GGUF/MLX workbench with the headless llmster daemon for local debugging and single-node serving, whereas Ollama focuses on CLI automation and Dockerized Modelfile workflows. vLLM targets multi-GPU Linux clusters running safetensors checkpoints with PagedAttention for high-concurrency multi-tenant serving.
Why does LM Studio crash with Metal insufficient memory errors during coding sessions?
Coding agents repeatedly re-send large source files and system instructions on each turn, causing dynamic KV cache memory to exceed unified RAM limits. Reducing context length to 8,192 or 16,384 tokens, using 4-bit quantization, and configuring idle --ttl unloads prevents Metal command buffer crashes.
Is LM Studio free for commercial and workplace use?
Yes, LM Studio is free for both personal experimentation and internal commercial engineering work under its standard license. Organizations requiring custom redistribution rights or enterprise governance agreements should review LM Studio’s commercial licensing terms before bundling binaries.