Complete guide to managing and optimizing LM Studio on your computer

Last update: 14/07/2026

  • LM Studio allows local execution of GGUF models with an intuitive interface that eliminates the need to use complex terminals.
  • The tool offers a robust CLI and OpenAI-compatible endpoints to integrate AI into development workflows using Python or Typescript.
  • Resource management and complete application shutdown on macOS are critically dependent on the headless mode setting.
  • The system allows the import of external models and advanced customization through model.yaml files for the community Hub.

How to delete downloaded models without breaking LM Studio

¿How to delete downloaded models without breaking LM Studio? If you're into the world of artificial intelligence but are a little intimidated by getting bogged down in endless command lines, LM Studio is probably the one for you. best ally you can haveBasically, it's an application that lets you download and run language modeling tools (LLMs) directly on your own computer, without your data having to travel to the cloud or depend on external servers, giving you a total privacy and absolute control about what happens on your machine.

The best part is that you don't need to be a systems expert to get the most out of it. Whether you want to try Llama, Mistral, or Falcon, this software offers you a super intuitive graphical interface which makes managing GGUF models a breeze. From downloading to configuring parameters, everything is designed for a seamless experience, allowing you to take full advantage of the GPU acceleration so that the answers don't take forever.

Exclusive content - Click Here  How to disable and remove Copilot from Microsoft 365 and Windows

LM Studio vs Ollama
Related article:
Which local AI performs better on modest PCs: LM Studio vs. Ollama

Installation and first steps

To get started, the first thing to do is go to their official website and download the version corresponding to your operating system, whether it Windows, macOS or LinuxIf you are a Linux user, you may need to install Chrome and grant execute permissions to the AppImage file using the command chmod +xthen running it with the option --no-sandbox to avoid deployment problems.

As for the requirements, to avoid things going too smoothly, it is recommended that modern CPU with at least 4 cores and about 16 GB of RAM if you intend to use medium-sized models. Once the app is open, the process is simple: go to the models section, find the one you're most interested in from the library (integrated with Hugging Face), and Download the optimized GGUF versionAfter loading the model, you can enter the chat tab and start asking questions.

Mastering the LM Studio CLI and API

Although the visual interface is great, LM Studio hides enormous potential for developers through its command line interface (CLI)You can install the CLI on your system (for example, on Ubuntu using npx lmstudio install-clito manage everything without touching the mouse. Among the most useful commands we have lms load to upload a model to memory, lms unload --all to clear the RAM, and lms ls for List all downloaded models with its technical details.

Connect a local AI to Google Drive
Related article:
How to connect a local AI to Google Drive and your own storage

If you're looking to integrate AI into your own programs, LM Studio offers a local server with OpenAI compatible endpointsThis is pure gold, as you can use Python or TypeScript SDKs to make requests to /v1/chat/completionsThey also have a Proprietary API in beta phase (version 0.3.6 and later) which allows interaction with uploaded and downloaded models in a more specific way through routes such as /api/v0/models.

Advanced tricks: Model.yaml and Imports

How to use LM Studio as an OpenAI compatible server

For those who want to go a step further, there is the system of model.yaml filesThis format allows you to describe a virtual model, defining its sources in Hugging Face, metadata (such as parameter sizes or architecture), and loading configurations. It is a tool designed primarily for Publish models in the LM Studio Huballowing the runtime to choose the appropriate variant based on the user's machine.

Exclusive content - Click Here  How to open a WFM file

Additionally, if you already have GGUF files that you downloaded yourself outside of the application, you don't need to download them again. You can use the command lms import followed by the file path so that the program can recognize it and you can run it like any other model native to the system.

Troubleshooting: The Mystery of Processes in macOS

Sometimes, Mac users find that even if they close the application with ⌘Q, he Activity Monitor continues to show processes assets that consume CPU and memory. This may seem alarming, but the solution is simpler than it appears. The culprit is usually the headless mode activated in the settings.

When headless mode is enabled, the application keeps certain auxiliary processes running even after closing the graphical interface. To fix this and get the app working properly, you need to... kill all of its child processes Upon exiting, simply disable headless mode in the settings. However, keep in mind that if you start the server via the CLI, the processes will reappear, which is normal since the server... is performing an active task in the background.

Exclusive content - Click Here  How to Unpartition a Hard Drive

Having a tool capable of managing LLMs locally, combining a simple interface with a powerful API and the ability to customize models using YAML, makes LM Studio a leading option compared to alternatives like Ollama. From controlling RAM with the unload command to optimizing privacy by not relying on the cloud, it's the ideal solution for any AI enthusiast who wants to experiment on their own computer without extreme technical complications.