llama3.3models are good for most basic use cases.qwenmodels perform specifically well with tool use.deepseek-r1models have strong reasoning capabilities.phi4models 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 theLMStudio 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.