continue-custom/docs/docs/reference/Model Providers/lmstudio.md
2024-06-01 16:49:32 -04:00

1,015 B

LM Studio

LM Studio is an application for Mac, Windows, and Linux that makes it easy to locally run open-source models and comes with a great UI. To get started with LM Studio, download from the website, use the UI to download a model, and then start the local inference server. Continue can then be configured to use the LMStudio LLM class:

{
  "models": [
    {
      "title": "LM Studio",
      "provider": "lmstudio",
      "model": "llama2-7b"
    }
  ]
}

Setting up a remote instance

To configure a remote instance of LM Studio, add the "apiBase" property to your model in config.json:

{
  "title": "LM Studio",
  "model": "codestral",
  "provider": "lmstudio",
  "apiBase": "http://x.x.x.x:1234/v1/"
}

This apiBase will now be used instead of the default http://localhost:1234/v1.

View the source