Documentation
Predicting with LLMs
Agentic Flows
Plugins
Tools Provider
Prompt Preprocessor
Generators
Custom Configuration
Publishing a Plugin
Text Embedding
Tokenization
API Reference
Model Info
Predicting with LLMs
Agentic Flows
Plugins
Tools Provider
Prompt Preprocessor
Generators
Custom Configuration
Publishing a Plugin
Text Embedding
Tokenization
API Reference
Model Info
List Loaded Models
You can iterate through models loaded into memory using the listLoaded
method. This method lives under the llm
and embedding
namespaces of the LMStudioClient
object.
This will give you results equivalent to using lms ps
in the CLI.
import { LMStudioClient } from "@lmstudio/sdk";
const client = new LMStudioClient();
const llmOnly = await client.llm.listLoaded();
const embeddingOnly = await client.embedding.listLoaded();
On this page
List Models Currently Loaded in Memory