Skip to main content
LM Studio runs open-source models locally through a desktop app with an OpenAI-compatible local server. LM Studio supports multiple open-source models. See the library here. We recommend experimenting to find the best-suited model for your use case. Here are some general recommendations:
  • llama3.3 models are good for most basic use cases.
  • qwen models perform specifically well with tool use.
  • deepseek-r1 models have strong reasoning capabilities.
  • phi4 models offer strong performance at a small size.

Set up a model

Install LM Studio, download the model you want to use, and run it.

Example

After you have the model locally, use the LMStudio model class to access it. It uses the OpenAI client, so install the openai package:
View more examples here.

Params

LMStudio is a subclass of the OpenAILike class and has access to the same params.