LM Studio is a free desktop application for downloading, loading, and running large language models locally on Windows, Mac, and Linux. It helps match models to available hardware and supports both chat use and local server hosting. section 2.2.1
A practical LM Studio workflow is:
- Install LM Studio, search for a model, review its specifications and compatibility estimate, then download a suitable model. section 2.2.1
- Load the model on the chat page, optionally enable a GPU, or open the server page and click Start Server. section 2.2.1 section 2.2.2
- Connect Python through the OpenAI client using the local endpoint http://localhost:1234/v1, then send chat messages. section 2.2.2
Connecting a Python program
A Python client can target LM Studio with an OpenAI-compatible base URL and an unnecessary API key, select the local model, send system and user messages, and print the response. section 2.2.2
Figure 2.6 The LM Studio server page and a server running an LLM
Shows the server page, loaded model, and running local server used for Python connections. section 2.2.2


