Skip to main content

LM Studio

Bundles contain custom components that support specific third-party integrations with Langflow.

The components in the LM Studio bundle let you use models from a local or hosted instance of LM Studio. Components can require authentication with an LM Studio API key. For information about LM Studio models, connections, and credentials, see the LM Studio documentation.

LM Studio text generation

The LM Studio component generates text using LM Studio's local language models.

It can output either a Model Response (Message) or a Language Model (LanguageModel).

Use the Language Model output when you want to use an LM Studio model as the LLM for another LLM-driven component, such as a Language Model or Smart Function component.

For more information, see Language Model components.

LM Studio text generation parameters

Many LM Studio component input parameters are hidden by default in the visual editor. You can toggle parameters through the Controls in the component's header menu.

NameTypeDescription
base_urlStringInput parameter. The URL where LM Studio is running. Default: "http://localhost:1234".
api_keyLM Studio API KeyInput parameter. The API key for authentication with LM Studio, if required.
max_tokensIntegerInput parameter. Maximum number of tokens to generate in the response. Default: 512.
temperatureFloatInput parameter. Controls randomness in the output. Range: [0.0, 2.0]. Default: 0.7.
top_pFloatInput parameter. Controls diversity via nucleus sampling. Range: [0.0, 1.0]. Default: 1.0.
stopList[String]Input parameter. List of strings that stop generation when encountered.
streamBooleanInput parameter. Whether to stream the response. Default: False.
presence_penaltyFloatInput parameter. Penalizes repeated tokens. Range: [-2.0, 2.0]. Default: 0.0.
frequency_penaltyFloatInput parameter. Penalizes frequent tokens. Range: [-2.0, 2.0]. Default: 0.0.

LM Studio Embeddings

The LM Studio Embeddings component generates embeddings using LM Studio models.

For more information about using embedding model components in flows, see Embedding Model components.

LM Studio Embeddings parameters

Many LM Studio Embeddings component input parameters are hidden by default in the visual editor. You can toggle parameters through the Controls in the component's header menu.

NameDisplay NameInfo
modelModelInput parameter. The LM Studio model to use for generating embeddings.
base_urlLM Studio Base URLInput parameter. The base URL for the LM Studio API.
api_keyLM Studio API KeyInput parameter. The API key for authentication with LM Studio.
temperatureModel TemperatureInput parameter. The temperature setting for the model.
Search