Load and Unload a Model in LM Studio from the Command Line with lms
Use the lms command line to list, load, and unload models in LM Studio, and start the local server headlessly.
THE FIELD GUIDE
Run AI on your own computer, check model and hardware requirements, and verify which steps work without a cloud connection.
Use the lms command line to list, load, and unload models in LM Studio, and start the local server headlessly.
Save a system prompt and sampling settings as a preset in LM Studio, and pin it to a model for consistent chats.
Start the LM Studio local server and call its OpenAI-compatible chat completions endpoint with curl.
Run ollama ps after loading a model and read the PROCESSOR column to confirm full GPU offload, a split, or CPU-only running.
Pull the LLaVA vision model in Ollama, ask it about a local image, and read the description it returns.
Understand the Ollama more system memory error, why newer versions removed the check, and the fixes that work: smaller context, smaller model,…
Start Ollama in Docker with GPU access and a named volume, pull a first model inside the container, and verify GPU offload.
Download a model first, then disconnect the internet and confirm Ollama chats keep working fully offline.
Set OLLAMA_ORIGINS so a browser app or extension on your machine can call the local Ollama API without a CORS block.
Use ollama show to read a model parameters, template, and context settings before choosing it for a long task.