Getting Started with LM Studio: GUI-Based Local LLMs
What Is LM Studio and Who Is It For
LM Studio is a desktop application that provides a graphical interface for downloading, configuring, running, and serving large language models locally. Unlike Ollama (command-line focused) or llama.cpp (developer-oriented), LM Studio is designed for users who prefer clicking to typing. It bundles a custom build of llama.cpp under the hood for inference, so the performance is identical to other llama.cpp-based tools. The interface handles three main workflows: discovering and downloading models from Hugging Face directly within the app, chatting with models through a clean GPT-style interface, and serving models behind a local API server compatible with OpenAI's chat completions format. LM Studio is particularly well-suited for: users new to local LLMs who find terminal tools intimidating, users who want to quickly test many different models without writing config files, and users who want a desktop chat experience similar to ChatGPT but running locally. It is less suited for: automated scripting (use Ollama), maximum performance tuning (use llama.cpp directly), or headless server deployments. The application is free for personal use and runs on Windows, macOS (Apple Silicon), and Linux.
Installation and First Launch
Download LM Studio from lmstudio.ai. The installer handles platform-specific setup automatically. On Windows, it installs like any other application and automatically detects NVIDIA GPUs via CUDA. On macOS, it downloads a native Apple Silicon build that uses Metal for GPU acceleration. On Linux, an AppImage is provided. After installation, the first launch presents a setup wizard that checks for GPU compatibility. LM Studio requires a GPU with at least 4 GB of VRAM for practical use, though CPU-only fallback is available. The interface has four main tabs: Discover (model catalog), Chat (interactive conversation), Developer (local API server), and My Models (downloaded model management). The Discover tab connects to Hugging Face and shows models compatible with LM Studio's inference engine. Not all Hugging Face models are listed — only GGUF format models that have been verified to work. You can also load any GGUF file directly from disk if you have downloaded one manually. The first thing you should configure after installation is GPU offloading: go to Settings > GPU and ensure 'GPU Acceleration' is enabled and your GPU is detected. On Mac, Metal acceleration should be auto-detected. On NVIDIA, CUDA should be detected. If it is not, update your GPU drivers.
Installation Checklist:
1. Download from lmstudio.ai
2. Launch and check GPU detection (Settings > GPU)
3. In Discover tab, search for "Llama 3.1 8B"
4. Select a Q4_K_M version (~4.7 GB download)
5. Click Download — model saves to local library
6. Go to Chat tab, select the model from dropdown
7. Start chatting — GPU should show activityFinding and Choosing the Right Model
The Discover tab is LM Studio's model marketplace. It connects to Hugging Face and filters for GGUF models. Key things to check when browsing: the model card shows parameter count, file size, quantization level, and a brief description. Always look at the file size — this directly determines VRAM usage. For your first model, start with something in the 7-8B range at Q4_K_M (typically 4-5 GB). This fits on most GPUs and gives you a baseline for quality and speed. The model card shows which quantizations are available. LM Studio labels them clearly: Q4_K_M (recommended, balanced), Q5_K_M (higher quality, larger), Q8_0 (near-lossless, much larger), and so on. Some model cards include a 'Chat' or 'Instruct' label — always choose the Instruct version for conversation unless you specifically want a base model for fine-tuning or creative experimentation. The search bar supports filtering by keyword. You can search for 'coding', '7B', 'Qwen', etc. LM Studio also shows download counts and community ratings, which are useful quality signals. One important note: LM Studio only shows models where the uploader has provided metadata in the expected format. If a model you heard about is not showing up, search for it on Hugging Face directly, download the GGUF file, and load it via the 'My Models' tab using the file picker.
GPU Configuration: Getting the Best Performance
LM Studio's GPU settings determine how much of the model is accelerated by your GPU. The key setting is 'GPU Offload Layers' — this controls how many model layers are processed on the GPU versus CPU. The default is to offload as many layers as fit in VRAM, which is almost always what you want. You can manually adjust this: moving the slider left offloads fewer layers (uses more CPU, slower but uses less VRAM), moving it right offloads more layers (faster but uses more VRAM). If you get out-of-memory errors, reduce the GPU offload slider. For context length, LM Studio defaults to 2048-4096 tokens. Increase this if you need longer conversations or are processing documents. Keep in mind that longer context uses more VRAM for the KV cache. The 'CPU Threads' setting matters only if you are running some or all layers on CPU. Set it to your CPU's physical core count for best performance. LM Studio also exposes 'Prompt Format' — this determines how conversation turns are formatted before being sent to the model. Most instruct models auto-detect correctly, but if you see garbled output, manually set the format (ChatML, Llama 3, Mistral, etc.) based on your model's expected format.
Optimal GPU Settings by VRAM:
8 GB GPU:
- GPU Offload: Max (all layers for 7-8B models)
- Context Length: 4096
16 GB GPU:
- GPU Offload: Max (all layers for up to 14B models)
- Context Length: 8192
24 GB GPU:
- GPU Offload: Max (all layers for up to 32B models)
- Context Length: 16384Using the Chat Interface Effectively
LM Studio's Chat tab provides a familiar ChatGPT-style interface. On the right sidebar, you can configure model parameters: Temperature controls randomness (0.1 = deterministic, good for coding; 0.8 = creative, good for writing). Top-P (nucleus sampling) limits token selection to the most probable tokens — keep at 0.9-1.0 unless you have a specific reason to change it. Repeat Penalty discourages the model from repeating the same phrases; a value of 1.1 is a safe default. The System Prompt field lets you set the model's behavior and personality. This is powerful: a system prompt like 'You are a senior Python developer. Be concise and show code examples.' transforms a general chatbot into a coding assistant. LM Studio saves chat history locally and supports multiple conversation threads. The history is stored on your machine, not in the cloud. You can export conversations as text or JSON. For maximum privacy, LM Studio operates entirely offline once models are downloaded. You can disable analytics in Settings if desired. The chat interface also supports markdown rendering for code blocks, tables, and formatted text in model responses.
Running LM Studio as a Local API Server
LM Studio's Developer tab turns the application into a local HTTP server that is compatible with OpenAI's Chat Completions API format. This means any application that can use OpenAI's API can be pointed at localhost:1234 and use your locally-running model instead. Start the server by selecting a loaded model and clicking 'Start Server.' The server runs on port 1234 by default. You can configure CORS settings, authentication, and rate limiting in the server settings. The API compatibility extends to streaming responses, system prompts, and most common parameters (temperature, top_p, max_tokens). This makes LM Studio an excellent backend for: IDE extensions like Continue.dev, custom applications built with the OpenAI SDK, local RAG pipelines, and any tool that supports custom API base URLs. The server shows request logs, letting you see exactly what is being sent and received. For production use, note that LM Studio's server is designed for single-user access — it processes requests sequentially, not concurrently. For multi-user serving, use Ollama or vLLM instead.
# LM Studio runs a local API server on port 1234
# Test with curl:
curl http://localhost:1234/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "local-model",
"messages": [
{"role": "user", "content": "Explain GPU VRAM in one sentence."}
]
}'
# Use with Python OpenAI client
# Replace openai.api_base with "http://localhost:1234/v1"LM Studio vs Ollama: When to Use Which
Both LM Studio and Ollama run the same llama.cpp inference engine and produce the same quality and speed. The difference is entirely about interface and workflow. Choose LM Studio when: you prefer a graphical interface over the terminal, you want to visually browse and download models without remembering model names, you want a ChatGPT-like desktop chat experience, or you are new to local LLMs and want the gentlest learning curve. Choose Ollama when: you prefer the command line, you need to script or automate model usage, you want a headless server that runs in the background, you need multi-user API serving, or you are integrating with tools that natively support Ollama's API. Many experienced users keep both installed: Ollama running as a background service for API access and scripting, and LM Studio for quick visual experimentation with new models. They can coexist on the same machine — just do not run both simultaneously with the same GPU if you are loading different models, as they will compete for VRAM. LM Studio and Ollama can access the same GGUF files if you download them to a shared directory.
Frequently asked questions
- Is LM Studio free?
- Yes, LM Studio is free for personal use. A paid license is required for commercial use. The free version has all features unlocked — there are no paywalled capabilities, model limits, or usage restrictions. The company monetizes through commercial licensing, similar to the Docker or GitLab model.
- Does LM Studio work without internet?
- Yes. Once models are downloaded, LM Studio runs completely offline. No telemetry is sent unless you opt in. The chat interface, API server, and model management all work without internet. You only need internet for the initial Download of new models from Hugging Face.
- Can I run the same GGUF files in both LM Studio and Ollama?
- Yes. LM Studio stores models in its own directory, but you can point it to any GGUF file on disk. To share models between LM Studio and Ollama, download the GGUF once and create an Ollama Modelfile referencing the same file path, or download in Ollama and point LM Studio to ~/.ollama/models/ (though Ollama stores models in a blob format). The simplest approach: let each tool manage its own downloads — disk space is cheap relative to the convenience.
- Why is LM Studio slower than I expected?
- Check GPU offloading in Settings. If 'GPU Offload Layers' is set to 0, the model runs entirely on CPU, which is 5-20x slower. Also check that your GPU is detected. On Windows, open Task Manager > Performance and look for GPU activity during generation. If GPU usage is 0%, LM Studio is running on CPU only. Update your GPU drivers and restart LM Studio.
- Does LM Studio support multi-GPU?
- No. As of mid-2026, LM Studio only uses a single GPU. For multi-GPU setups, use llama.cpp directly or Ollama, which auto-detects and distributes across multiple GPUs. This is one of the main reasons power users eventually move from LM Studio to command-line tools.