Productivity & Auto 📅 2026-11-28 · Mini AI Tools Research Desk

LM Studio Setup Guide: Run LLMs Locally From Download to a Local API

A step-by-step LM Studio tutorial: install the app, download a model, tune GPU offload and context, then serve an OpenAI-compatible API on localhost:1234.

$ EXECUTIVE BENCHMARK SUMMARY (TL;DR)

What LM Studio is and what it costs

LM Studio is a desktop app for running open-weights language models on local hardware. The app itself is free for home and work use, on Windows, macOS and Linux. Under the hood it drives llama.cpp for GGUF models and MLX on Apple Silicon, so quantized community models run on ordinary laptops and desktops without any cloud dependency.

A subscription line called Bionic, listed from $20/month on the pricing page, adds US-hosted open-source cloud models, but every local feature described here stays on the free tier. Information in this article follows the lmstudio.ai site and docs as of November 28, 2026.

Download: lmstudio.ai

Install and download the first model

Installers for the three platforms sit on the homepage. After the first launch, head to the Discover tab, search a model family (Gemma, Qwen, gpt-oss and DeepSeek are among the curated options), and pick a quantized build that fits the machine. A 7B-class model at 4-bit quantization typically lands around 4 to 5 GB, which roughly fits 8 GB of spare RAM or VRAM; larger context adds KV-cache overhead on top, and bigger models scale up proportionally.

The CLI does the same job: lms get <model> downloads without opening the Discover tab. Model files stay on disk, so switching between models costs nothing beyond download time.

LM Studio homepage🔍 View full resolution
lmstudio.ai homepage, screenshot from November 28, 2026

Load, chat, and tune memory

The Chat tab holds the model loader. Loading a model allocates RAM or VRAM for its weights, and two knobs matter most: GPU offload, which sets how many layers move onto the graphics card (a slider from 0 to max), and context length, which trades memory for how much text the model can attend to. The loader shows an estimated memory footprint before committing.

The CLI mirrors every knob. lms load <model> --gpu max --context-length 4096 pins a model into memory with full offload, --gpu 0.5 splits layers between CPU and GPU, and lms load --estimate-only <model> prints a memory estimate without loading anything, which saves trial-and-error on small machines.

Serve a local OpenAI-compatible API

The Developer tab has a Start server toggle; the CLI equivalent is lms server start. By default the server listens on localhost:1234 and speaks OpenAI-compatible endpoints: /v1/models, /v1/chat/completions, /v1/completions, /v1/embeddings and /v1/responses. Point an existing OpenAI SDK at it by swapping the base URL to localhost:1234/v1, as the docs examples do; the client still expects an api_key argument, but the local server does not validate it, so any placeholder works.

Authentication is off by default. The server settings can generate an API token and require a Bearer header, and a Serve on Local Network option lets other devices on the same LAN reach the server. A 4-bit 7B model answering through this endpoint runs entirely offline, with no per-request billing anywhere.

LM Studio setup flow in five steps🔍 View full resolution
LM Studio setup path from install to a local API endpoint

LM Studio vs Ollama vs cloud API

Three ways to put a model behind an endpoint, side by side:

DimensionLM StudioOllamaCloud API (e.g. free tiers)
CostApp free, hardware is the costFree, hardware is the costFree quota, then paid per token
Model formatsGGUF (llama.cpp), MLX on Apple SiliconGGUFProvider-hosted, no download
InterfaceFull GUI plus lms CLICLI-first, third-party GUIsDashboard or API only
APIlocalhost:1234, OpenAI-compatiblelocalhost:11434Hosted endpoint
PrivacyFully offlineFully offlinePrompts leave the machine

Choose LM Studio if: the machine has a discrete GPU or an Apple Silicon chip and a visual loader helps; browsing, downloading and serving through a GUI is its strongest suit.

Choose Ollama if: the target is a headless server, scripts, or an existing toolchain already built around its ecosystem.

Stick with a cloud API if: the machine has no usable GPU or the workload spikes past local memory; free tiers such as Groq cover prototyping at zero cost until volume grows.

Featured Tools in this Guide

OL

Ollama

Coding & Dev
Freemium

Install Ollama, pull gemma4:e2b, and chat with the model on your own computer.

Freemium

Hugging Face Inference Providers calls chat, image, and embedding models through one token: create an account, enable the Inference Providers permission on Access Tokens, then copy the Getting Started quickstart.

More In-Depth Benchmarks & Guides

View all guides →